Repository navigation
Conversation
…e from a mounted Secret
…ng Secret rotation
8e6bf76 to
d77bac8
Compare
|
@maximthomas I rebased this PR onto the current head of #1308, which includes the administration TLS Secret rotation fixes. In d77bac8, Package/Deploy now uploads the Helm chart as a downloadable I ran |
maximthomas
left a comment
There was a problem hiding this comment.
praise: The chart separates peer DNS from the LDAP client Service and exercises scale-in and scale-out with retained claims in CI.
issue (blocking): Keep returning replicas out of client traffic until they catch up.
opendj-doc-generated-ref/src/main/asciidoc/admin-guide/chap-replication.adoc:171
A returning ordinal with a retained PVC can pass the root-DSE probe before its background join finishes. The shared LDAP Service then routes reads and writes to it while the data can still be stale. If the Directory Manager password changed while the ordinal was offline, its local credential is still the old one and the join can give up while readiness stays green. Document how to drain shared-Service traffic or route it to a verified survivor before regrow, then bring the ordinal back into service after checking its credentials and replication directly. Startup marker, Client selector, Join retry
issue (non-blocking): Give the snapshot chart archive a usable image reference.
.github/workflows/deploy.yml:284
The uploaded archive renders both the StatefulSet and Helm test with openidentityplatform/opendj:5.2.1-SNAPSHOT. Docker Hub returned no manifest for that tag, and Build keeps its test image in the workflow instead of publishing that tag. A standard install of the downloaded chart therefore hits ImagePullBackOff. Document how to supply a matching snapshot image via image.repository and image.tag, or publish the matching image with the archive. Build image repository, Chart image reference
issue (non-blocking): Use the GHCR image in the GHCR install example.
opendj-doc-generated-ref/src/main/asciidoc/install-guide/chap-install.adoc:1290
The OCI URL sets the chart source. Both the StatefulSet and test hook still pull the image from Docker Hub, so a fresh cluster with access only to GHCR cannot start either pod. Add --set image.repository=ghcr.io/openidentityplatform/opendj/opendj to the GHCR example and keep the release tag from the chart. Default image repository, Published image repositories
issue (non-blocking): Remove abandoned administrative keystore staging directories on startup.
opendj-packages/opendj-docker/run.sh:182
Stopping the pod during validation can leave the staged private keystore and PIN on the PVC. Startup only resumes the fixed .admin-secret-pending directory, so the abandoned pair survives later rotations. A local interruption test with synthetic files confirmed that the next installation succeeds and the old staging files remain. Clean uncommitted staging during startup before starting the watcher, and preserve the pending directory for recovery. Pending pair recovery, Existing-volume startup
issue (non-blocking): Explain what happens to the active certificate when disabling a TLS Secret projection.
opendj-doc-generated-ref/src/main/asciidoc/admin-guide/chap-change-certs.adoc:691
OpenDJ uses copies of the keystore and PIN stored on its PVC. Turning off a projection leaves those copies in place, so an existing replica can continue serving the previous certificate after rollout. Document how to install and verify a replacement key pair before removing its Secret source. Volume mounts, Secret installation
suggestion (non-blocking): Wait for TLS Secret projection before checking that refresh is disabled.
.github/scripts/helm-test-opendj.sh:388
The script checks the old serials immediately after updating the Secrets, then replaces the pod. Those checks can pass with polling active because either kubelet has yet to project the new files or the watcher has yet to run. A chart regression that drops the value only with both connectors configured would also pass the admin-only template test and the direct Docker watcher test.
Pin: Verify that both replacement keystore/PIN pairs are visible on the same running pod, then assert that polling is disabled and both old serials are still served before replacing the pod.
…g Docker Secret updates
d77bac8 to
48873a5
Compare
|
@maximthomas Addressed the review in
The TLS scenario passed on kind 1.36.4. The updated test rejected a trial chart that ignored |
maximthomas
left a comment
There was a problem hiding this comment.
praise: The resize guide gives operators a way to route clients to one verified survivor while checking the returning replica.
issue (non-blocking): Verify the replication administrator password on the returning replica before restarting it.
opendj-doc-generated-ref/src/main/asciidoc/admin-guide/chap-replication.adoc:188
The returning PVC can hold an older password for cn=admin,cn=Administrators,cn=admin data as well as an older Directory Manager password. Repairing only Directory Manager allows bootstrap to reach dsreplication disable, where the global administrator bind can still fail and leave stale replication configuration in place. Say to check the global administrator password directly on the returning pod and reset it there as Directory Manager if it missed the rotation. Keep the existing traffic gate in effect until the replication checks pass. Join reset, CLI bind, Password reset procedure
suggestion (non-blocking): Explain how to provision trusted certificates on fresh PVCs after removing a projection.
opendj-doc-generated-ref/src/main/asciidoc/admin-guide/chap-change-certs.adoc:695
After the projection is disabled, a later scale-out or PVC replacement has no persisted copy of the replacement pair. The new pod bootstraps with setup-generated certificates, which clients that require the configured CA or DNS names can reject. Say to keep or re-enable the projection before provisioning fresh claims when those replicas must serve the same trusted certificate. Fresh-volume bootstrap, Secret copy on startup
suggestion (non-blocking): Validate and preserve the LDAPS keystore and PIN as a pair in a Docker follow-up.
opendj-packages/opendj-docker/run.sh:119
When separate Secret sources disagree during password rotation, the existing Docker copy loop can persist a new PIN beside the old keystore. The initial TLS key load can then fail on restart. An isolated Temurin 25 check using the current copy function reproduced the unreadable persisted keystore. A separate Docker issue can validate the candidate pair before replacing the working one. Split Secret configuration, Initial key load
suggestion (non-blocking): Coordinate live administration nickname changes with Secret installation in a #1308 follow-up.
opendj-packages/opendj-docker/run.sh:235
The watcher reads the administration configuration before it installs the staged Secret. If an operator switches from admin-cert to an alias in the existing store during that interval, the watcher can still install a store containing only admin-cert. New administration TLS connections can then fail because the active nickname is absent. Track synchronization with live configuration changes in #1308 or document how to disable refresh during a nickname change. Live connector update, Keystore reload, Alias selection
48873a5 to
6134066
Compare
|
@maximthomas Addressed the documentation points in
The documentation cross-reference check passed for 635 links across 76 pages. The two Docker changes are follow-up work. LDAPS needs to validate the keystore and PIN together before replacing the working pair. The #1308 update checks the administration configuration immediately before installing an intact staged pair. A live alias change can still race with the file replacement after that check. |
maximthomas
left a comment
There was a problem hiding this comment.
praise: The TLS guide now explains when fresh PVCs need a Secret projection to receive a trusted certificate.
issue (blocking): Use a #1308 revision that preserves a working administration TLS pair.
opendj-doc-generated-ref/src/main/asciidoc/admin-guide/chap-change-certs.adoc:667
The chart passes the projected administration pair to the Docker entrypoint. The validator in the pinned #1308 dependency checks that admin-cert is a private-key entry and that the keystore loads, so it can replace a working pair with one whose selected key cannot authenticate TLS. The #1308 review verified handshake failures on TLS 1.2 and 1.3. Affected pods can remain Ready because the chart probes LDAPS on 1636, leaving the failure on 4444 invisible to readiness. Rebase onto a fixed #1308 revision before merging the chart. Chart projection · Validator · LDAPS probe · Dependency review
suggestion (non-blocking): Track pairwise LDAPS Secret installation in a separate Docker issue.
opendj-packages/opendj-docker/run.sh:116
The existing LDAPS copy loop updates the keystore and PIN separately. If separate Secret sources temporarily disagree during a password rotation, it can persist a pair that fails to load on the next start. Validate the candidate pair together and preserve the installed pair until the replacement is usable. Initial key manager load · Previous review · Author response
suggestion (non-blocking): Coordinate live administration nickname changes with Secret installation in a Docker follow-up.
opendj-packages/opendj-docker/run.sh:154
The rebase moves the configuration check closer to the file replacement. The live configuration can still change after that check, so a replacement store containing only the previous nickname can make the administration connector fail new TLS handshakes. Track coordination with live nickname changes in #1308 or document how to pause Secret refresh during the change. Live configuration update · Alias selection · Author response
issue (non-blocking): Run the retained-PVC credential checks before waiting for rollout completion.
opendj-doc-generated-ref/src/main/asciidoc/admin-guide/chap-replication.adoc:190
The grow commands wait for readiness before the guide reaches the password checks. If the returning pod accepts the current Directory Manager password but its replication administrator password is stale, the background join can remove the readiness marker before its replication administrator bind fails. LDAP remains available directly while the rollout waits. Keep client traffic isolated and have operators check both binds directly on the running pod via kubectl exec. Repair any stale password and restart the pod before waiting for rollout and verifying replication. Rollout waits · Readiness marker and admin bind · Readiness check
suggestion (non-blocking): Cover PIN-only recovery with a queued configuration change in #1308.
.github/scripts/docker-test-admin-certificate.sh:208
The PIN-only fixture runs without queued changes. The queued-change fixture has both files pending, so both tests can pass if a future queue guard also discards the outstanding PIN after the new keystore has moved into place. Add a harmless queued change to the PIN-only fixture. Queued change fixture · Recovery branches · Dependency review
Pin: After restart without the Secret mount, check the recovered certificate serial and a successful CA- and hostname-verified dsconfig call.
…ey before installation
6134066 to
f0c5652
Compare
|
@maximthomas Rebased this PR onto #1308 at
Helm lint and the documentation check passed for 635 links across 76 pages. The two resize manifests confirm that the second grow step changes only the replica count. The #1308 dependency passed all 17 administration TLS scenarios on each Docker image variant. Pairwise LDAPS installation and coordination with live administration nickname changes are separate Docker follow-ups. |
maximthomas
left a comment
There was a problem hiding this comment.
praise: The resize guide now checks both binds on the returning pod before waiting for rollout.
…nst TLS signature schemes
… waiting for rollout
f0c5652 to
0b1cf3d
Compare
|
@maximthomas I rebased #1311 onto #1308 at CodeQL alert #1698 comes from the query's algorithm allowlist, which omits the The #1308 tests confirm that a compatible RSA-PSS pair serves verified TLS 1.2 and 1.3 on port 4444 and that an incompatible pair leaves the previous certificate in service. #1308 verification |
Fixes #1089. Implements the official Helm chart proposal.
Depends on #1308 for the administration certificate Secret. This branch is based on
a8d4c1af6cfrom #1308. Before installing a mounted or intact pending pair, the validator checks signing capability, certificate usage, and key type for the selectedadmin-certentry. The RSA-PSS probe requires a TLS signature scheme with SHA-256, SHA-384, or SHA-512 and matching MGF1 and salt parameters. The Docker tests also cover PIN-only recovery with queued configuration changes.Changes
.tgz) to Package/Deploy runs. Use the version from the branch's Maven POM for the chart and application versions..tgzto Docker Hub and GHCR and attach it to the GitHub release. The release attachment is still uploaded if the OCI publication fails. Read the chart's application version from the release POM.tls.refreshSeconds: 0keeps the existing certificates until restart.Verification
actionlintand packaged both the release and snapshot charts locally. Checked the archive filenames, metadata, and the archive path used by the upload and OCI steps.tls.refreshSeconds: 0with both connectors enabled failed the updated test as expected.a8d4c1af6c,git range-diffconfirmed that all five Helm patches match the previous revision. Helm 3 and 4 lint, all 25 chart tests,actionlint, shell syntax checks, and Java 11 compilation of the validator and fixture generator passed.