Skip to content

Conversation

migmartri
Copy link
Member

@migmartri migmartri commented May 27, 2023

Both the control plane and the CAS use the same way to configure and initialize the secrets backend. This code extracts this to the parent module, specifically:

  • Move initialization code and proto declaration to parent credentials module
  • Adds declarative validations to the config.proto file and runs validations, see attached tests to learn more

Note that this does not have any impact in the external UX of an user.

cc/ @gr0

Refs #108

Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
@migmartri migmartri marked this pull request as ready for review May 29, 2023 11:09
@migmartri migmartri requested review from danlishka and gr0 May 29, 2023 11:09
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Copy link
Collaborator

@gr0 gr0 left a comment

Choose a reason for hiding this comment

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

👍 I like the simplification and putting the code responsible for initialization in a single place.

@migmartri
Copy link
Member Author

migmartri commented May 29, 2023 via email

@migmartri migmartri merged commit d20db08 into chainloop-dev:main May 30, 2023
@migmartri migmartri deleted the add-config branch May 30, 2023 11:17
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.

3 participants