...
By default, the bot will automatically encryp encrypt in the configuration files all the variables ending with _password or _secret. So rename your sensitive variables accordingly:
...
Then inside the code, use the GetSecretConfig GetPasswordConfig to retrieve the data you need.
Code Block |
---|
headers = { 'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': Bot.Bot().GetSecretConfigGetPasswordConfig("jira_authorization_secret") } url = Bot.Bot().GetConfig("one_app_api") + "search?username={email}" response = requests.get(url, headers=headers) |
...