Comments (4)
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
from airflow.
can you add your webserver_config.py?
did you try cleaning cookies?
from airflow.
This feature provided by the FAB (Flask App Builder), so you should check the documentation there https://flask-appbuilder.readthedocs.io/en/latest/security.html#authentication-ldap
from airflow.
@Taragolis ,Yes. I read it.
@romsharon98. I uses DB to store session at this moment, plan to switch to cookies. it appears there is a bug. when I use 4 webserver worker by default, I got duplicated session key errors. then I changed to 1 worker. it works fine. I also need disable CSRF token because there are errors in the log.
Thanks, Xiaoming
"""Default configuration for the Airflow webserver."""
from future import annotations
import os
from airflow.www.fab_security.manager import AUTH_LDAP
basedir = os.path.abspath(os.path.dirname(file))
WTF_CSRF_ENABLED = False
WTF_CSRF_TIME_LIMIT = None
AUTH_TYPE = AUTH_LDAP
AUTH_USER_REGISTRATION = True
AUTH_USER_REGISTRATION_ROLE = "Admin"
AUTH_ROLE_ADMIN = 'Admin'
AUTH_LDAP_SERVER = "ldap://example.com"
AUTH_LDAP_USE_TLS = False
AUTH_LDAP_SEARCH = "OU=Canada,OU=...."
AUTH_LDAP_UID_FIELD = "cn"
AUTH_LDAP_BIND_USER = "CN=s700xxx,..."
AUTH_LDAP_BIND_PASSWORD = "xyz123"
AUTH_ROLES_MAPPING = {
"CN=xxx,OU=Users_Groups,DC=example,DC=com": ["Admin"],
}
AUTH_LDAP_GROUP_FIELD = "memberOf"
AUTH_ROLES_SYNC_AT_LOGIN = True
PERMANENT_SESSION_LIFETIME = 1800
from airflow.
Related Issues (20)
- mypy: Value of type "XComArg" is not indexable HOT 2
- Status of testing Providers that were prepared on May 30, 2024 HOT 7
- Upgrade Werkzeug >=3.0.3 to address CVE-2024-34069 HOT 4
- Cannot create virtualenv for PythonVirtualenvOperator HOT 7
- Adding DMS serverless options to aws provider HOT 2
- Constraints Dependency Conflict when installing Databricks provider HOT 2
- "Test" airflow connection does not work HOT 3
- Redshift task in running state but SQL execution does not start when OpenLineage is enabled HOT 1
- S3 ObjectStorage can't use AWS connection with role HOT 2
- Param schema `array` type does does not work with `items` element HOT 3
- Import error : need to restart dag processor
- Opensearch hook passes auth even if login and password are blank
- Error while running Airflow CLI Commands using BashOperator HOT 1
- Can't use AIRFLOW__CELERY__BROKER_URL_CMD in the Helm Chart HOT 5
- get_parsing_context().dag_id always returns None for LocalExecutor HOT 2
- Improve development experience for `breeze k8s` suite of commands HOT 2
- Numerous error reports in airflow logs due to function argument mismatch HOT 1
- KubernetesPodTrigger emits timeout for running pods with unstable Triggerer HOT 2
- Statsd exporter mappings missing HOT 1
- Support `limit` and `offset` parameters for List task instances (batch) endpoint HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from airflow.