airflow, AWS, GCP, Security

Airflow – setup of SSL Certificate – HTTPS example

In this example we are going to use self signed certificates via the below CMD. it turns out the original apache airflow instructions, assume prior knowledge:

https://airflow.apache.org/security.html#ssl

To create the self signed certificates follow the instructions followed by each cmd :

openssl genrsa -out private.pem 2048
openssl req -new -x509 -key private.pem -out cacert.pem -days 1095


In your airflow.cfg under [webserver] change the following keys:

web_server_ssl_cert = path/to/cacert.pem
web_server_ssl_key = path/to/private.pem

This should let you now browse Airflow via https://localhost:8080

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s