Skip to content

Instantly share code, notes, and snippets.

View monti-python's full-sized avatar

Angel Montana monti-python

View GitHub Profile
@wallyhall
wallyhall / apache_airflow_sso_howto.md
Last active June 18, 2024 16:13
Apache Airflow Azure AAD SSO howto

The following instructions for enabling Azure SSO for Apache Airflow nearly take you all the way - but fall short a couple of details around the configuration of airflow itself:

https://objectpartners.com/2021/12/24/enterprise-auth-for-airflow-azure-ad

All the "Azure" instructions there can be safely followed - the resulting webserver_config.py (which can be injected into a dockerised Airflow in /opt/airflow/webserver_config.py) can be built from the following:

from __future__ import annotations

import os
@socrateslee
socrateslee / winpath.py
Created May 28, 2013 13:44
A simple command line tool for managing windows PATH variable in Windows Registry. Get help by `python winpath.py help`.
'''
A simple command line tool for managing windows PATH variable.
'''
import _winreg as winreg
import os
import sys
def choose_key(scope, write=False):
'''