dalibo / dalibo/ldap2pg

privileges loop: Panic (Stack overflow)

Open
#792 0 comments 0 reactions 0 assignees View on GitHub

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:
Image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.