-
Notifications
You must be signed in to change notification settings - Fork 15
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
Security via operator, OIDC trusted certificates #1314
Conversation
8e8da27
to
ca9b92d
Compare
6d4dd5e
to
e15b8a0
Compare
...src/main/java/com/github/streamshub/console/api/security/ConsoleAuthenticationMechanism.java
Outdated
Show resolved
Hide resolved
api/src/main/java/com/github/streamshub/console/api/security/OidcTenantConfigResolver.java
Show resolved
Hide resolved
@@ -68,6 +68,7 @@ quarkus.arc.exclude-types=io.apicurio.registry.rest.JacksonDateTimeCustomizer | |||
quarkus.index-dependency.strimzi-api.group-id=io.strimzi | |||
quarkus.index-dependency.strimzi-api.artifact-id=api | |||
|
|||
console.work-path=${java.io.tmpdir} |
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 operator overrides this to use an emptydir volume in Kube, maintaining a read-only root container filesystem.
private String pullPolicy(String image) { | ||
return image.contains("sha256:") ? "IfNotPresent" : "Always"; | ||
} |
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 idea here is there is no point re-pulling an image that uses a SHA, but a tagged image may have changed and should be re-pulled. Default configuration in the released operator will use image SHAs.
Signed-off-by: Michael Edgar <[email protected]>
Signed-off-by: Michael Edgar <[email protected]>
Signed-off-by: Michael Edgar <[email protected]>
Signed-off-by: Michael Edgar <[email protected]>
Signed-off-by: Michael Edgar <[email protected]>
- map UI variable for PEM truststore - always pull images without SHAs Signed-off-by: Michael Edgar <[email protected]>
Signed-off-by: Michael Edgar <[email protected]>
Signed-off-by: Michael Edgar <[email protected]>
Signed-off-by: Michael Edgar <[email protected]>
Signed-off-by: Michael Edgar <[email protected]>
api/src/main/java/com/github/streamshub/console/api/security/OidcTenantConfigResolver.java
Show resolved
Hide resolved
api/src/main/java/com/github/streamshub/console/api/security/OidcTenantConfigResolver.java
Outdated
Show resolved
Hide resolved
.../java/com/github/streamshub/console/kafka/systemtest/deployment/KeycloakResourceManager.java
Show resolved
Hide resolved
Could you expand on the "Enable security to be configured via operator/Console CR" bullet in the PR's description. I'm lacking some context. |
Signed-off-by: Michael Edgar <[email protected]>
Signed-off-by: Michael Edgar <[email protected]>
Updated. Let me know if you have any questions on it.
|
operator/src/main/java/com/github/streamshub/console/api/v1alpha1/spec/security/Audit.java
Outdated
Show resolved
Hide resolved
operator/src/main/java/com/github/streamshub/console/api/v1alpha1/spec/security/Oidc.java
Outdated
Show resolved
Hide resolved
operator/src/main/java/com/github/streamshub/console/api/v1alpha1/spec/security/Audit.java
Outdated
Show resolved
Hide resolved
operator/src/main/java/com/github/streamshub/console/api/v1alpha1/status/Condition.java
Outdated
Show resolved
Hide resolved
operator/src/main/java/com/github/streamshub/console/dependents/ConfigurationProcessor.java
Show resolved
Hide resolved
operator/src/test/java/com/github/streamshub/console/ConsoleReconcilerTestBase.java
Outdated
Show resolved
Hide resolved
It is a big PR, so reviewing has been tough going. LGTM. |
Signed-off-by: Michael Edgar <[email protected]>
Thanks for the update, lgtm |
Quality Gate passedIssues Measures |
ConsoleSecret
dependent resource to newConfigurationProcessor
"virtual" resource upon which all other dependent resources depend on. This provides a single point of validation at the start of each reconcile process.kubectl
's deployment rollout status check.Closes #1247
Closes #1248
Issue #1335 will further refine how truststores are configured in the API server by avoiding the use of
quarkus.tls.*
configuration properties and supporting configuration in the console's own YAML file.