-
Notifications
You must be signed in to change notification settings - Fork 0
DM-36772: Migrate PostgreSQL credentials to mounted file #83
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
Conversation
3d719f6
to
240947e
Compare
The old code generated a .pgpass file on the fly, an approach that is both fiddly and brittle. It's more robust to let the Kubernetes framework provide the file, but the file-generation code will break if a file is already present.
The .pgpass file, and the credentials within it, are now managed directly by Kubernetes. This change also eliminates the need to read many of these credentials as individual environment variables.
The URL_APDB variable directly identifies the SQL database used as the APDB. The only additional information that needs to be provided is the namespace/schema, which is handled separately by the dax.apdb.ApdbSql interface.
240947e
to
276a2c1
Compare
* CALIB_REPO: URI to repo containing calibrations (and templates) | ||
* LSST_DISABLE_BUCKET_VALIDATION: set this so to disable validation of S3 bucket names, allowing Ceph multi-tenant colon-separated names to be used. | ||
* IP_APDB: IP address or hostname and port of the APDB (see `Databases`_, below) | ||
* IP_REGISTRY: IP address or hostname and port of the registry database (see `Databases`_) |
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.
IP_REGISTRY
and DB_REGISTRY
are also mentioned in the Google Cloud session and may be deleted together?
Though I recall that in a previous meeting we agreed to terminate those running on Google Cloud so I'm not sure how much we care about that session.
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.
Well, the catch is that this version of the code won't work on Google (we can't get a .pgpass
file with the right permissions there). So if you're running on Google, you must be using a version that still uses those variables. 😵💫
627cd6f
to
838a356
Compare
I pushed a revised version of the Argo CD instructions -- it turns out you can redeploy purely from Argo, as long as you don't have any |
d8414e2
to
b311e10
Compare
The SLACLab repository no longer has deployment scripts for the prompt processing service.
b311e10
to
ae0e772
Compare
This PR removes the
make_pgpass
module entirely, and uses the extra freedom to switch the APDB access code inMiddlewareInterface
to a single URL. It updates the Playbook to reflect the reduced number of input variables as well as our migration from Slaclab to Argo CD.