Skip to content

Commit abcb71a

Browse files
authored
Merge pull request #36 from BasPH/feature/fix-ch13
Fix Chapter 13
2 parents 958a59e + 262fa21 commit abcb71a

File tree

19 files changed

+31
-23
lines changed

19 files changed

+31
-23
lines changed

chapters/chapter13/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Chapter 13
2+
3+
Code accompanying Chapter 13 (Securing Airflow) of the book [Data Pipelines with Apache Airflow](https://www.manning.com/books/data-pipelines-with-apache-airflow).
4+
5+
## Contents
6+
7+
This folder holds three example Docker Compose examples:
8+
9+
- `ldap`: Example configuration of the webserver, fetching user credentials from OpenLDAP
10+
- `rbac`: Example running the RBAC interface
11+
- `secretsbackend`: Example fetching secrets from HashiCorp Vault
12+
13+
Each folder holds a Docker Compose file which can be started with `docker-compose up -d`.
14+
15+
## Usage
16+
17+
Read the `README.md` file in the respective directory.
File renamed without changes.

chapters/chapter14/ldap/README.md renamed to chapters/chapter13/ldap/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Demonstrate RBAC UI + LDAP authentication using OpenLDAP.
88
docker-compose up -d
99
```
1010

11-
Login in Airflow with `username=bsmith` and `password=test`.
11+
Login in Airflow with username `bsmith` and password `test`.
1212

1313
## Details
1414

File renamed without changes.

chapters/chapter14/ldap/docker-compose.yml renamed to chapters/chapter13/ldap/docker-compose.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ x-environment: &airflow_environment
1010
- AIRFLOW__CORE__STORE_SERIALIZED_DAGS=True
1111
- AIRFLOW__WEBSERVER__EXPOSE_CONFIG=True
1212
- AIRFLOW__WEBSERVER__RBAC=True
13+
14+
x-airflow-image: &airflow_image apache/airflow:1.10.12-python3.8
1315
# ====================================== /AIRFLOW ENVIRONMENT VARIABLES ======================================
1416

1517
services:
@@ -23,7 +25,7 @@ services:
2325
- "5432:5432"
2426

2527
upgradedb:
26-
image: apache/airflow:1.10.11-python3.7
28+
image: *airflow_image
2729
depends_on:
2830
- postgres
2931
environment: *airflow_environment
@@ -42,7 +44,7 @@ services:
4244
command: webserver
4345

4446
scheduler:
45-
image: apache/airflow:1.10.11-python3.7
47+
image: *airflow_image
4648
restart: always
4749
depends_on:
4850
- postgres
File renamed without changes.

chapters/chapter14/rbac/docker-compose.yml renamed to chapters/chapter13/rbac/docker-compose.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ x-environment: &airflow_environment
1212
- AIRFLOW__CORE__STORE_SERIALIZED_DAGS=True
1313
- AIRFLOW__WEBSERVER__EXPOSE_CONFIG=True
1414
- AIRFLOW__WEBSERVER__RBAC=True
15+
16+
x-airflow-image: &airflow_image apache/airflow:1.10.12-python3.8
1517
# ====================================== /AIRFLOW ENVIRONMENT VARIABLES ======================================
1618

1719
services:
@@ -25,7 +27,7 @@ services:
2527
- "5432:5432"
2628

2729
initdb_adduser:
28-
image: apache/airflow:1.10.11-python3.7
30+
image: *airflow_image
2931
depends_on:
3032
- postgres
3133
environment: *airflow_environment
@@ -35,7 +37,7 @@ services:
3537
command: -c 'airflow initdb && sleep 5 && airflow create_user --role Admin --username airflow --password airflow -e [email protected] -f airflow -l airflow'
3638

3739
webserver:
38-
image: apache/airflow:1.10.11-python3.7
40+
image: *airflow_image
3941
restart: always
4042
depends_on:
4143
- postgres
@@ -47,7 +49,7 @@ services:
4749
command: webserver
4850

4951
scheduler:
50-
image: apache/airflow:1.10.11-python3.7
52+
image: *airflow_image
5153
restart: always
5254
depends_on:
5355
- postgres

0 commit comments

Comments
 (0)