Skip to content

Commit 8b7c643

Browse files
committed
feat: update security and configs
1 parent c85a9f6 commit 8b7c643

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+14
-8
lines changed

.devcontainer/Dockerfile

100644100755
File mode changed.

.devcontainer/devcontainer.json

100644100755
File mode changed.

.devcontainer/docker-compose.yml

100644100755
File mode changed.

.dockerignore

100644100755
File mode changed.

.gitattributes

100644100755
File mode changed.

.github/CODEOWNERS

100644100755
File mode changed.

.github/dependabot.yml

100644100755
File mode changed.

.github/workflows/ci.yml

100644100755
File mode changed.

.github/workflows/deploy.yml

100644100755
File mode changed.

.gitignore

100644100755
File mode changed.

.pre-commit-config.yaml

100644100755
File mode changed.

.vscode/launch.json

100644100755
File mode changed.

.vscode/settings.json

100644100755
File mode changed.

Procfile

100644100755
File mode changed.

README.md

100644100755
+5

airflow.cfg

100644100755
+9-8
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ daemon_umask = 0o077
427427
#
428428
# Variable: AIRFLOW__CORE__STRICT_DATASET_URI_VALIDATION
429429
#
430-
strict_dataset_uri_validation = False
430+
strict_dataset_uri_validation = True
431431

432432
# (experimental) Whether components should use Airflow Internal API for DB connectivity.
433433
#
@@ -469,7 +469,7 @@ internal_api_secret_key = JWqQSd/jT7ohE3CoIVkxQA==
469469
#
470470
# Variable: AIRFLOW__CORE__TEST_CONNECTION
471471
#
472-
test_connection = Disabled
472+
test_connection = Enabled
473473

474474
# The maximum length of the rendered template field. If the value to be stored in the
475475
# rendered template field exceeds this size, it's redacted.
@@ -1246,7 +1246,7 @@ enable_experimental_api = False
12461246
#
12471247
# Variable: AIRFLOW__API__AUTH_BACKENDS
12481248
#
1249-
auth_backends = airflow.api.auth.backend.basic_auth, airflow.api.auth.backend.session
1249+
auth_backends = airflow.api.auth.backend.session
12501250

12511251
# Used to set the maximum page limit for API requests. If limit passed as param
12521252
# is greater than maximum page limit, it will be ignored and maximum page limit value
@@ -1710,13 +1710,13 @@ proxy_fix_x_prefix = 1
17101710
#
17111711
# Variable: AIRFLOW__WEBSERVER__COOKIE_SECURE
17121712
#
1713-
cookie_secure = False
1713+
cookie_secure = True
17141714

17151715
# Set samesite policy on session cookie
17161716
#
17171717
# Variable: AIRFLOW__WEBSERVER__COOKIE_SAMESITE
17181718
#
1719-
cookie_samesite = Lax
1719+
cookie_samesite = Strict
17201720

17211721
# Default setting for wrap toggle on DAG code and TI log views.
17221722
#
@@ -1728,7 +1728,7 @@ default_wrap = False
17281728
#
17291729
# Variable: AIRFLOW__WEBSERVER__X_FRAME_ENABLED
17301730
#
1731-
x_frame_enabled = True
1731+
x_frame_enabled = False
17321732

17331733
# Send anonymous user activity to your analytics tool
17341734
# choose from ``google_analytics``, ``segment``, ``metarouter``, or ``matomo``
@@ -1762,7 +1762,8 @@ show_recent_stats_for_completed_runs = True
17621762
#
17631763
# Variable: AIRFLOW__WEBSERVER__SESSION_LIFETIME_MINUTES
17641764
#
1765-
session_lifetime_minutes = 43200
1765+
# 24 hours
1766+
session_lifetime_minutes = 1440
17661767

17671768
# Sets a custom page title for the DAGs overview page and site title for all pages
17681769
#
@@ -1896,7 +1897,7 @@ email_conn_id = smtp_default
18961897
#
18971898
# Variable: AIRFLOW__EMAIL__DEFAULT_EMAIL_ON_RETRY
18981899
#
1899-
default_email_on_retry = True
1900+
default_email_on_retry = False
19001901

19011902
# Whether email alerts should be sent when a task failed
19021903
#

config/.gitkeep

100644100755
File mode changed.

constraints.txt

100644100755
File mode changed.

dags/.airflowignore

100644100755
File mode changed.

dags/michael/__init__.py

100644100755
File mode changed.

dags/michael/common/__init__.py

100644100755
File mode changed.

dags/michael/common/bigquery.py

100644100755
File mode changed.

dags/michael/datasets.py

100644100755
File mode changed.

dags/michael/dbt.py

100644100755
File mode changed.

dags/michael/migrate.py

100644100755
File mode changed.

dags/michael/migrations/README

100644100755
File mode changed.

dags/michael/migrations/alembic.ini

100644100755
File mode changed.

dags/michael/migrations/env.py

100644100755
File mode changed.

dags/michael/migrations/script.py.mako

100644100755
File mode changed.

dags/michael/migrations/versions/fe52ae40c7c1_raw_notion_tables.py

100644100755
File mode changed.

dags/michael/notion/__init__.py

100644100755
File mode changed.

dags/michael/notion/raw_notion__habits.py

100644100755
File mode changed.

dbt/michael/.gitignore

100644100755
File mode changed.

dbt/michael/README.md

100644100755
File mode changed.

dbt/michael/analyses/.gitkeep

100644100755
File mode changed.

dbt/michael/dbt_project.yml

100644100755
File mode changed.

dbt/michael/macros/.gitkeep

100644100755
File mode changed.

dbt/michael/models/staging/notion/base/base_notion__daily_habits.sql

100644100755
File mode changed.

dbt/michael/models/staging/notion/base/base_notion__weekly_habits.sql

100644100755
File mode changed.

dbt/michael/models/staging/notion/schema.yml

100644100755
File mode changed.

dbt/michael/models/staging/notion/stg_notion__habits.sql

100644100755
File mode changed.

dbt/michael/seeds/.gitkeep

100644100755
File mode changed.

dbt/michael/snapshots/.gitkeep

100644100755
File mode changed.

dbt/michael/tests/.gitkeep

100644100755
File mode changed.

plugins/__init__.py

100644100755
File mode changed.

plugins/hooks/__init__.py

100644100755
File mode changed.

plugins/hooks/notion_hook.py

100644100755
File mode changed.

requirements-dev.txt

100644100755
File mode changed.

requirements.txt

100644100755
File mode changed.

script/bootstrap

100644100755
File mode changed.

script/setup

100644100755
File mode changed.

script/test

100644100755
File mode changed.

startup.txt

100644100755
File mode changed.

tests/conftest.py

100644100755
File mode changed.

tests/test_0_migrations.py

100644100755
File mode changed.

tests/test_1_notion_load.py

100644100755
File mode changed.

tests/test_9_dbt.py

100644100755
File mode changed.

webserver_config.py

100644100755
File mode changed.

0 commit comments

Comments
 (0)