-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates for ALDAP v2.0 #16
Conversation
dignajar
commented
May 24, 2021
•
edited
Loading
edited
- Include requirements.txt with fixed versions
- Update to Python 3.9.5
- Run container as non-root
- Support for matching users or matching groups, allows service account that doesn't belong to the groups
- Cache supports matching groups
- Session encryption key via parameters
- Update K8S manifests for support HTTPS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small suggestion to wrap initialization of parameters inside function for main program
LDAP_REQUIRED_GROUPS = request.headers["Ldap-Required-Groups"] | ||
elif "LDAP_REQUIRED_GROUPS" in environ: | ||
LDAP_REQUIRED_GROUPS = environ["LDAP_REQUIRED_GROUPS"] | ||
# List of groups separated by comma |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to have all the retrieval of parameters/headers inside a function. Otherwise the main its a bit too long until you get to the part of the validation logic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The object request.headers exists only in some context of the application, also I would like to set these parameters outside in one place..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
I changed |