Skip to content

Commit

Permalink
chore: parse encrypted external secret
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge committed Jan 8, 2025
1 parent eda27f6 commit 82c2146
Show file tree
Hide file tree
Showing 8 changed files with 131 additions and 69 deletions.
1 change: 0 additions & 1 deletion internal/link/link.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (

func Run(ctx context.Context, projectRef string, fsys afero.Fs, options ...func(*pgx.ConnConfig)) error {
copy := utils.Config.Clone()
copy.Auth.HashSecrets(projectRef)
original, err := cliConfig.ToTomlBytes(copy)
if err != nil {
fmt.Fprintln(utils.GetDebugLogger(), err)
Expand Down
2 changes: 1 addition & 1 deletion internal/start/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ EOF
env,
fmt.Sprintf("GOTRUE_EXTERNAL_%s_ENABLED=%v", strings.ToUpper(name), config.Enabled),
fmt.Sprintf("GOTRUE_EXTERNAL_%s_CLIENT_ID=%s", strings.ToUpper(name), config.ClientId),
fmt.Sprintf("GOTRUE_EXTERNAL_%s_SECRET=%s", strings.ToUpper(name), config.Secret),
fmt.Sprintf("GOTRUE_EXTERNAL_%s_SECRET=%s", strings.ToUpper(name), config.Secret.Value),
fmt.Sprintf("GOTRUE_EXTERNAL_%s_SKIP_NONCE_CHECK=%t", strings.ToUpper(name), config.SkipNonceCheck),
)

Expand Down
Loading

0 comments on commit 82c2146

Please sign in to comment.