-
Notifications
You must be signed in to change notification settings - Fork 293
[KFP] Obscuring KFP env credentials #6370
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
Conversation
pipeline specs, instead set them on creation in the server side
…mlrun#6363) * [Nuclio] Raise error on multiple triggers + explicit ack + older nuclio [ML-7763](https://iguazio.atlassian.net/browse/ML-7763) * Update minimal nuclio version * [Nuclio] Raise error on multiple triggers + explicit ack + old nuclio [ML-7763](https://iguazio.atlassian.net/browse/ML-7763) * Remove redundant code
d432378 to
4464604
Compare
liranbg
left a comment
There was a problem hiding this 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!
pipeline-adapters/mlrun-pipelines-kfp-v1-8/src/mlrun_pipelines/patcher.py
Outdated
Show resolved
Hide resolved
pipeline-adapters/mlrun-pipelines-kfp-v1-8/src/mlrun_pipelines/patcher.py
Outdated
Show resolved
Hide resolved
pipeline-adapters/mlrun-pipelines-kfp-common/src/mlrun_pipelines/common/models.py
Outdated
Show resolved
Hide resolved
theSaarco
left a comment
There was a problem hiding this 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?
pipeline-adapters/mlrun-pipelines-kfp-common/src/mlrun_pipelines/common/ops.py
Outdated
Show resolved
Hide resolved
pipeline-adapters/mlrun-pipelines-kfp-common/src/mlrun_pipelines/common/ops.py
Outdated
Show resolved
Hide resolved
pipeline-adapters/mlrun-pipelines-kfp-common/src/mlrun_pipelines/common/ops.py
Outdated
Show resolved
Hide resolved
pipeline-adapters/mlrun-pipelines-kfp-v1-8/src/mlrun_pipelines/patcher.py
Outdated
Show resolved
Hide resolved
moranbental
left a comment
There was a problem hiding this 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
pipeline-adapters/mlrun-pipelines-kfp-common/src/mlrun_pipelines/common/models.py
Outdated
Show resolved
Hide resolved
pipeline-adapters/mlrun-pipelines-kfp-common/src/mlrun_pipelines/common/ops.py
Outdated
Show resolved
Hide resolved
pipeline-adapters/mlrun-pipelines-kfp-common/src/mlrun_pipelines/common/ops.py
Outdated
Show resolved
Hide resolved
61aa4f1 to
e5aa2b1
Compare
pipeline-adapters/mlrun-pipelines-kfp-common/src/mlrun_pipelines/common/ops.py
Outdated
Show resolved
Hide resolved
alonmr
left a comment
There was a problem hiding this 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
pipeline-adapters/mlrun-pipelines-kfp-v1-8/src/mlrun_pipelines/patcher.py
Outdated
Show resolved
Hide resolved
e5aa2b1 to
662ce51
Compare
662ce51 to
0237a5d
Compare
0237a5d to
5824e43
Compare
theSaarco
left a comment
There was a problem hiding this 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?
pipeline-adapters/mlrun-pipelines-kfp-common/src/mlrun_pipelines/common/ops.py
Outdated
Show resolved
Hide resolved
202301c to
c52e8bd
Compare
liranbg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
up
pipeline-adapters/mlrun-pipelines-kfp-common/src/mlrun_pipelines/common/ops.py
Outdated
Show resolved
Hide resolved
pipeline-adapters/mlrun-pipelines-kfp-common/src/mlrun_pipelines/common/ops.py
Outdated
Show resolved
Hide resolved
pipeline-adapters/mlrun-pipelines-kfp-common/src/mlrun_pipelines/common/ops.py
Outdated
Show resolved
Hide resolved
e6545a3 to
1c64c49
Compare
d4de188 to
ad7f44a
Compare
alonmr
left a comment
There was a problem hiding this 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
pipeline-adapters/mlrun-pipelines-kfp-common/src/mlrun_pipelines/common/ops.py
Outdated
Show resolved
Hide resolved
pipeline-adapters/mlrun-pipelines-kfp-common/src/mlrun_pipelines/common/ops.py
Outdated
Show resolved
Hide resolved
pipeline-adapters/mlrun-pipelines-kfp-common/src/mlrun_pipelines/common/ops.py
Outdated
Show resolved
Hide resolved
pipeline-adapters/mlrun-pipelines-kfp-common/src/mlrun_pipelines/common/ops.py
Outdated
Show resolved
Hide resolved
pipeline-adapters/mlrun-pipelines-kfp-common/src/mlrun_pipelines/common/ops.py
Outdated
Show resolved
Hide resolved
54f644e to
6c74452
Compare
theSaarco
left a comment
There was a problem hiding this 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.
pipeline-adapters/mlrun-pipelines-kfp-common/src/mlrun_pipelines/common/ops.py
Outdated
Show resolved
Hide resolved
pipeline-adapters/mlrun-pipelines-kfp-common/src/mlrun_pipelines/common/ops.py
Outdated
Show resolved
Hide resolved
pipeline-adapters/mlrun-pipelines-kfp-common/src/mlrun_pipelines/common/ops.py
Outdated
Show resolved
Hide resolved
pipeline-adapters/mlrun-pipelines-kfp-common/src/mlrun_pipelines/common/ops.py
Outdated
Show resolved
Hide resolved
pipeline-adapters/mlrun-pipelines-kfp-common/src/mlrun_pipelines/common/ops.py
Outdated
Show resolved
Hide resolved
tests/api/api/test_pipelines.py
Outdated
There was a problem hiding this comment.
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.
6c74452 to
db2e34b
Compare
The base branch was changed.
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