You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "JJtheNOOB (via GitHub)" <gi...@apache.org> on 2025/09/10 14:51:27 UTC

[I] Airflow secret backend for k8s role missing "audience" parameter setting which is required from vault 1.21+ [airflow]

JJtheNOOB opened a new issue, #55460:
URL: https://github.com/apache/airflow/issues/55460

   ### Official Helm Chart version
   
   1.18.0 (latest released)
   
   ### Apache Airflow version
   
   2.9
   
   ### Kubernetes Version
   
   v1.32
   
   ### Helm Chart configuration
   
   ```
   
   env:
   
     - name: "AIRFLOW__SECRETS__BACKEND_KWARGS"
   
           value: |
   
             {
   
             "auth_type":"kubernetes",
   
             "kubernetes_role": "airflow-dev",
   
             "connections_path": "airflow/connections",
   
             "variables_path": "airflow/variables",
   
             "auth_mount_point": "xxxxx",
   
             "mount_point": "stage",
   
             "url": "xxxxx",
   
             }
   
   ```
   
   ### Docker Image customizations
   
   _No response_
   
   ### What happened
   
   _No response_
   
   ### What you think should happen instead
   
   Dear airflow community:
   
    
   
   Hello!
   
    
   
   I would like to raise attention that starting from vault 1.21+, we will need to set audience for k8s role for secret backend. Warning messages looks like this `A role without an audience was used to authenticate into Vault. Vault v1.21+ will require roles to have an audience.`
   
    
   
   Below is our current airflow secret backend settings used in the `vaules.yaml` file:
   
   ```
   
   env:
   
     - name: "AIRFLOW__SECRETS__BACKEND_KWARGS"
   
           value: |
   
             {
   
             "auth_type":"kubernetes",
   
             "kubernetes_role": "airflow-dev",
   
             "connections_path": "airflow/connections",
   
             "variables_path": "airflow/variables",
   
             "auth_mount_point": "xxxxx",
   
             "mount_point": "stage",
   
             "url": "xxxxx",
   
             }
   
   ```
   
   This works currently but we are seeing the above warning messages, adding "audience" parameter suppresses the warning however it also make airflow no longer able to connect to vault secret backend. Confirming we had done proper set up on both vault side and k8s side. Either I am missing something or this feature was not yet released by airflow.
   
   I am looking forward to see if someone could add, test and release the audience parameter to ensure it will allow k8s roles to proper access vault secret backend. Thank you!
   
   ### How to reproduce
   
   1. set up airflow helm chart 
   2. set up vault
   3. connect airflow with vault secret backend with the env variables provided
   
   ### 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] Airflow secret backend for k8s role missing "audience" parameter setting which is required from vault 1.21+ [airflow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #55460: Airflow secret backend for k8s role missing "audience" parameter setting which is required from vault 1.21+
URL: https://github.com/apache/airflow/issues/55460


-- 
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] Airflow secret backend for k8s role missing "audience" parameter setting which is required from vault 1.21+ [airflow]

Posted by "jroachgolf84 (via GitHub)" <gi...@apache.org>.
jroachgolf84 commented on issue #55460:
URL: https://github.com/apache/airflow/issues/55460#issuecomment-3282102253

   @HsiuChuanHsu, please feel free to open up a PR for 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] Airflow secret backend for k8s role missing "audience" parameter setting which is required from vault 1.21+ [airflow]

Posted by "HsiuChuanHsu (via GitHub)" <gi...@apache.org>.
HsiuChuanHsu commented on issue #55460:
URL: https://github.com/apache/airflow/issues/55460#issuecomment-3277437738

   It looks true that `audience` will be required based on this [PR](https://github.com/hashicorp/vault-plugin-auth-kubernetes/pull/301) and this [changelog](https://github.com/hashicorp/vault-plugin-auth-kubernetes/blob/0499c1633aa94b980b5595e0816b48a86112e4af/CHANGELOG.md?plain=1#L9).
   
   I'd like to work on this. May I be assigned? Thanks!😀


-- 
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] Airflow secret backend for k8s role missing "audience" parameter setting which is required from vault 1.21+ [airflow]

Posted by "JJtheNOOB (via GitHub)" <gi...@apache.org>.
JJtheNOOB commented on issue #55460:
URL: https://github.com/apache/airflow/issues/55460#issuecomment-3303412050

   Thank you so much @HsiuChuanHsu 👍 


-- 
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] Airflow secret backend for k8s role missing "audience" parameter setting which is required from vault 1.21+ [airflow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #55460:
URL: https://github.com/apache/airflow/issues/55460#issuecomment-6261875444

   This issue has been closed because it has not received response from the issue author.


-- 
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] Airflow secret backend for k8s role missing "audience" parameter setting which is required from vault 1.21+ [airflow]

Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on issue #55460:
URL: https://github.com/apache/airflow/issues/55460#issuecomment-3275336749

   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] Airflow secret backend for k8s role missing "audience" parameter setting which is required from vault 1.21+ [airflow]

Posted by "HsiuChuanHsu (via GitHub)" <gi...@apache.org>.
HsiuChuanHsu commented on issue #55460:
URL: https://github.com/apache/airflow/issues/55460#issuecomment-3303115978

   Hi @JJtheNOOB,
   I've made my PR a draft for now. The current version of our havc package doesn't support the audience feature yet.
   
   Once the related [PR](https://github.com/hvac/hvac/pull/1224) for havc is merged and a new version is released, I'll update my PR. 
   After that, I'll make it ready to be review.


-- 
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] Airflow secret backend for k8s role missing "audience" parameter setting which is required from vault 1.21+ [airflow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #55460:
URL: https://github.com/apache/airflow/issues/55460#issuecomment-5726433190

   This issue has been automatically marked as stale because it has been open for 365 days without any activity. There has been several Airflow releases since last activity on this issue. Kindly asking to recheck the report against latest Airflow version and let us know if the issue is reproducible. The issue will be closed in next 30 days if no further activity occurs from the issue author.


-- 
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