Brunda10 commented on issue #53645:
URL: https://github.com/apache/airflow/issues/53645#issuecomment-3135961079
Sure, here’s your message rewritten in a clear, bullet-point format with no
emojis:
---
Hi @potiuk and @collinmcnulty,
### Airflow 2.x
* Default value: `True`
* The **Admin > Config** tab and `/api/v2/config` endpoint are enabled by
default.
* You can disable it via `airflow.cfg` or environment variable:
```ini
[webserver]
expose_config = False
```
### Airflow 3.x
* Default value: `False`
* The config UI/API is not exposed by default for security reasons.
* To enable it, you must set:
```bash
export AIRFLOW__WEBSERVER__EXPOSE_CONFIG=True
```
---
### Two approaches to override this:
**Approach One:**
Using the environment variable:
```bash
export AIRFLOW__WEBSERVER__EXPOSE_CONFIG=True
```
This works when set in the environment before starting the webserver.
**Approach Two:**
Using the CLI (such as in a custom Breeze command):
```bash
breeze start-airflow --expose-config true
```
This can default to either `true` or `false`, depending on your preference.
Both options work as long as the value is properly passed into the environment
for the webserver to use.
Let me know your thoughts.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]