liveBook · Manning

Private key

As explained in Data Pipelines with Apache Airflow, Second Edition

A private key is a secret cryptographic key used to decrypt data or create digital signatures.

A private key is a secret cryptographic key used with a public key in asymmetric encryption. In HTTPS, the web server keeps it secret and uses it to decrypt data protected with the public key. section 16.4.1

When securing an Airflow API server, treat the private key as follows:

  • Store it in a path available to Airflow, separately from the certificate that can be shared. section 16.4.2
  • Configure it with AIRFLOW__API__SSL_KEY=/path/to/privatekey.pem and configure the certificate with AIRFLOW__API__SSL_CERT. section 16.4.2
  • Never share it or leave it exposed: only the private key can decrypt data encrypted with the corresponding public key. section 16.4.1 section 16.4.2

Creating a local HTTPS key

Generate a self-signed key and certificate with OpenSSL, writing the private key to privatekey.pem and the certificate to certificate.pem. Configure both files for Airflow, then access the API server at https://localhost:8080. Because a self-signed certificate is untrusted by default, the browser may warn until it is added to trusted certificates.

How Data Pipelines with Apache Airflow, Second Edition covers it

How deep it goes
Explains asymmetric encryption and HTTPS configuration, then stops short of detailed MITM mechanics and certificate internals.
Examples
Uses OpenSSL-generated privatekey.pem, Airflow SSL settings, localhost HTTPS, and browser trust warnings as concrete examples.
What it assumes
Assumes basic HTTP familiarity while introducing HTTPS, public-key and private-key roles, certificates, and session-key exchange.
What you can do after
Operate/configure an Airflow API server with a private key and certificate to encrypt browser-to-server traffic.
How it connects
Connects private keys to public keys, asymmetric encryption, symmetric encryption, TLS, HTTPS, certificates, and MITM attacks.

Also explained in

Compare how 13 books explain private key →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Data Pipelines with Apache Airflow, Second Edition. The section links point to the parts of the book it draws on.