Repository navigation
[airflow-ctl/v0-1-test] Stop airflowctl auth commands sending the stored token to --api-url (#76280) - #76318
Merged
shahar1 merged 1 commit intoNov 2, 2026
Conversation
…red token to --api-url (#76280) `auth login` and `auth token` log in with a username and password. Before they run, the decorator builds the API client with the token stored for the current environment. The commands then switch the client to the URL from `--api-url`, but the client still adds the stored token to every request. If the URL is wrong, or points to another server, that server receives the stored token. The `/auth/token/cli` endpoints of the simple, FAB and Keycloak auth managers only read the username and password, so the token is never needed there. (cherry picked from commit 7a79357) Co-authored-by: Andrew Chang <69671930+Andrushika@users.noreply.github.com>
1 task done
shahar1
marked this pull request as ready for review
November 2, 2026 18:36
shahar1
requested review from
bugraoz93,
dheerajturaga and
potiuk
as code owners
November 2, 2026 18:36
shahar1
approved these changes
Nov 2, 2026
shahar1
pushed a commit
to shahar1/airflow
that referenced
this pull request
Nov 4, 2026
…red token to --api-url (apache#76280) (apache#76318) `auth login` and `auth token` log in with a username and password. Before they run, the decorator builds the API client with the token stored for the current environment. The commands then switch the client to the URL from `--api-url`, but the client still adds the stored token to every request. If the URL is wrong, or points to another server, that server receives the stored token. The `/auth/token/cli` endpoints of the simple, FAB and Keycloak auth managers only read the username and password, so the token is never needed there. (cherry picked from commit 7a79357) Co-authored-by: Andrew Chang <69671930+Andrushika@users.noreply.github.com>
1 task done
28 of 67 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.
auth loginandauth tokenlog in with a username and password.Before they run, the decorator builds the API client with the token
stored for the current environment. The commands then switch the client
to the URL from
--api-url, but the client still adds the stored tokento every request.
If the URL is wrong, or points to another server, that server receives
the stored token. The
/auth/token/cliendpoints of the simple, FAB andKeycloak auth managers only read the username and password, so the
token is never needed there.
(cherry picked from commit 7a79357)
Co-authored-by: Andrew Chang 69671930+Andrushika@users.noreply.github.com