Skip to content

Commit

Permalink
Merge branch 'jdkaplan-move-secrets' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkaplan committed Oct 5, 2024
2 parents d8cb70d + 4b86cb3 commit 83ae6d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func main() {
}

zulipCredentials := func(ctx context.Context) (zulip.Credentials, error) {
password, err := adb.GetToken(ctx, "apiauth/key")
password, err := adb.GetToken(ctx, "secrets/zulip_api_key")
if err != nil {
return zulip.Credentials{}, err
}
Expand All @@ -102,7 +102,7 @@ func main() {
}

recurseAccessToken := func(ctx context.Context) (recurse.AccessToken, error) {
token, err := adb.GetToken(ctx, "rc-accesstoken/key")
token, err := adb.GetToken(ctx, "secrets/recurse_access_token")
if err != nil {
return "", err
}
Expand Down
2 changes: 1 addition & 1 deletion pairing_bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (pl *PairingLogic) handle(w http.ResponseWriter, r *http.Request) {

log.Println("Handling a new Zulip request")

botAuth, err := pl.adb.GetToken(ctx, "botauth/token")
botAuth, err := pl.adb.GetToken(ctx, "secrets/zulip_webhook_token")
if err != nil {
log.Println("Something weird happened trying to read the auth token from the database")
}
Expand Down

0 comments on commit 83ae6d1

Please sign in to comment.