-
Notifications
You must be signed in to change notification settings - Fork 65
Add CRL checks #1474
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
Add CRL checks #1474
Conversation
@@ -66,7 +72,7 @@ public FileSystemVaultHandler( | |||
: aliases -> null; | |||
|
|||
FileSystemStoreInfo trust = supplyStoreInfo(resolvePath, options.trust); | |||
supplyTrust = (aliases, cacerts) -> newTrustFactory(trust, aliases, cacerts); | |||
supplyTrust = (aliases, cacerts, crlChecks) -> newTrustFactory(trust, aliases, cacerts, crlChecks); |
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 forced API change suggests that the decision to enforce CRL checks might belong in the vault, not the TLS binding, what do you think?
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.
We need negative test coverage to verify that revoked client certificate cannot be used to successfully complete a TLS handshake.
...ing-echo/src/test/java/io/aklivity/zilla/runtime/binding/echo/internal/bench/EchoWorker.java
Outdated
Show resolved
Hide resolved
...binding-tls/src/main/java/io/aklivity/zilla/runtime/binding/tls/config/TlsOptionsConfig.java
Outdated
Show resolved
Hide resolved
...ls/src/main/java/io/aklivity/zilla/runtime/binding/tls/internal/config/TlsBindingConfig.java
Outdated
Show resolved
Hide resolved
...inding-tls/src/test/java/io/aklivity/zilla/runtime/binding/tls/internal/bench/TlsWorker.java
Outdated
Show resolved
Hide resolved
@@ -143,6 +144,7 @@ public class EngineConfiguration extends Configuration | |||
ENGINE_CACERTS_STORE_PASS = config.property("cacerts.store.pass"); | |||
ENGINE_ERROR_REPORTER = config.property(ErrorReporter.class, "error.reporter", | |||
EngineConfiguration::decodeErrorReporter, EngineConfiguration::defaultErrorReporter); | |||
ENGINE_REVOCATION = config.property("revocation"); |
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.
We need a name with more context for clarity.
ENGINE_REVOCATION = config.property("revocation"); | |
ENGINE_CERTIFICATE_REVOCATION_STRATEGY = config.property("certificate.revocation.strategy"); |
Suggest making this more strongly typed with an enum
, say RevocationStrategy
in io.aklivity.zilla.runtime.engine.security
package.
public enum RevocationStrategy
{
CRL,
NONE
}
...and default to NONE
.
We can also consider using this type (from lowercase string) in various vault options instead of string, encouraging consistency across different vault implementations.
...rc/main/java/io/aklivity/zilla/runtime/vault/filesystem/internal/FileSystemVaultHandler.java
Outdated
Show resolved
Hide resolved
...rc/main/java/io/aklivity/zilla/runtime/vault/filesystem/internal/FileSystemVaultHandler.java
Outdated
Show resolved
Hide resolved
...rc/main/java/io/aklivity/zilla/runtime/vault/filesystem/internal/FileSystemVaultHandler.java
Outdated
Show resolved
Hide resolved
...rc/main/java/io/aklivity/zilla/runtime/vault/filesystem/internal/FileSystemVaultHandler.java
Show resolved
Hide resolved
...m/src/test/java/io/aklivity/zilla/runtime/vault/filesystem/internal/FileSystemVaultTest.java
Outdated
Show resolved
Hide resolved
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.
Looks good, just need the negative IT to verify that a revoked certificate cannot be used to successfully complete TLS handshake.
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.
Let's merge this now, given that you have already verified end-to-end.
No description provided.