You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "unixengineer (via GitHub)" <gi...@apache.org> on 2026/02/24 19:49:26 UTC
[I] JWT tokens appearing in task logs [airflow]
unixengineer opened a new issue, #62428:
URL: https://github.com/apache/airflow/issues/62428
### Apache Airflow version
3.1.7
### If "Other Airflow 3 version" selected, which one?
_No response_
### What happened?
in task logs, JWT tokens are being exposed. hers is an example:
```
{"timestamp":"2026-02-24T19:46:05.812507Z","level":"info","event":"Executing workload","workload":"ExecuteTask(token='eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIwMTljOTEyZS1mNzIxLTcyMjYtODA0Yi1hMGYwNjE4NzU4NDkiLCJqdGkiOiI4NzY3ZjQyMTllMjM0NmU5YjdkOWI2ZjNjODIzM2RlNiIsImF1ZCI6InVybjphaXJmbG93LmFwYWNoZS5vcmc6dGFzayIsIm5iZiI6MTc3MTk2MjMzNSwiZXhwIjoxNzcxOTYyOTM1LCJpYXQiOjE3NzE5NjIzMzV9.rS5py-iaK7SjB5wAWmaWPdRBPX_nwZd96e6I10GnLAqyzBimv1Mb4TmtKJ-R2kNjKd_85z2DE8uKE73Qn1hUGA', ti=TaskInstance(id=UUID('019c912e-f721-7226-804b-a0f061875849'), dag_version_id=UUID('019c912f-3165-7016-af2f-ccd4979fff19'), task_id='upload_to_s3', dag_id='sync_git_to_s3', run_id='scheduled__2026-02-24T19:45:00+00:00', try_number=1, map_index=-1, pool_slots=1, queue='default', priority_weight=1, executor_config=None, parent_context_carrier={}, context_carrier={}), dag_rel_path=PurePosixPath('sync_git_to_s3.py'), bundle_info=BundleInfo(name='dags-folder', version=None), log_path='dag_id=sync_git_to_s3/run_id=sc
heduled__2026-02-24T19:45:00+00:00/task_id=upload_to_s3/attempt=1.log', type='ExecuteTask')","logger":"__main__","filename":"execute_workload.py","lineno":56}
```
### What you think should happen instead?
Token exposure is being flagged as security risk and why expose the token in the logs ?
### How to reproduce
3.1.7 - set logging to INFO
### Operating System
RHEL 9
### Versions of Apache Airflow Providers
_No response_
### Deployment
Official Apache Airflow Helm Chart
### 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
- [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] JWT tokens appearing in task logs [airflow]
Posted by "unixengineer (via GitHub)" <gi...@apache.org>.
unixengineer commented on issue #62428:
URL: https://github.com/apache/airflow/issues/62428#issuecomment-3987275357
> Are you using a Helm chart? If your error is the same as mine, I can share how I fixed it. Could you please provide more detailed information?
@duuree-beep - what was your fix? The "error" (not an error - this is token exposure in the logs) is mentioned in my post. exposure of the temp tokens in executor logs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] JWT tokens appearing in task logs [airflow]
Posted by "Eason09053360 (via GitHub)" <gi...@apache.org>.
Eason09053360 commented on issue #62428:
URL: https://github.com/apache/airflow/issues/62428#issuecomment-3956275841
I would like to work on this issue!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] JWT tokens appearing in task logs [airflow]
Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on issue #62428:
URL: https://github.com/apache/airflow/issues/62428#issuecomment-3954368222
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] JWT tokens appearing in task logs [airflow]
Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun commented on issue #62428:
URL: https://github.com/apache/airflow/issues/62428#issuecomment-3960280362
Can you provide a way to reproduce? (Which executor are you using, if you see that in the worker logs or tasks logs, etc...)
I wasn't able to reproduce on my end.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] JWT tokens appearing in task logs [airflow]
Posted by "kaxil (via GitHub)" <gi...@apache.org>.
kaxil closed issue #62428: JWT tokens appearing in task logs
URL: https://github.com/apache/airflow/issues/62428
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] JWT tokens appearing in task logs [airflow]
Posted by "ashb (via GitHub)" <gi...@apache.org>.
ashb commented on issue #62428:
URL: https://github.com/apache/airflow/issues/62428#issuecomment-3960428644
`"logger":"__main__","filename":"execute_workload.py"` tells me this might be KubeExec @pierrejeambrun
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] JWT tokens appearing in task logs [airflow]
Posted by "unixengineer (via GitHub)" <gi...@apache.org>.
unixengineer commented on issue #62428:
URL: https://github.com/apache/airflow/issues/62428#issuecomment-4195993895
which version of the release would this fix show up in @dominikhei
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] JWT tokens appearing in task logs [airflow]
Posted by "unixengineer (via GitHub)" <gi...@apache.org>.
unixengineer commented on issue #62428:
URL: https://github.com/apache/airflow/issues/62428#issuecomment-3961417478
> `"logger":"__main__","filename":"execute_workload.py"` tells me this might be KubeExec [@pierrejeambrun](https://github.com/pierrejeambrun)
>
> [@unixengineer](https://github.com/unixengineer) Are you using KubeExec?
We are using KubernetesExecutor.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] JWT tokens appearing in task logs [airflow]
Posted by "duuree-beep (via GitHub)" <gi...@apache.org>.
duuree-beep commented on issue #62428:
URL: https://github.com/apache/airflow/issues/62428#issuecomment-3957770210
I’m experiencing the same error. Even though the API server is running, when I access the URL it shows "something bad has happened."
When I checked the API server pod logs, it appears to be a JWT-related error.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] JWT tokens appearing in task logs [airflow]
Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun commented on issue #62428:
URL: https://github.com/apache/airflow/issues/62428#issuecomment-4199636467
@unixengineer This will be part of airflow 3.2.0 was just released. (3rd bug fix in the release note)
https://airflow.apache.org/docs/apache-airflow/stable/release_notes.html#airflow-3-2-0-2026-04-07
https://github.com/apache/airflow/pull/62964
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org