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
ISPN-12101 Credential Store #8841
ISPN-12101 Credential Store #8841
Conversation
@oraNod some docs in here that will probably need your expertise |
oops, I think I may have messed up with the SSL docs. I'll fix that. |
f4d0e1e
to
e6cc584
Compare
@tristantarrant is this PR completed? A quick look shows |
The only purpose for that is for the Json configuration serialization |
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.
partial look #1 :)
documentation/src/main/asciidoc/stories/assembly_server_security_credentials.adoc
Outdated
Show resolved
Hide resolved
...er/runtime/src/main/java/org/infinispan/server/configuration/ServerConfigurationBuilder.java
Outdated
Show resolved
Hide resolved
@diegolovison can you look at the tests |
server/runtime/src/main/java/org/infinispan/server/configuration/ServerConfigurationParser.java
Show resolved
Hide resolved
...src/main/java/org/infinispan/server/configuration/security/CredentialStoreConfiguration.java
Outdated
Show resolved
Hide resolved
...src/main/java/org/infinispan/server/configuration/security/CredentialStoreConfiguration.java
Outdated
Show resolved
Hide resolved
...n/java/org/infinispan/server/configuration/security/CredentialStoreConfigurationBuilder.java
Show resolved
Hide resolved
...n/java/org/infinispan/server/configuration/security/CredentialStoreConfigurationBuilder.java
Outdated
Show resolved
Hide resolved
.../java/org/infinispan/server/configuration/security/CredentialStoresConfigurationBuilder.java
Show resolved
Hide resolved
server/runtime/src/test/resources/configuration/ServerConfigurationParserTest.xml
Outdated
Show resolved
Hide resolved
server/runtime/src/test/resources/configuration/ServerConfigurationParserTest.xml
Outdated
Show resolved
Hide resolved
documentation/src/main/asciidoc/topics/cmd_examples/credentials_nix.adoc
Outdated
Show resolved
Hide resolved
documentation/src/main/asciidoc/topics/cmd_examples/credentials_win.adoc
Outdated
Show resolved
Hide resolved
@tristantarrant the CLI creates the keystore in
|
Working on that |
e47086a
to
2c37a37
Compare
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.
offtopic change if possible:
org.infinispan.server.configuration.ServerConfigurationParser#coreLog field can be final
...e/src/main/java/org/infinispan/server/configuration/security/RealmsConfigurationBuilder.java
Outdated
Show resolved
Hide resolved
...untime/src/main/java/org/infinispan/server/configuration/security/SecurityConfiguration.java
Outdated
Show resolved
Hide resolved
...src/main/java/org/infinispan/server/configuration/security/SecurityConfigurationBuilder.java
Outdated
Show resolved
Hide resolved
...runtime/src/test/java/org/infinispan/server/configuration/ServerConfigurationParserTest.java
Show resolved
Hide resolved
documentation/src/main/asciidoc/topics/proc_server_credentials.adoc
Outdated
Show resolved
Hide resolved
768ffe1
to
233e3ee
Compare
233e3ee
to
30c99ab
Compare
@pruivo addressed all comments and repushed |
what about the hidden comments? :) |
083c708
to
e608605
Compare
Damn, now it's done |
return new AttributeSet(CredentialStoreConfiguration.class, NAME, PATH, RELATIVE_TO, TYPE, CREDENTIAL); | ||
} | ||
|
||
private static ElementDefinition<CredentialStoreConfiguration> ELEMENT_DEFINITION = new DefaultElementDefinition(Element.CREDENTIAL_STORE.toString()); |
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 was partially applied :)
* @since 12.0 | ||
**/ | ||
public class CredentialStoresConfiguration implements ConfigurationInfo { | ||
private static final ElementDefinition<CredentialStoresConfiguration> ELEMENT_DEFINITION = new DefaultElementDefinition(Element.CREDENTIAL_STORES.toString()); |
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.
change not applied.
public class CredentialStoresConfiguration implements ConfigurationInfo { | ||
private static final ElementDefinition<CredentialStoresConfiguration> ELEMENT_DEFINITION = new DefaultElementDefinition(Element.CREDENTIAL_STORES.toString()); | ||
|
||
private final List<CredentialStoreConfiguration> credentialStores; |
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.
can be removed :)
...untime/src/main/java/org/infinispan/server/configuration/security/SecurityConfiguration.java
Outdated
Show resolved
Hide resolved
...runtime/src/test/java/org/infinispan/server/configuration/ServerConfigurationParserTest.java
Outdated
Show resolved
Hide resolved
...runtime/src/test/java/org/infinispan/server/configuration/ServerConfigurationParserTest.java
Outdated
Show resolved
Hide resolved
...n/java/org/infinispan/server/configuration/security/CredentialStoreConfigurationBuilder.java
Outdated
Show resolved
Hide resolved
e608605
to
f1872f2
Compare
f1872f2
to
fbe9985
Compare
@pruivo The CLI now behaves as follows: |
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.
final nitpicks. I would have merged it but I've noticed the formatting error in "help" message; so I added the other 2 nits :)
...n/java/org/infinispan/server/configuration/security/CredentialStoreConfigurationBuilder.java
Outdated
Show resolved
Hide resolved
...src/main/java/org/infinispan/server/configuration/security/CredentialStoreConfiguration.java
Outdated
Show resolved
Hide resolved
dd3f573
to
e2d8419
Compare
@pruivo done |
integrated! thanks @tristantarrant ! |
https://issues.redhat.com/browse/ISPN-12101