Skip to content

[airflow-ctl/v0-1-test] Stop airflowctl auth commands sending the stored token to --api-url (#76280) - #76318

Merged
shahar1 merged 1 commit into
airflow-ctl/v0-1-testfrom
backport-7a79357-airflow-ctl/v0-1-test
Nov 2, 2026
Merged

shahar1 merged 1 commit into
airflow-ctl/v0-1-testfrom
backport-7a79357-airflow-ctl/v0-1-test

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

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

…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>
@shahar1
shahar1 merged commit 7a08049 into airflow-ctl/v0-1-test Nov 2, 2026
13 checks passed
@shahar1
shahar1 deleted the backport-7a79357-airflow-ctl/v0-1-test branch November 2, 2026 18:45
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>
@shahar1 shahar1 mentioned this pull request Nov 4, 2026
1 task done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants