-
Notifications
You must be signed in to change notification settings - Fork 38
refactor(CAS proxy): multiple CAS backend providers support #359
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
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
issues: | ||
exclude-rules: | ||
- path: _test\.go | ||
text: "Potential hardcoded credentials" |
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.
for some reason now it complains about some of the sha256 digests that we are using during testing
message InfozResponse { | ||
string version = 1; | ||
string version = 1; | ||
repeated string backends = 2; |
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.
this is in fact the new part. It exposes the enabled backends.
backend.Providers | ||
} | ||
|
||
func loadCASBackendProviders(creader credentials.Reader) backend.Providers { |
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.
the new dynamic loader
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.
LGTM based on the review via conf call
Adds support to dynamically select a backend provider in the CAS proxy
This is a prerequisite of #357, once merged we will be able to implement a new backend in CAS + enable it in the controlplane