Skip to content

Add config option [secrets]backends_order#45931

Open
moiseenkov wants to merge 1 commit intoapache:mainfrom
VladaZakharova:secrets-backends-order
Open

Add config option [secrets]backends_order#45931
moiseenkov wants to merge 1 commit intoapache:mainfrom
VladaZakharova:secrets-backends-order

Conversation

@moiseenkov
Copy link
Copy Markdown
Contributor

Introduce a new configuration option for specifying secret backends load order:

[secrets]backends_order = custom,environment_variable,metastore

The default value represents current behavior, thus nothing will change for existing users.

@moiseenkov moiseenkov force-pushed the secrets-backends-order branch from 61b5ab6 to 4489808 Compare January 22, 2025 13:38
@moiseenkov moiseenkov requested a review from eladkal January 22, 2025 13:45
@moiseenkov moiseenkov force-pushed the secrets-backends-order branch from 4489808 to 58d80f3 Compare January 22, 2025 14:35
@moiseenkov
Copy link
Copy Markdown
Contributor Author

@eladkal , please take a look at the updates.

@potiuk
Copy link
Copy Markdown
Member

potiuk commented Jan 25, 2025

I was initially against making it configurable, but seeing the simplicity and flexibility, I am in.

@potiuk
Copy link
Copy Markdown
Member

potiuk commented Jan 25, 2025

@eladkal ?

@VladaZakharova
Copy link
Copy Markdown
Contributor

hi there!
@potiuk
Can we merge this one please?

@VladaZakharova
Copy link
Copy Markdown
Contributor

Hi @potiuk @eladkal ! Are there some other changes we need to make here? Or we can merge this one?

@eladkal
Copy link
Copy Markdown
Contributor

eladkal commented Feb 13, 2025

We are on feature freeze for Airflow 3.
https://lists.apache.org/thread/r26htzl0w3th7pw0l1y31g6s14qbtwwt

@potiuk
Copy link
Copy Markdown
Member

potiuk commented Feb 15, 2025

Yeah. I think that might be 3.1

@Crowiant Crowiant force-pushed the secrets-backends-order branch 3 times, most recently from 8c516f8 to 347e2f1 Compare March 31, 2025 13:00
Copy link
Copy Markdown
Contributor

@eladkal eladkal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prevent accidental merge. We are on feature freeze for Airflow 3.
PR can not be merged till main branch is for 3.1

@eladkal eladkal added this to the Arflow 3.1+ milestone Mar 31, 2025
@eladkal eladkal modified the milestones: Airflow 3.1+, Airflow 3.1.0 Apr 21, 2025
@Crowiant Crowiant force-pushed the secrets-backends-order branch from 347e2f1 to 2b750de Compare April 24, 2025 12:21
@Crowiant Crowiant force-pushed the secrets-backends-order branch from 2b750de to 4c0d958 Compare May 23, 2025 14:52
@potiuk potiuk requested a review from eladkal June 30, 2025 21:02
@potiuk
Copy link
Copy Markdown
Member

potiuk commented Jul 1, 2025

This looks good to me - but I think it might be worth to raise a devlist discussion for it @VladaZakharova -> there were past discussions about changing the sequence of resolving configurations, and I know people have strong opinion about "fixed" vs. "confifurable" sequence - and there are arguments pro / against each of those options.

I think it would be good to raise a discussion asking what peopel think about it and try to reach consensus.

@eladkal
Copy link
Copy Markdown
Contributor

eladkal commented Jul 1, 2025

I think it would be good to raise a discussion asking what peopel think about it and try to reach consensus.

I agree. I am not comfortable with making this change without the UI indication / other mechanisem that allows dag authors to see the cluster admin setup for backend order

@Crowiant Crowiant force-pushed the secrets-backends-order branch 2 times, most recently from 785af81 to 2015d8b Compare December 22, 2025 17:14
@Crowiant Crowiant force-pushed the secrets-backends-order branch from 2015d8b to a5092ed Compare January 8, 2026 21:42
@Crowiant Crowiant requested a review from choo121600 as a code owner January 8, 2026 21:42
@Crowiant Crowiant force-pushed the secrets-backends-order branch from a5092ed to 41b4d5d Compare January 12, 2026 14:14
@Crowiant
Copy link
Copy Markdown
Contributor

Hello @amoghrajesh @uranusjr I responded to your comments in the PR. Could you please help with the review?

@potiuk
Copy link
Copy Markdown
Member

potiuk commented Jan 22, 2026

@amoghrajesh @uranusjr -> any comments here? I think there were some important questions/comments from you and I would love to merge that one to make sure it makes it for 3.2 (it looks good in general).

@eladkal
Copy link
Copy Markdown
Contributor

eladkal commented Jan 22, 2026

I don't have time to re-review but I still have some concerns. I advise to tag this as experimental feature so community will use this feature with judgment.
I will however ask to please present a UI image of how the indication of backend order is shown to users.

