Skip to content
Snippets Groups Projects
Commit 24c633d0 authored by Johan de Klerk's avatar Johan de Klerk
Browse files

Made GetSecret public

parent 9b3427d8
Branches
Tags v1.49.0
No related merge requests found
......@@ -30,7 +30,7 @@ var (
)
func GetDatabaseCredentials(secretID string, isDebug bool) (DatabaseCredentials, error) {
secret, _ := getSecret(secretID, isDebug)
secret, _ := GetSecret(secretID, isDebug)
var credentials DatabaseCredentials
err := struct_utils.UnmarshalJSON([]byte(secret), &credentials)
if err != nil {
......@@ -39,7 +39,7 @@ func GetDatabaseCredentials(secretID string, isDebug bool) (DatabaseCredentials,
return credentials, nil
}
func getSecret(secretID string, isDebug bool) (string, string) {
func GetSecret(secretID string, isDebug bool) (string, string) {
cachedSecret, err := secretCache.GetSecretString(secretID)
if err != nil {
logs.Info("Failed to get secret key from cache")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment