This repository will show you how pass secrets to a script in a safe and secure way.
This method creates an environment variable on the execution environment that is used by the python script.
Input configuration
fields:
- id: DYNATRACE_API_KEY
type: string
label: Dynatrace API Token
secret: true
- id: freshservice_api_key
type: string
label: Fresh Service API Token
secret: true
required:
- DYNATRACE_API_KEY
Injector configuration
env:
DYNATRACE_API_KEY: '{{ DYNATRACE_API_KEY }}'
freshservice_api_key: '{{ freshservice_api_key }}'
Pass secrets from a vaulted file using vars_files playbook. For this method to work you will need to create a vault credential in your AAP and relate it to your job template.
dynatrace_api_key: 123456_secrets_are_here
Pass secret from an inbeded vault file using vars playbook. For this method to work you will need to create a vault credential in your AAP and relate it to your job template.
123456_secrets_are_here