Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add security context to task execution metadata #2296

Conversation

noahjax
Copy link
Contributor

@noahjax noahjax commented Mar 26, 2024

Tracking issue

https://github.com/flyteorg/flyte/issues/

Why are the changes needed?

For our specific use case it is critical to be able to determine the identity for the subject who launches a task. It seems like other information on the security context could also be more generally useful, so I included that in addition to the critical execution_identity field as part of this PR.

What changes were proposed in this pull request?

Add securityContext to TaskExecutionMetadata. This builds on top of conjunction with #2282, and relies on flyteorg/flyte#5105 to add security context to the flyteidl TaskExecutionMetadata.

How was this patch tested?

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

@noahjax noahjax force-pushed the noahjax.add-security-context-to-metadata branch 2 times, most recently from 0075cf9 to 2dc44d3 Compare March 26, 2024 18:15
Copy link

codecov bot commented Mar 26, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 82.33%. Comparing base (133e8d5) to head (72c1903).
Report is 4 commits behind head on master.

Files Patch % Lines
flytekit/models/task.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2296      +/-   ##
==========================================
- Coverage   83.50%   82.33%   -1.18%     
==========================================
  Files         324      324              
  Lines       24672    24677       +5     
  Branches     3512     3513       +1     
==========================================
- Hits        20603    20318     -285     
- Misses       3438     3721     +283     
- Partials      631      638       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@noahjax noahjax force-pushed the noahjax.add-security-context-to-metadata branch from 2dc44d3 to ab29e87 Compare March 26, 2024 19:31
@noahjax noahjax changed the title Noahjax.add security context to metadata Add security context to task execution metadata Mar 26, 2024
@noahjax noahjax force-pushed the noahjax.add-security-context-to-metadata branch from ab29e87 to 2e02777 Compare March 26, 2024 22:02
@noahjax noahjax changed the base branch from master to remove-lower-plugin-bounds March 26, 2024 22:03
@noahjax noahjax changed the base branch from remove-lower-plugin-bounds to master March 26, 2024 22:03
@noahjax noahjax force-pushed the noahjax.add-security-context-to-metadata branch from 2e02777 to 72c1903 Compare March 26, 2024 22:06
@noahjax
Copy link
Contributor Author

noahjax commented Apr 1, 2024

Closed in favor of #2315

@noahjax noahjax closed this Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant