privileges loop: Panic (Stack overflow)
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 236
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Description
Hello! I’ve found a bug similar to this previously fixed issue: https://github.com/dalibo/ldap2pg/issues/712
Any circular dependency in the privileges block causes the program to crash due to a stack overflow:
To reproduce the issue, you can use the standard configuration file with the following modification:
# `rw` privilege group lists write-only grants
rw:
- rw
- __all_on_tables__
- __all_on_sequences__
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the standard configuration file and add the circular rw privilege definition shown in the report to reproduce the stack overflow. Review the behavior and fix described in issue 712, then verify that circular privilege dependencies no longer crash the program.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, postgresql
- Domain
- authorization, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100