-
Notifications
You must be signed in to change notification settings - Fork 75
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
feat: add newly redesigned jans-client-api #1540
Conversation
Overview: - jans-client-api is now running behind jetty server - add new env var CN_CLIENT_API_CN_CERT to gradually replace CN_CLIENT_API_APPLICATION_CERT_CN - CN_CLIENT_API_APPLICATION_CERT_CN and CN_CLIENT_API_ADMIN_CERT_CN are deprecated
[jans-linux-setup] Kudos, SonarCloud Quality Gate passed! |
@moabu PR is ready for review. |
[jans-cli] Kudos, SonarCloud Quality Gate passed! |
[jans-client-api] Kudos, SonarCloud Quality Gate passed! |
- variable: config.configmap.cnClientApiApplicationCertCn | ||
default: "client-api" | ||
description: "Client API application keystore name" | ||
description: "Client API application keystore name (deprecated in favor of config.configmap.cnClientApiCertCn)" | ||
type: string | ||
label: Client API application keystore name | ||
- variable: config.configmap.cnClientApiAdminCertCn | ||
default: "client-api" | ||
description: "Client API admin keystore name" | ||
description: "Client API admin keystore name (deprecated)" | ||
type: string | ||
label: Client API admin keystore name |
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 section can be removed. A deprecated note is not needed since this service was never in a working state.
# deprecated in favor of CN_CLIENT_API_CERT_CN | ||
CN_CLIENT_API_APPLICATION_CERT_CN: {{ .Values.configmap.cnClientApiApplicationCertCn | quote }} | ||
# deprecated | ||
CN_CLIENT_API_ADMIN_CERT_CN: {{ .Values.configmap.cnClientApiAdminCertCn | quote }} |
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 section can be removed. A deprecated note is not needed since this service was never in a working state.
charts/janssen/values.schema.json
Outdated
"cnClientApiAdminCertCn": { | ||
"description": "Client-api OAuth client admin certificate common name. This should be left to the default value client-api", | ||
"description": "Client-api OAuth client admin certificate common name. This should be left to the default value client-api (deprecated)", | ||
"type": "string", | ||
"pattern": "^[a-z-]+$" | ||
}, | ||
"cnClientApiApplicationCertCn": { | ||
"description": "Client-api OAuth client application certificate common name. This should be left to the default value client-api", | ||
"description": "Client-api OAuth client application certificate common name. This should be left to the default value client-api (deprecated in favor of cnClientApiCertCn)", | ||
"type": "string", | ||
"pattern": "^[a-z-]+$" | ||
}, |
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.
Remove
docker-jans-client-api/README.md
Outdated
- `CN_CLIENT_API_APPLICATION_CERT_CN`: CommonName used in application certificate subject. This environment variable is **DEPRECATED** in favor of `CN_CLIENT_API_CERT_CN`. | ||
- `CN_CLIENT_API_ADMIN_CERT_CN`: CommonName used in admin certificate subject. This environment variable is **DEPRECATED** and no longer used. |
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.
Remove
"client_api_log_level": "INFO", | ||
"persistence_log_target": "FILE", | ||
"persistence_log_level": "INFO", | ||
"persistence_duration_log_target": "FILE", | ||
"persistence_duration_log_level": "INFO", | ||
"ldap_stats_log_target": "FILE", | ||
"ldap_stats_log_level": "INFO", | ||
"script_log_target": "FILE", | ||
"script_log_level": "INFO" |
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.
add loggers spec to chart
Description
The changeset adds/updates several areas listed below:
jans-client-api
is updatedjans-client-api
CN_CLIENT_API_CERT_CN
to gradually replace deprecatedCN_CLIENT_API_APPLICATION_CERT_CN
andCN_CLIENT_API_ADMIN_CERT_CN
Note: the env var
CN_CLIENT_API_APPLICATION_CERT_CN
is used as backward-compat. An ideal upgrade involves removing the env var and useCN_CLIENT_API_CERT_CN
instead.