Implement pre/post hook queries [was: support setting/updating password for static roles]
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
No file, test, or entry point is named in the issue. Start by tracing static role creation and the requested pre/post hook query behavior in the repository. Done means the supported configuration and query behavior are defined, implemented, and covered by tests.
Written by the indexing model from the issue text.
Description
ldap2pg allows creating static roles defined in the yaml config. While its main use is to create "group" roles (with NOLOGIN), it'd be really conveniant to be able to define password for roles with the LOGIN option, eg
rules:
- roles:
- comment: Parent role for all ldap2pg managed roles
name: managed_roles
- comment: Role for device-services
name: device-services
options: LOGIN
password: SuperS3cr3tp@ssw0rd
parents:
- managed_roles
(or maybe a way to read it from env vars)
With that, ldap2pg could be a complete declarative role manager for postgres. It could even go one step further and be able to create databases too but hey, one RFE at a time ;-)
My use case is to simplify application initial setup in a container orchestrator (Nomad, but would be the same elswhere)
- Dominant language
- Go
- Stars
- 241
- Forks
- 37
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 2
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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.
More from dalibo/ldap2pg
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 4/5 3-5 days Newbie friendliness 54/100
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
-
privileges loop: Panic (Stack overflow)Possibly taken @vulragrag-star claimed this 29 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 64/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
google/go-containerregistry#2491 ·
Maintainers usually reply within 1 day
-
aiac enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
phase:v1 type:harness
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
scttfrdmn/burroughs#1181 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
compiler-explorer/ce-ci#28 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day