File tree 7 files changed +22
-11
lines changed
src/airflow/providers/fab 7 files changed +22
-11
lines changed Original file line number Diff line number Diff line change @@ -379,6 +379,10 @@ def message(self) -> str | None:
379
379
config = ConfigParameter ("webserver" , "session_lifetime_minutes" ),
380
380
renamed_to = ConfigParameter ("fab" , "session_lifetime_minutes" ),
381
381
),
382
+ ConfigChange (
383
+ config = ConfigParameter ("webserver" , "access_denied_message" ),
384
+ renamed_to = ConfigParameter ("fab" , "access_denied_message" ),
385
+ ),
382
386
ConfigChange (
383
387
config = ConfigParameter ("webserver" , "base_url" ),
384
388
renamed_to = ConfigParameter ("api" , "base_url" ),
Original file line number Diff line number Diff line change @@ -1684,13 +1684,6 @@ operators:
1684
1684
webserver :
1685
1685
description : ~
1686
1686
options :
1687
- access_denied_message :
1688
- description : |
1689
- The message displayed when a user attempts to execute actions beyond their authorised privileges.
1690
- version_added : 2.7.0
1691
- type : string
1692
- example : ~
1693
- default : " Access is Denied"
1694
1687
secret_key :
1695
1688
description : |
1696
1689
Secret key used to run your api server. It should be as random as possible. However, when running
Original file line number Diff line number Diff line change @@ -56,6 +56,13 @@ config:
56
56
fab :
57
57
description : This section contains configs specific to FAB provider.
58
58
options :
59
+ access_denied_message :
60
+ description : |
61
+ The message displayed when a user attempts to execute actions beyond their authorised privileges.
62
+ version_added : 2.0.3
63
+ type : string
64
+ example : ~
65
+ default : " Access is Denied"
59
66
auth_rate_limited :
60
67
description : |
61
68
Boolean for enabling rate limiting on authentication endpoints.
Original file line number Diff line number Diff line change @@ -30,6 +30,13 @@ def get_provider_info():
30
30
"fab" : {
31
31
"description" : "This section contains configs specific to FAB provider." ,
32
32
"options" : {
33
+ "access_denied_message" : {
34
+ "description" : "The message displayed when a user attempts to execute actions beyond their authorised privileges.\n " ,
35
+ "version_added" : "2.0.3" ,
36
+ "type" : "string" ,
37
+ "example" : None ,
38
+ "default" : "Access is Denied" ,
39
+ },
33
40
"auth_rate_limited" : {
34
41
"description" : "Boolean for enabling rate limiting on authentication endpoints.\n " ,
35
42
"version_added" : "1.0.2" ,
Original file line number Diff line number Diff line change 61
61
62
62
63
63
def get_access_denied_message ():
64
- return conf .get ("webserver " , "access_denied_message" )
64
+ return conf .get ("fab " , "access_denied_message" )
65
65
66
66
67
67
def has_access_with_pk (f ):
Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ packages = []
212
212
" apache-airflow-providers-exasol>=4.6.1"
213
213
]
214
214
"fab" = [
215
- " apache-airflow-providers-fab>=2.0.2 " # Set from MIN_VERSION_OVERRIDE in update_airflow_pyproject_toml.py
215
+ " apache-airflow-providers-fab>=2.0.3 " # Set from MIN_VERSION_OVERRIDE in update_airflow_pyproject_toml.py
216
216
]
217
217
"facebook" = [
218
218
" apache-airflow-providers-facebook>=3.7.0"
@@ -422,7 +422,7 @@ packages = []
422
422
" apache-airflow-providers-edge3>=1.0.0" ,
423
423
" apache-airflow-providers-elasticsearch>=5.5.2" ,
424
424
" apache-airflow-providers-exasol>=4.6.1" ,
425
- " apache-airflow-providers-fab>=2.0.2 " , # Set from MIN_VERSION_OVERRIDE in update_airflow_pyproject_toml.py
425
+ " apache-airflow-providers-fab>=2.0.3 " , # Set from MIN_VERSION_OVERRIDE in update_airflow_pyproject_toml.py
426
426
" apache-airflow-providers-facebook>=3.7.0" ,
427
427
" apache-airflow-providers-ftp>=3.12.0" ,
428
428
" apache-airflow-providers-git>=0.0.2" , # Set from MIN_VERSION_OVERRIDE in update_airflow_pyproject_toml.py
Original file line number Diff line number Diff line change 56
56
# minimum versions for compatibility with Airflow 3
57
57
MIN_VERSION_OVERRIDE : dict [str , Version ] = {
58
58
"amazon" : parse_version ("2.1.3" ),
59
- "fab" : parse_version ("2.0.2 " ),
59
+ "fab" : parse_version ("2.0.3 " ),
60
60
"openlineage" : parse_version ("2.1.3" ),
61
61
"git" : parse_version ("0.0.2" ),
62
62
"common.messaging" : parse_version ("1.0.1" ),
You can’t perform that action at this time.
0 commit comments