common.configuration.providers.google_secrets
normalize_key
def normalize_key(in_string: str) -> str
Replaces punctuation characters in a string
Note: We exclude _
and -
from punctuation characters
Arguments:
in_string(str)
- input string
Returns:
(str)
- a string without punctuatio characters and whitespaces
GoogleSecretsProvider Objects
class GoogleSecretsProvider(VaultDocProvider)
get_key_name
@staticmethod
def get_key_name(key: str, *sections: str) -> str
Make key name for the secret
Per Google the secret name can contain, so we will use snake_case normalizer
1. Uppercase and lowercase letters,
2. Numerals,
3. Hyphens,
4. Underscores.