Removed deprecated functions and modules from airflow.www
module.
- Config flag default warning
cookie_samesite
option in section[webserver]
removed. - Legacy decorator
@has_access
inairflow.www.auth
: Please use one of the decoratorhas_access_*
defined in airflow/www/auth.py instead. - Removed legacy modules
airflow.www.security
: Should be inherited fromairflow.providers.fab.auth_manager.security_manager.override.FabAirflowSecurityManagerOverride
instead. The constant valueEXISTING_ROLES
should be used fromairflow.www.security_manager
module. - Removed the method
get_sensitive_variables_fields()
fromairflow.www.utils
: Please useairflow.utils.log.secrets_masker.get_sensitive_variables_fields
instead. - Removed the method
should_hide_value_for_key()
fromairflow.www.utils
: Please useairflow.utils.log.secrets_masker.should_hide_value_for_key
instead.
- Types of change
- [ ] Dag changes
- [x] Config changes
- [ ] API changes
- [ ] CLI changes
- [ ] Behaviour changes
- [ ] Plugin changes
- [ ] Dependency changes
- [x] Code interface changes
- Migration rules needed
- ruff
- AIR302
- [x]
airflow.www.auth.has_access
→airflow.www.auth.has_access_*
- [x]
airflow.www.utils.get_sensitive_variables_fields
→airflow.utils.log.secrets_masker.get_sensitive_variables_fields
- [x]
airflow.www.utils.should_hide_value_for_key
→airflow.utils.log.secrets_masker.should_hide_value_for_key
- [x]
- AIR303
- [x]
airflow.www.security.FabAirflowSecurityManagerOverride
→airflow.providers.fab.auth_manager.security_manager.override.FabAirflowSecurityManagerOverride
- [x]
- AIR302
- ruff