0
0
Apache Airflowdevops~5 mins

Secrets management in Apache Airflow - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is secrets management in Airflow?
Secrets management in Airflow is the practice of securely storing and accessing sensitive information like passwords, API keys, and tokens needed by workflows.
Click to reveal answer
beginner
Name one built-in backend Airflow supports for secrets management.
Airflow supports several backends like HashiCorp Vault, AWS Secrets Manager, Google Secret Manager, and environment variables for secrets management.
Click to reveal answer
intermediate
How do you configure Airflow to use HashiCorp Vault for secrets?
You set the 'secrets_backend' option in airflow.cfg to 'airflow.providers.hashicorp.secrets.vault.VaultBackend' and provide Vault connection details in the configuration.
Click to reveal answer
beginner
Why should you avoid hardcoding secrets in Airflow DAG files?
Hardcoding secrets risks exposing sensitive data in code repositories and logs, increasing the chance of leaks and security breaches.
Click to reveal answer
beginner
What is the benefit of using environment variables for secrets in Airflow?
Environment variables allow you to keep secrets outside the code and configuration files, making it easier to manage and rotate secrets securely.
Click to reveal answer
Which Airflow configuration option sets the secrets backend?
Asecret_manager
Bsecrets_backend
Cbackend_secret
Dsecret_storage
Which of these is NOT a supported secrets backend in Airflow?
AAzure Blob Storage
BHashiCorp Vault
CGoogle Secret Manager
DAWS Secrets Manager
Why is it important to use secrets management in Airflow?
ATo increase log verbosity
BTo speed up DAG execution
CTo store sensitive data securely
DTo reduce CPU usage
What is a risk of hardcoding secrets in Airflow DAG files?
ASecrets will auto-rotate
BDAGs will run slower
CAirflow will crash
DSecrets may be exposed in code repositories
How can environment variables help with secrets in Airflow?
AThey keep secrets outside code and config files
BThey encrypt secrets automatically
CThey speed up DAG scheduling
DThey disable logging
Explain how Airflow can securely access secrets using a secrets backend.
Think about how Airflow connects to external secret stores instead of storing secrets in code.
You got /4 concepts.
    Describe best practices for managing secrets in Airflow workflows.
    Consider security and ease of secret updates.
    You got /4 concepts.