You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Workflows] Auth secret token mounting for Workflows (#9151)
### 📝 Description
<!-- A short summary of what this PR does. -->
<!-- Include any relevant context or background information. -->
Add support for IG4 authentication on workflows by mounting the secret
on the argo pods.
This PR moves the core logic of `enrich_and_validate_auth_token_name`
out of the launcher to a more common place so it can be used by
workflows since they don't go through launcher/runtime handler.
---
### 🛠️ Changes Made
<!-- - Key changes (e.g., added feature X, refactored Y, fixed Z) -->
- Move `enrich_and_validate_auth_token_name` core logic from launcher to
`mlrun.auth.utils`
- Create helper function `resolve_auth_token_secret_name` for pipelines
that gets token name and then extract secret name.
- Refactor `replace_kfp_plaintext_secret_env_vars_with_secret_refs` to
`process_kfp_workflow_secret_references` to pass the `auth_secret_name`
param so that it gets mounted to the argo pods during
`_enrich_kfp_workflow_yaml_credentials`
---
### ✅ Checklist
- [ ] I updated the documentation (if applicable)
- [x] I have tested the changes in this PR
- [ ] I confirmed whether my changes are covered by system tests
- [ ] If yes, I ran all relevant system tests and ensured they passed
before submitting this PR
- [ ] I updated existing system tests and/or added new ones if needed to
cover my changes
- [ ] If I introduced a deprecation:
- [ ] I followed the [Deprecation Guidelines](./DEPRECATION.md)
- [ ] I updated the relevant Jira ticket for documentation
---
### 🧪 Testing
<!-- - How it was tested (unit tests, manual, integration) -->
<!-- - Any special cases covered. -->
Unit tests
- `test_resolve_auth_secret_name`
- `test_enrich_and_validate_auth_token_name`
---
### 🔗 References
- Ticket link: https://iguazio.atlassian.net/browse/ML-11588
- Design docs links:
- External links:
---
### 🚨 Breaking Changes?
- [ ] Yes (explain below)
- [ ] No
<!-- If yes, describe what needs to be changed downstream: -->
---
### 🔍️ Additional Notes
<!-- Anything else reviewers should know (follow-up tasks, known issues,
affected areas etc.). -->
<!-- ### 📸 Screenshots / Logs -->
0 commit comments