@potiuk
Copy link
Copy Markdown
Member

potiuk commented Jan 22, 2026

I advise to tag this as experimental feature so community will use this feature with judgment.

Good idea @eladkal

@Crowiant Crowiant force-pushed the secrets-backends-order branch from 41b4d5d to 4ff5632 Compare January 29, 2026 19:53
@Crowiant
Copy link
Copy Markdown
Contributor

Hello @potiuk @eladkal Thank you for your comments. I added experimental tag to the feature.
Here are screenshots of how backends order looks on UI:

backends_order_2 backends_order_1

@potiuk
Copy link
Copy Markdown
Member

potiuk commented Feb 3, 2026

Can you please resolve conflicts and fix the remaining static check?

@Crowiant Crowiant force-pushed the secrets-backends-order branch 3 times, most recently from fee065b to 9a7803e Compare February 6, 2026 18:16
@Crowiant
Copy link
Copy Markdown
Contributor

Hello @potiuk I updated the PR. Since checks are passing, can we merge if there are no objections?

@potiuk
Copy link
Copy Markdown
Member

potiuk commented Mar 1, 2026

Sorry for that - I've been a bit busy - can you please rebase one more time as it needs more conflict resolution - also the UI part is somethign maybe @jason810496 can you re-review?

@Crowiant Crowiant force-pushed the secrets-backends-order branch 3 times, most recently from c1085eb to 903e4fb Compare March 4, 2026 17:04
@potiuk
Copy link
Copy Markdown
Member

potiuk commented Mar 4, 2026

@eladkal - looks like your concerns are alleviated - can you please remove "request changes"?

@amoghrajesh
Copy link
Copy Markdown
Contributor

@eladkal do you mind taking a look at this one again?

@Crowiant would you resolve the merge conflicts too please?

It doesn't seem like we will make this one in time for 3.2

@Crowiant
Copy link
Copy Markdown
Contributor

Crowiant commented Apr 1, 2026

Hello @amoghrajesh I rebased and set the backends_order feature for Airflow 3.2.1

@eladkal could you please re-review this PR?

@potiuk
Copy link
Copy Markdown
Member

potiuk commented Apr 2, 2026

@moiseenkov This PR has a few issues that need to be addressed before it can be reviewed — please see our Pull Request quality criteria.

Issues found:

  • Merge conflicts: This PR has merge conflicts with the main branch. Your branch is 35 commits behind main. Please rebase your branch (git fetch origin && git rebase origin/main), resolve the conflicts, and push again. See contributing quick start.
  • Other failing CI checks: Failing: Additional PROD image tests / Test e2e integration tests with PROD image / Regular e2e test. Run prek run --from-ref main locally to reproduce. See static checks docs.
  • ⚠️ Unresolved review comments: This PR has 10 unresolved review threads from maintainers: @eladkal (MEMBER): 1 unresolved threads; @amoghrajesh (MEMBER): 8 unresolved threads; @uranusjr (MEMBER): 1 unresolved threads. Please review and resolve all inline review comments before requesting another review. You can resolve a conversation by clicking 'Resolve conversation' on each thread after addressing the feedback. See pull request guidelines.

What to do next:

  • The comment informs you what you need to do.
  • Fix each issue, then mark the PR as "Ready for review" in the GitHub UI - but only after making sure that all the issues are fixed.
  • There is no rush — take your time and work at your own pace. We appreciate your contribution and are happy to wait for updates.
  • Maintainers will then proceed with a normal review.

There is no rush — take your time and work at your own pace. We appreciate your contribution and are happy to wait for updates. If you have questions, feel free to ask on the Airflow Slack.

@potiuk
Copy link
Copy Markdown
Member

potiuk commented Apr 6, 2026

@eladkal could you please re-review this PR?

@moiseenkov @chrisnordqvist -> cna you please rebase and make the PR green again. This can happen multple times, I know, but keeping the PR to be green for review is quite important as otherwise we do not knowwhatis really not working and what needs conflict resolution. We had a lot of troubles recently with ***lots of ** PRS and bad ones and also with lots of flaky tests- they are mitigated now so it should be easier.

@Crowiant
Copy link
Copy Markdown
Contributor

Crowiant commented Apr 7, 2026

Hello @potiuk @eladkal
I rebased this PR again. CI fails not because of my changes. Could we please move forward with this PR? It's been a year since it was created...

@potiuk
Copy link
Copy Markdown
Member

potiuk commented Apr 8, 2026

Yes we certainly lost track of it

@potiuk
Copy link
Copy Markdown
Member

potiuk commented Apr 8, 2026

As soon as we deal with the current overload we shall come back to it.

@potiuk
Copy link
Copy Markdown
Member

potiuk commented Apr 8, 2026

@amoghrajesh -> you had comments on it, can you re-review as well? I thnk this one is indeed long overdue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

allow translation change This label should be set if we want to bypass translation freeze and change english translations. area:secrets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants