Uh oh!
There was an error while loading. Please reload this page.
Disable use of LogTemplate table by default - #61880
Conversation
bac7d55 to
2926beaCompare3d9cbcb to
23f8827CompareUh oh!
There was an error while loading. Please reload this page.
| elasticsearch_id=airflow_conf.get( | ||
| "elasticsearch", | ||
| "log_id_template", | ||
| fallback="{dag_id}-{task_id}-{run_id}-{map_index}-{try_number}", |
There was a problem hiding this comment.
is this needs to be {{ }}. like this?
There was a problem hiding this comment.
Not really - that's a string that is already default - the {{ is only needed when we read it from config and where it is processed first by Jinja template. But yeah - I will double check if this works as expected (also this fallback is not going to be used most likely - it's only in case the code is run before ProvidersManager discovery - because once providers manager processes it, there is a default defined from provider.yaml.
Accessing the database when rendering log template might introduce unnecesary risks to execute code in webserver and we should disable it by default. Update airflow/config_templates/config.yml Co-authored-by: GPK <gopidesupavan@gmail.com>
e1a37cf to
0962b09Comparepotiuk
commented
Feb 14, 2026
Fixed tests - also added more tests with / without configuration set. |
Uh oh!
There was an error while loading. Please reload this page.
Accessing the database when rendering log template might introduce unnecesary risks to execute code in webserver and we should disable it by default. Update airflow/config_templates/config.yml Co-authored-by: GPK <gopidesupavan@gmail.com>
Accessing the database when rendering log template might introduce unnecesary risks to execute code in webserver and we should disable it by default.
Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.