-
Notifications
You must be signed in to change notification settings - Fork 609
Pgadmin oauth secrets #4123
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
Pgadmin oauth secrets #4123
Conversation
pkg/apis/postgres-operator.crunchydata.com/v1beta1/standalone_pgadmin_types.go
Outdated
Show resolved
Hide resolved
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 need to beef up that one comment for clarity, otherwise, looks good.
@philrhurst just a general question here. Could a user effectively put any pgAdmin configuration into the Secret? E.g. even setting that have nothing to do with OAuth? Or are the |
@andrewlecuyer - they could but it would not be read correctly and likely would mean pgAdmin wouldn't start. By design, the values encoded within the Unfortunately, there is not a lot of validation that can be done here because the data is passed through into pgAdmin. It is similar to how we handle the passing of Postgres parameters to the Patroni section. We could - theoretically - add a validation layer in, but then it becomes a cat-and-mouse game of keeping these components in line. |
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.
Some thoughts and questions. I'm trying out the API locally right now.
pkg/apis/postgres-operator.crunchydata.com/v1beta1/standalone_pgadmin_types.go
Outdated
Show resolved
Hide resolved
Change oauth2 to mount rather than load secrets
Checklist:
Type of Changes:
What is the current behavior (link to any open issues here)?
The PGAdmin API only allows users to specify OAUTH configuration data via plaintext in the manifest.
What is the new behavior (if this is a feature change)?
Users can now specify their OAUTH configuration via a Secret and pass that to the PGAdmin with an entry containing the secret name in
spec.config.oauthConfigurations
.Other Information: