Skip to content

Commit

Permalink
remove hardcoding
Browse files Browse the repository at this point in the history
  • Loading branch information
shrimalmadhur committed Nov 28, 2024
1 parent 233902a commit 4d8e872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/store/googlesm/google_secret_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (k Keystore) ListKeys(ctx context.Context) ([]string, error) {
//
// projects/<project-id>/secrets/cerberus<pubkey>
func getPubKey(resource string) string {
regex := `cerberus(.*)`
regex := fmt.Sprintf("%s(.*)", storagePrefix)

re := regexp.MustCompile(regex)
matches := re.FindStringSubmatch(resource)
Expand Down

0 comments on commit 4d8e872

Please sign in to comment.