Secrets in ConfigurableResources #18829
Unanswered
matthias-Q
asked this question in
Q&A
Replies: 1 comment
-
I'm also facing this issue and am not testing some of the code I'd like to. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am trying to understand how ConfigurableResources should be handled with secrets.
I want to use the
SSHResource
and I want to provide the ssh key as a string. This is fetched from the AWS secrets store.Since ConfigurableResources are now immutable (derived from pydantic.BaseModel with froze=True) I have to provide this secret to the
SSHResource
in theDefinition
.This means it is in the
__init__.py
in my user_code and the secret is loaded when the user_code is loaded and not at the beginning of the execution. Is this the desired way? I have issues with mocking things for testing in CI when the code is already in the init.py.What is the correct way here?
Beta Was this translation helpful? Give feedback.
All reactions