Repository navigation
Closed
Labels
affected_version:3.1Issues Reported for 3.1area:APIAirflow's REST/HTTP APIarea:airflow-ctlarea:autharea:corekind:bugThis is a clearly a bugpriority:highHigh priority bug that should be patched quickly but does not require immediate new release
Description
Apache Airflow version
main (development)
If "Other Airflow 2 version" selected, which one?
No response
What happened?
Installed package:
root@f17bd88a475e:/opt/airflow# pip show apache-airflow-ctl
Name: apache-airflow-ctl
Version: 1.0.0b1
Summary: Apache Airflow command line tool for communicating with an Apache Airflow, using the API.
Home-page:
Author:
Author-email:
License:
Location: /usr/python/lib/python3.10/site-packages
Editable project location: /opt/airflow/airflow-ctl
Requires: argcomplete, httpx, keyring, lazy-object-proxy, methodtools, platformdirs, pydantic, rich-argparse, structlog, tabulate, uuid6
Required-by: Error:
root@f17bd88a475e:/opt/airflow# airflowctl auth login --api-url http://localhost:28080/api/v2 --env AIRFLOW_CLI_ENVIRONMENT
Please set a password for your new keyring:
Please confirm the password:
Error: blank passwords aren't allowed.
Please set a password for your new keyring:
Please confirm the password:
Login successful! Welcome to airflowctl!
root@f17bd88a475e:/opt/airflow# airflowctl assets create-event --asset-id 1
2025-09-09 13:41:29 [warning ] Server error [airflowctl.api.client] extra={'detail': 'Not authenticated'}
Server response error: Client error message: {'detail': 'Not authenticated'}
Client error, Please check the command and its parameters. If you need help, run the command with --help.What you think should happen instead?
No response
How to reproduce
Try to run airflowctl commands as per this doc
Operating System
Linux
Versions of Apache Airflow Providers
No response
Deployment
Other
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
affected_version:3.1Issues Reported for 3.1area:APIAirflow's REST/HTTP APIarea:airflow-ctlarea:autharea:corekind:bugThis is a clearly a bugpriority:highHigh priority bug that should be patched quickly but does not require immediate new release
Activity
Prab-27 commentedon Sep 9, 2025
@bugraoz93 ,When I try to reproduce this, it shows me...
bugraoz93 commentedon Sep 9, 2025
Thanks for checking @Prab-27!
AIRFLOW_CLI_TOKENshould be acquired from the API manually because that is the JWT token. Strangely, you would be able to get a successful response. Maybe that is another bug. I will check it.bugraoz93 commentedon Sep 9, 2025
Thanks for checking @Prab-27!
AIRFLOW_CLI_TOKENshould be acquired from the API manually because that is the JWT token. You can add --username=admin --password at the end and you should be elevated automaticallybugraoz93 commentedon Sep 9, 2025
Thanks a lot @atul-astronomer! I wrongly closed it. I will check this out and fix it soon
bugraoz93 commentedon Sep 9, 2025
@Prab-27, that seems like another problem related to maybe the datamodel not being generated properly. I will handle that separately. It seems that only for assets which also support the datamodel or API update we should update.