Skip to content

Conversation

@adamdelman
Copy link
Contributor

@adamdelman adamdelman commented Sep 19, 2024

Modify the compiled YAML on the server side to include references to kubernetes secrets instead of plain text values

https://iguazio.atlassian.net/browse/ML-7735

adamdelman and others added 5 commits September 19, 2024 11:02
@adamdelman adamdelman force-pushed the adamd/ML-7735 branch 5 times, most recently from d432378 to 4464604 Compare September 19, 2024 17:23
Copy link
Member

@liranbg liranbg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some suggestions and fixes, overall - looking very well!

Copy link
Member

@theSaarco theSaarco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but there are some changes needed, and I'm also not so sure about some of the changes done and why they're needed.
Also, the original bug shows there are 2 locations that need cleaning - the env vars, and the spec of the function when a deploy_function is done. In this PR I can only see you handling the 1st case, not the 2nd. Are you planning to do that in a separate PR?

Copy link
Member

@moranbental moranbental left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! some suggestions

@adamdelman adamdelman force-pushed the adamd/ML-7735 branch 4 times, most recently from 61aa4f1 to e5aa2b1 Compare September 23, 2024 14:12
Copy link
Contributor

@alonmr alonmr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice! small comments

Copy link
Member

@theSaarco theSaarco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very good. Have some relatively minor comments.
Also - still can't see any reference to replacing secrets from function spec in the deploy-function case. Will this be treated in a different PR?

Copy link
Member

@liranbg liranbg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

up

@adamdelman adamdelman force-pushed the adamd/ML-7735 branch 4 times, most recently from d4de188 to ad7f44a Compare September 30, 2024 13:16
Copy link
Contributor

@alonmr alonmr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very well! Some comments/questions

@adamdelman adamdelman force-pushed the adamd/ML-7735 branch 2 times, most recently from 54f644e to 6c74452 Compare September 30, 2024 14:31
theSaarco
theSaarco previously approved these changes Sep 30, 2024
Copy link
Member

@theSaarco theSaarco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - I'm approving as functionality seems complete, but have some suggestions for improvements that would make this cleaner.

Copy link
Member

@theSaarco theSaarco Sep 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A thought that could improve this test - since the kfp_client_mock mocks all calls to the KFP Client, you could check the call actually being generated and verify that the contents of the pipeline really has the secrets obfuscated. This is a more direct and complete check than verifying the secrets-mock has this auth secret being created.
It's not a must, but if it's simple enough to do, would try to add that here.

liranbg
liranbg previously approved these changes Sep 30, 2024
@liranbg liranbg changed the title [KFP] Prevent mlrun secrets from being set on KFP pipeline specs, instead set them on pipeline creation in the server side [KFP] Obscuring KFP env credentials Sep 30, 2024
@liranbg liranbg changed the base branch from development to 1.7.x September 30, 2024 20:18
@liranbg liranbg dismissed stale reviews from theSaarco and themself September 30, 2024 20:18

The base branch was changed.

@liranbg liranbg changed the base branch from 1.7.x to development September 30, 2024 20:19
@liranbg liranbg merged commit 78730c3 into mlrun:development Sep 30, 2024
liranbg pushed a commit to liranbg/mlrun that referenced this pull request Sep 30, 2024
@adamdelman adamdelman deleted the adamd/ML-7735 branch May 27, 2025 14:58
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.

6 participants