acoustic-carpenter-78188
10/28/2025, 10:53 PMflyteworkflow object.
## What changes were proposed in this pull request?
This PR adds a parameter that enables a new annotation to be injected into each flyteworkflow object that contains the user principal, which usually carries oauth information. Additionally, it allows customization of the annotation prefix.
## How was this patch tested?
I added some unit tests, and I also tested in production with the flyte-core chart on EKS and using Keycloak:
$ kubectl describe flyteworkflow -n flyte-workspace ax5hwpvbmwnkhdkmq67m | grep <http://flyte.org|flyte.org>
Annotations: <http://flyte.org/user|flyte.org/user>: <mailto:ttitsworth@lila.ai|ttitsworth@lila.ai>
### Labels
Please add one or more of the following labels to categorize your PR:
• added: For new features.
• changed: For changes in existing functionality.
• deprecated: For soon-to-be-removed features.
• removed: For features being removed.
• fixed: For any bug fixed.
• security: In case of vulnerabilities
This is important to improve the readability of release notes.
### Setup process
### Screenshots
## Check all the applicable boxes
• I updated the documentation accordingly.
• All new and existing tests passed.
• All commits are signed-off.
## Related PRs
## Docs link
https://bito.ai#summarystart|
### Summary by Bito
• This pull request introduces a feature for injecting user annotations into Flyte workflows, enhancing visibility and accountability in multi-team environments.
• It updates the identity annotation prefix to enhance user identification and supports customization of this prefix.
• The changes improve error handling in the execution manager, ensuring better resource management and security in Kubernetes environments.
• Configuration updates include new identity annotation fields and customization options for annotation prefixes, enhancing resource management and security.
• Unit tests have been added to ensure the functionality works as intended, validating the new feature.
• Overall, this update introduces new user annotation features and customization options in Flyte workflows, with added unit tests for validation.
flyteorg/flyte