Skip to content

Commit

Permalink
refactor(cloud-native): remove ldap occurences in cloud-native (#9920)
Browse files Browse the repository at this point in the history
* refactor(cloud-native): remove ldap occurences in cloud-native

Signed-off-by: iromli <[email protected]>

* docs(cloud-native): remove ldap occurences in cloud-native

Signed-off-by: iromli <[email protected]>

---------

Signed-off-by: iromli <[email protected]>
Co-authored-by: Mohammad Abudayyeh <[email protected]>
  • Loading branch information
iromli and moabu authored Oct 30, 2024
1 parent 873cf86 commit 5d2a1e9
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 199 deletions.
2 changes: 1 addition & 1 deletion charts/janssen/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@
}
},
"storageClass": {
"description": "StorageClass section for OpenDJ charts. This is not currently used by the openbanking distribution. You may specify custom parameters as needed.",
"description": "StorageClass section. This is not currently used by the openbanking distribution. You may specify custom parameters as needed.",
"type": "object",
"properties": {
"allowVolumeExpansion": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# pinned to py3-grpcio version to avoid failure on native extension build
joblib
ldap3
pygtail
psycopg2-binary
PyMySQL
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ if [[ "$LOAD_USERS_TO_COUCHBASE" = "true" ]]; then
/usr/bin/python3 /scripts/add_users_couchbase.py
exit 0
# ================================================================================================ #
# Check if this is a user loading job to the backend ldap #
# ================================================================================================ #
elif [[ "$LOAD_USERS_TO_LDAP" = "true" ]]; then
/usr/bin/python3 /scripts/add_users_ldap.py
exit 0
# ================================================================================================ #
# Check if this is a user loading job to the backend spanner #
# ================================================================================================ #
elif [[ "$LOAD_USERS_TO_SPANNER" = "true" ]]; then
Expand Down Expand Up @@ -92,4 +86,4 @@ then
# Add -o modules.console.disable=true to disable TUI
bzt /scripts/client_credentials.jmx
exit 0
fi
fi

This file was deleted.

3 changes: 1 addition & 2 deletions docker-jans-monolith/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ RUN echo 'APT::Install-Suggests "0";' >> /etc/apt/apt.conf.d/00-docker \
&& echo 'APT::Install-Recommends "0";' >> /etc/apt/apt.conf.d/00-docker

# Prevent prompt errors during package installation
# @TODO: remove python-ldap3 after ldap support removed
RUN DEBIAN_FRONTEND=noninteractive \
apt-get update \
&& apt-get install -y python3 tini curl ca-certificates dbus systemd iproute2 gpg python3-pip python3-dev libpq-dev gcc python3-psycopg2 python3-ldap3 git maven \
&& apt-get install -y python3 tini curl ca-certificates dbus systemd iproute2 gpg python3-pip python3-dev libpq-dev gcc python3-psycopg2 git maven \
# install certbot
&& apt-get -y install libaugeas0 \
&& pip install ruamel.yaml certbot certbot-apache \
Expand Down
2 changes: 0 additions & 2 deletions docker-jans-monolith/scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ install_jans() {
echo "state=${CN_STATE}" | tee -a setup.properties > /dev/null
echo "countryCode=${CN_COUNTRY}" | tee -a setup.properties > /dev/null
# shellcheck disable=SC2016
echo "ldapPass=${CN_ADMIN_PASS}" | tee -a setup.properties > /dev/null # @TODO: remove ldapPass after ldap support removed
echo "installLdap=False" | tee -a setup.properties > /dev/null # @TODO: remove installLdap after ldap support removed
echo "install_config_api=""$([[ ${CN_INSTALL_CONFIG_API} == true ]] && echo True || echo False)" | tee -a setup.properties > /dev/null
echo "install_scim_server=""$([[ ${CN_INSTALL_SCIM} == true ]] && echo True || echo False)" | tee -a setup.properties > /dev/null
echo "installFido2=""$([[ ${CN_INSTALL_FIDO2} == true ]] && echo True || echo False)" | tee -a setup.properties > /dev/null
Expand Down
28 changes: 11 additions & 17 deletions docs/janssen-server/kubernetes-ops/logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ CN_AUTH_APP_LOGGERS:
"auth_log_target":"STDOUT",
"http_log_level":"INFO",
"http_log_target":"FILE",
"ldap_stats_log_level":"INFO",
"ldap_stats_log_target":"FILE",
"persistence_duration_log_level":"INFO",
"persistence_duration_log_target":"FILE",
"persistence_log_level":"INFO",
Expand All @@ -79,7 +77,6 @@ global:
httpLogLevel: "TRACE"
persistenceLogLevel: "TRACE"
persistenceDurationLogLevel: "TRACE"
ldapStatsLogLevel: "TRACE"
scriptLogLevel: "TRACE"
auditStatsLogLevel: "TRACE"
............
Expand Down Expand Up @@ -108,17 +105,16 @@ kubectl get configmap -n <namspace> <helm-release-name>-config-cm -o yaml | grep
Example output:
```yaml
CN_CONFIG_API_APP_LOGGERS:
'{"
config_api_log_level":"INFO",
'{
"config_api_log_level":"INFO",
"config_api_log_target":"STDOUT",
"ldap_stats_log_level":"INFO",
"ldap_stats_log_target":"FILE",
"persistence_duration_log_level":"INFO",
"persistence_duration_log_target":"FILE",
"persistence_log_level":"INFO",
"persistence_log_target":"FILE",
"script_log_level":"INFO",
"script_log_target":"FILE"}'
"script_log_target":"FILE"
}'
```

To override the current logging level in config-api, you can either add the desired changes to a yaml file and apply it using `helm`, or
Expand All @@ -137,7 +133,6 @@ global:
configApiLogLevel: "TRACE"
persistenceLogLevel: "TRACE"
persistenceDurationLogLevel: "TRACE"
ldapStatsLogLevel: "TRACE"
scriptLogLevel: "TRACE"
............
............
Expand Down Expand Up @@ -165,11 +160,12 @@ kubectl get configmap -n <namespace> <helm-release-name>-config-cm -o yaml | gre
Example output:
```yaml
CN_FIDO2_APP_LOGGERS:
'{"
fido2_log_level":"INFO",
'{
"fido2_log_level":"INFO",
"fido2_log_target":"STDOUT",
"persistence_log_level":"INFO",
"persistence_log_target":"FILE"}'
"persistence_log_target":"FILE"
}'
```


Expand Down Expand Up @@ -214,17 +210,16 @@ kubectl get configmap -n <namespace> <helm-release-name>-config-cm -o yaml | gre
Example output:
```yaml
CN_SCIM_APP_LOGGERS:
'{"
ldap_stats_log_level":"INFO",
"ldap_stats_log_target":"FILE",
'{
"persistence_duration_log_level":"INFO",
"persistence_duration_log_target":"FILE",
"persistence_log_level":"INFO",
"persistence_log_target":"FILE",
"scim_log_level":"INFO",
"scim_log_target":"STDOUT",
"script_log_level":"INFO",
"script_log_target":"FILE"}'
"script_log_target":"FILE"
}'
```

To override the current logging level in scim, you can either add the desired changes to a yaml file and apply it using `helm`, or
Expand All @@ -243,7 +238,6 @@ global:
scimLogLevel: "TRACE"
persistenceLogLevel: "TRACE"
persistenceDurationLogLevel: "TRACE"
ldapStatsLogLevel: "TRACE"
scriptLogLevel: "TRACE"
............
............
Expand Down
13 changes: 6 additions & 7 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ nav:
- Using Rancher Marketplace: janssen-server/install/helm-install/rancher.md
- Docker Deployments:
- Quick Start: janssen-server/install/docker-install/quick-start.md
- Docker compose: janssen-server/install/docker-install/compose.md
- Docker compose: janssen-server/install/docker-install/compose.md
- Setup Instructions: janssen-server/install/setup.md
- FAQ: janssen-server/install/install-faq.md
- Kubernetes Operation Guide:
Expand Down Expand Up @@ -110,7 +110,7 @@ nav:
- Managing Key Rotation: janssen-server/vm-ops/managing-key-rotation.md
- Certificates: janssen-server/vm-ops/certificates.md
- Terraform and IaC:
- janssen-server/terraform/README.md
- janssen-server/terraform/README.md
- Configuration Guide:
- Configuration Tools:
- TUI - Text-Based UI:
Expand All @@ -128,7 +128,7 @@ nav:
- Monitoring: janssen-server/config-guide/config-tools/config-api/monitoring.md
- Plugins: janssen-server/config-guide/config-tools/config-api/plugins.md
- CURL: janssen-server/config-guide/config-tools/curl-guide.md
- Auth Server Configuration:
- Auth Server Configuration:
- OpenID Connect Client Configuration: janssen-server/config-guide/auth-server-config/openid-connect-client-configuration.md
- OAuth Scope Management: janssen-server/config-guide/auth-server-config/oauth-scopes-config.md
- JSON Web Key: janssen-server/config-guide/auth-server-config/json-web-key-config.md
Expand All @@ -145,7 +145,7 @@ nav:
- FIDO2 Configuration: janssen-server/config-guide/fido2-config/janssen-fido2-configuration.md
- SCIM Configuration:
- SCIM User Resources: janssen-server/config-guide/scim-config/user-config.md
- SCIM Group Management: janssen-server/config-guide/scim-config/scim-group-config.md
- SCIM Group Management: janssen-server/config-guide/scim-config/scim-group-config.md
- Custom Scripts: janssen-server/config-guide/custom-scripts-config.md
- SMTP Configuration: janssen-server/config-guide/smtp-configuration.md
- Link Configuration: janssen-server/config-guide/link-configuration.md
Expand Down Expand Up @@ -288,7 +288,7 @@ nav:
- Agama Best Practices: janssen-server/developer/agama/agama-best-practices.md
- Advanced usages: janssen-server/developer/agama/advanced-usages.md
- Engine and bridge configurations: janssen-server/developer/agama/engine-bridge-config.md
- FAQ: janssen-server/developer/agama/faq.md
- FAQ: janssen-server/developer/agama/faq.md
- Quick Start Using Agama Lab: janssen-server/developer/agama/quick-start-using-agama-lab.md
- External Libraries: janssen-server/developer/external-libraries.md
- CORS: janssen-server/developer/cors.md
Expand Down Expand Up @@ -366,7 +366,6 @@ nav:
- Monolith: janssen-server/reference/kubernetes/docker-jans-monolith.md
- Persistence: janssen-server/reference/kubernetes/docker-jans-persistence-loader.md
- SCIM: janssen-server/reference/kubernetes/docker-jans-scim.md
- Gluu OpenDJ: janssen-server/reference/kubernetes/docker-opendj.md
- Learning Reference: janssen-server/reference/learning-reference.md
- FIDO Admin Guide:
- janssen-server/fido/README.md
Expand Down Expand Up @@ -418,7 +417,7 @@ nav:
- JWT: 'cedarling/cedarling-jwt.md'
- Logs: 'cedarling/cedarling-logs.md'
- Properties: 'cedarling/cedarling-properties.md'
- Python:
- Python:
- cedarling/python/README.md
- How to use: cedarling/python/usage.md
- WASM: 'cedarling/cedarling-wasm.md'
Expand Down

0 comments on commit 5d2a1e9

Please sign in to comment.