Disable use of LogTemplate table by default#61880
Merged
potiuk merged 1 commit intoapache:v2-11-testfrom Feb 14, 2026
Merged
Conversation
bac7d55 to
2926bea
Compare
3d9cbcb to
23f8827
Compare
gopidesupavan
approved these changes
Feb 13, 2026
| elasticsearch_id=airflow_conf.get( | ||
| "elasticsearch", | ||
| "log_id_template", | ||
| fallback="{dag_id}-{task_id}-{run_id}-{map_index}-{try_number}", |
Member
There was a problem hiding this comment.
is this needs to be {{ }}. like this?
Member
Author
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
0962b09
Compare
Member
Author
|
Fixed tests - also added more tests with / without configuration set. |
potiuk
added a commit
that referenced
this pull request
Feb 16, 2026
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>
26 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.