Skip to content

Conversation

migmartri
Copy link
Member

@migmartri migmartri commented Mar 24, 2023

Update the Control plane readiness probe API endpoint to take into account that the CAS configuration is correct and can in fact reach the CAS gRPC API server.

In other words, now it checks that it can reach the statusz endpoint of the configured CAS dependency.

Refs #2

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 March 24, 2023 13:33
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
jwtMiddleware.WithClaims(func() jwt.Claims { return &casJWT.Claims{} })),
// below you can see a re-implementation of the middleware as a stream interceptor
// If we require a logged in user we
selector.Server(
Copy link
Member Author

Choose a reason for hiding this comment

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

allow status endpoint without authentication

Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
@migmartri migmartri merged commit 625cefa into chainloop-dev:main Mar 27, 2023
@migmartri migmartri deleted the readiness-probe branch March 27, 2023 08:26
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.

1 participant