Skip to content
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

fix: Read secrets from new collection #98

Merged
merged 1 commit into from
Oct 11, 2024
Merged

Conversation

jdkaplan
Copy link
Collaborator

@jdkaplan jdkaplan commented Oct 5, 2024

Pairing Bot holds many secrets, and some of them are config values!

Right now, those config secrets are stored in single-document collections that (in my experience) have names that don't clearly map to their usage.

This starts reading them all out of a new collection named "secrets", and each document contains a single secret token.

I've already copied the secrets to their new locations, which can be verified in the Google Cloud console for both environments. (The RC API access token won't match, though, because I generated a new one out of my RC account.)

After both the dev and prod bots deploy successfully, I'll delete the old unused secret collections.

Right now, config secrets are stored in single-document collections that
(in my experience) have names that don't clearly map to their usage.

This starts reading them all out of a new collection named "secrets",
and each document contains a single secret token.
@jdkaplan jdkaplan requested a review from cceckman October 5, 2024 22:43
@jdkaplan jdkaplan marked this pull request as ready for review October 5, 2024 22:43
@jdkaplan
Copy link
Collaborator Author

jdkaplan commented Oct 5, 2024

I deployed this branch to the dev bot, and things still work! Specifically, subscribe still works, which uses both the Zulip webhook token and the RC access token.

Copy link
Collaborator

@cceckman cceckman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What even is nosql

@cceckman cceckman merged commit da08d86 into main Oct 11, 2024
3 checks passed
@cceckman cceckman deleted the jdkaplan-move-secrets branch October 11, 2024 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants