-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Support management port for health and metrics #27629
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
Conversation
dc7995d to
5ecf2ad
Compare
|
@keycloak/cloud-native @ahus1 JFYI - the majority of the work is done. But it needs to be polished. It'd be great to review at least the semantics around this. Thanks! |
.../main/java/org/keycloak/quarkus/runtime/configuration/mappers/ManagementPropertyMappers.java
Outdated
Show resolved
Hide resolved
5ecf2ad to
9c8c7a9
Compare
|
@mabartos - I'm happy to see this feature evolve. It's been a while since I've added it to my wish-list. I think enabling TLS for the management port is useful, so exposing for adding this. This includes also the client authentication. The option I think is least useful is Something that surprised me was that the management port answers with a Thinking about it a bit more, it should answer to |
@ahus1 Thank you for the review! I agree. I don't have a relevant use case in mind that would benefit from changing the context root / relative path for metrics and health. |
operator/src/main/java/org/keycloak/operator/crds/v2alpha1/deployment/spec/ManagementSpec.java
Outdated
Show resolved
Hide resolved
operator/src/main/java/org/keycloak/operator/crds/v2alpha1/deployment/spec/ManagementSpec.java
Outdated
Show resolved
Hide resolved
5c5f52e to
c795859
Compare
e5e2ecc to
6e1f007
Compare
6e1f007 to
d413251
Compare
d413251 to
4892613
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.
Unreported flaky test detected, please review
Unreported flaky test detectedIf the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR. org.keycloak.testsuite.admin.concurrency.ConcurrencyTest#testAllConcurrently |
6715fb7 to
94c4cfe
Compare
@vmuzikar I'd like to follow the Quarkus approach, having it as a separate concept and not mixing it together. I see more UX benefits with that. As we'd use more fine-grained categories, the docs and help would be more readable. Additionally, the Keycloak options could be simpler in terms of the name length. Even for the consistency reasons, we'd need to have options like @vmuzikar Is it ok to have it separated? |
|
@mabartos Thank you for the summary. @ahus1 Do you have any objections against 1-5?
+1 for a separated category. That totally makes sense to me from the readability perspective. What I meant was just the prefix of the option names. To me |
@vmuzikar Oh, I see. Ok, makes sense. We can mirror the convention set for Keycloak HTTP options - |
Exactly. :) |
0d7a680 to
ddc57b8
Compare
a3e9019 to
553d7c2
Compare
ahus1
left a comment
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.
Thank you for this change, happy to see this in a good state to be merged.
quarkus/config-api/src/main/java/org/keycloak/config/ManagementOptions.java
Outdated
Show resolved
Hide resolved
operator/src/main/java/org/keycloak/operator/crds/v2alpha1/deployment/spec/ManagementSpec.java
Outdated
Show resolved
Hide resolved
operator/src/main/java/org/keycloak/operator/crds/v2alpha1/deployment/KeycloakSpec.java
Outdated
Show resolved
Hide resolved
Closes keycloak#19334 Signed-off-by: Martin Bartoš <[email protected]>
Signed-off-by: Martin Bartoš <[email protected]>
Signed-off-by: Martin Bartoš <[email protected]>
553d7c2 to
2acbbc9
Compare
|
@vmuzikar Thanks for the review. Comments should be addressed now. |
Signed-off-by: Martin Bartoš <[email protected]>
vmuzikar
left a comment
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.
@mabartos Thank you for the changes! I reviewed the rest of the code and added some comments, none of them is really blocking from my perspective.
LGTM.
quarkus/deployment/src/main/java/org/keycloak/quarkus/deployment/KeycloakProcessor.java
Show resolved
Hide resolved
...in/java/org/keycloak/testsuite/arquillian/containers/AbstractQuarkusDeployableContainer.java
Show resolved
Hide resolved
quarkus/tests/integration/src/test/java/org/keycloak/it/cli/dist/ManagementHttpsDistTest.java
Show resolved
Hide resolved
keycloak/keycloak#27629 Signed-off-by: Alexander Schwartz <[email protected]>
Closes #19334
Summary
(https://github.com/keycloak/keycloak/pull/27629/files#r1538915621))
portKeycloak Management Interfaceis shown