Replies: 9 comments 3 replies
-
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. |
Beta Was this translation helpful? Give feedback.
-
At present, the gunicorn config is hard coded as shown below.
|
Beta Was this translation helpful? Give feedback.
-
Here is a potential fix for the webserver() function in airflow/cli/commands/webserver_command.py.
ref: https://docs.gunicorn.org/en/latest/settings.html#ciphers |
Beta Was this translation helpful? Give feedback.
-
The alternative would be to hard code the cipher suites so they pass an OWASP scan. |
Beta Was this translation helpful? Give feedback.
-
Look at the top of the document you linked to: Note
Settings can be specified by using environment variable GUNICORN_CMD_ARGS. All available command line arguments can be used. For example, to specify the bind address and number of workers: $ GUNICORN_CMD_ARGS="--bind=127.0.0.1 --worker |
Beta Was this translation helpful? Give feedback.
-
This is how you can set arguments |
Beta Was this translation helpful? Give feedback.
-
Converting to discussion if needed. |
Beta Was this translation helpful? Give feedback.
-
@potiuk You are correct. The following launches a TLSv1.3 webserver. I had expected GUNICORN_CMD_ARGS to be overridden. Please be advised that excessive use of environment variables can be an indicator of compromise(IOC). refs: |
Beta Was this translation helpful? Give feedback.
-
It's a POSIX thing.
ref: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html |
Beta Was this translation helpful? Give feedback.
-
Apache Airflow version
2.10.2
If "Other Airflow 2 version" selected, which one?
No response
What happened?
sslyze localhost:8080
What you think should happen instead?
The webserver() function in airflow/cli/commands/webserver_command.py should either allow the cipher suite to be tailored (or pass an sslyze audit out of the box.
How to reproduce
Operating System
"Debian GNU/Linux 12 (bookworm)
Versions of Apache Airflow Providers
apache-airflow-providers-common-compat==1.2.1
apache-airflow-providers-common-io==1.4.2
apache-airflow-providers-fab==1.4.1
apache-airflow-providers-http==4.13.1
Deployment
Virtualenv installation
Deployment details
nstr
Anything else?
Occurs every time.
PR available upon request.
Are you willing to submit PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions