-
Notifications
You must be signed in to change notification settings - Fork 272
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
Implement tls support for the app #6007
base: main
Are you sure you want to change the base?
Conversation
if (truststore.isValid() && truststorePassword.isValid()) { | ||
// ===== Truststore | ||
truststore.applySecretVolume(deployment, containerName); | ||
addEnvVar(env, QUARKUS_TLS_TRUST_STORE_P12_PATH, truststore.getSecretVolumeKeyPath()); | ||
truststorePassword.applySecretEnvVar(env, QUARKUS_TLS_TRUST_STORE_P12_PASSWORD); | ||
} |
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.
what if I will use just PEM cert as truststore? Like
kind: ApicurioRegistry3
apiVersion: registry.apicur.io/v1
metadata:
name: schema-registry
spec:
app:
storage:
type: "kafkasql"
kafkasql:
bootstrapServers: anubis-kafka-bootstrap.strimzi-kafka.svc:9093
tls:
truststoreSecretRef:
name: anubis-cluster-ca-cert
key: ca.crt
wouldn't it cause failure? I would more expect that keystore password will be required
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.
At the operator level we're supporting P12 (since it's usually a better practice than just specifying cert by cert). You will still be able to use PEM files using Quarkus own env vars.
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.
I see, thanks.
import java.util.Map; | ||
import java.util.Optional; | ||
|
||
import static io.apicurio.registry.operator.EnvironmentVariables.*; |
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.
Just a nit, but *
is not much good practice form my pov (different projects, different standards) :)
No description provided.