Skip to content

chore(deps): update osixia/openldap to 2.6.15 - #995

Merged
CybotTM merged 1 commit into
mainfrom
chore/openldap-2
Nov 26, 2026
Merged

CybotTM merged 1 commit into
mainfrom
chore/openldap-2

Conversation

@CybotTM

@CybotTM CybotTM commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

When merged, the ldap-dev compose service runs osixia/openldap 2.6.15 with the 2.x bootstrap variables, and starts with the seeded dev users; with only the tag changed, as in #983, the container exits with 127. Developers get a freshly seeded LDAP on new volumes ldap-dev-v2-data and ldap-dev-v2-config; the old ldap-dev-data and ldap-dev-config volumes are no longer used and can be removed.

Supersedes #983 (same tag and digest).

Why #983 fails

osixia/openldap 2 is a rewrite of the 1.x image (upstream README: "v2 is a breaking release", no automatic migration of v1 deployments). #983 changed only the tag, so the service kept the 1.x entrypoint override, which calls /container/tool/run. That file does not exist in 2.x; the container exits with 127 and every job that starts ldap-dev through depends_on stops with dependency failed to start: container timetracker-ldap-dev-1 exited (127) (8 of 8 failing jobs in run 45611515992).

The 2.x line is maintained: 2.6.15 is a non-prerelease published on 2026-11-23, Docker Hub lists the tags 2.6.15, 2.6, 2 and latest (amd64, arm64) from the same day, and the repository is not archived. Renovate also holds #983 with renovate/stability-days; this PR ships the release three days after publication, ahead of that wait.

What changes in compose.yml
  • Variables: OPENLDAP_BOOTSTRAP_SUFFIX, OPENLDAP_BOOTSTRAP_DATA_ROOT_PASSWORD_HASHED and OPENLDAP_BOOTSTRAP_DATA_READONLY* replace the 1.x LDAP_* variables. The host-side overrides LDAP_ADMIN_PASSWORD and LDAP_READONLY_USER_USERNAME/LDAP_READONLY_USER_PASSWORD keep working.
  • The *_PASSWORD_HASHED values are the plain dev passwords. slapd stores and compares a value without {SCHEME} prefix as cleartext, as the 1.x seed LDIF already did for the users.
  • OPENLDAP_URLS=ldap://:389 ldapi:/// keeps port 389 (2.x listens on 3890 by default), so .env, the docs and LdapClientServiceIntegrationTest stay unchanged. Host port 3389 is unchanged.
  • docker/ldap/users-only.ldif is mounted read-only into the image's data/custom bootstrap directory; the entrypoint override is gone.
  • The healthcheck reads the new variables and still asserts the seeded uid=unittest.
  • New volume names: 2.x skips its bootstrap when the config or data directory holds anything, and a 1.x config does not load (with the old volumes mounted at the new paths, slaptest fails with lt_dlopenext failed: (back_mdb) file not found and the container exits with 1).
Testing

Locally with the e2e image of main and the CI commands:

  • docker compose up -d --wait ldap-dev after a 1.x ldap-dev had run under the same project name: healthy.
  • bin/phpunit --testsuite integration,controller,api-functional,mcp: Tests: 941, Assertions: 5795, OK (deprecations only, pre-existing).
  • tests/Service/Ldap/LdapClientServiceIntegrationTest.php: 15 tests OK. With LDAP_ADMIN_PASSWORD=mutated on fresh volumes it fails with 9 errors (Invalid credentials).
  • Healthcheck: without the LDIF mount the container turns unhealthy.
  • npx playwright test e2e/login.spec.ts: 7 passed. The full e2e suite was not run locally; CI runs it.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 50 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8628715c-61c0-407d-b680-175aa9d2a761
Commits

Reviewing files that changed from the base of the PR and between e02643a and 9a95a0a.

Files selected for processing: 1

  • compose.yml

No actionable comments were generated in the recent review.

Walkthrough

The ldap-dev service now uses pinned osixia/openldap:2.6.15 with v2 bootstrap settings, data and config volumes, and a mounted users LDIF. Its healthcheck uses the v2 read-only credentials and continues to search for uid=unittest. The named LDAP volumes now match the v2 layout.

Possibly related issues

  • netresearch/timetracker#103 tracks the OpenLDAP image update that this change implements, though the issue covers a broader set of dependency updates.

Change: Bug fix

Merge Risk: Minimal · previous review e0264

The change moves the development LDAP container to the 2.x image with matching configuration and fresh volumes, so the dev and CI environments should start again. The CI failure is a pre-existing dependency advisory in composer.lock that this PR does not touch. No merge-blocking risk is attributable to this change.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the dependency update to osixia/openldap 2.6.15, which is the main change in the compose.yml diff. It is a conventional-commit style title. It does not mention the v2 bootstrap variabl…
Description check Passed The description states that the ldap-dev service now runs osixia/openldap 2.6.15 with the 2.x bootstrap variables. It explains why the change is needed, lists the compose.yml changes, the new volumes,…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the dependency update to osixia/openldap 2.6.15, which is the main change in the compose.yml diff. It is a conventional-commit style title. It does not mention the v2 bootstrap variable migration, the new volumes, or the removed entrypoint override, but it does not need to cover every detail. The title is accurate and specific enough for a teammate scanning history.

Full details: Description check

Explanation

The description states that the ldap-dev service now runs osixia/openldap 2.6.15 with the 2.x bootstrap variables. It explains why the change is needed, lists the compose.yml changes, the new volumes, and the testing performed. It directly relates to the changeset.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Simplify code

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a7644bc8-5732-49c7-b448-16d1ebce379c
Commits

Reviewing files that changed from the base of the PR and between 618022a and e02643a.

Files selected for processing: 1

  • compose.yml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Comment thread compose.yml Fixed
Comment thread compose.yml Fixed
@CybotTM

CybotTM commented Nov 26, 2026

Copy link
Copy Markdown
Member Author

CI on e02643a: every compose-based job passes, including the four e2e shards, the integration and unit tests and the schema drift check. Lint & Static Analysis fails in its composer audit step on Symfony advisories reported on 2026-11-25 (for example CVE-2026-133753, affected below 8.1.12). This PR does not touch composer.lock; the CI run on main at 618022a (03:13 UTC) passed the same step. The two SonarCloud S7537 findings were accepted as dev fixture passwords; the SonarCloud checks are green.

@CybotTM
CybotTM marked this pull request as ready for review November 26, 2026 08:58
Copilot AI balanced review requested due to automatic review settings November 26, 2026 08:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

osixia/openldap 2 is a rewrite of the 1.x image with new variables,
paths and entrypoint. The Renovate PR #983 only changed the tag, so
ldap-dev exited with 127 (/container/tool/run no longer exists) and
every compose-based CI job failed on the dependency.

Configure ldap-dev with the 2.x bootstrap variables and keep the
contract the app, docs and tests use: port 389 (OPENLDAP_URLS), suffix
dc=dev,dc=local, root DN cn=admin with LDAP_ADMIN_PASSWORD, read-only
DN cn=readuser with LDAP_READONLY_USER_*. The seed LDIF is mounted
into the image's data/custom directory instead of being copied by an
entrypoint override, and the healthcheck reads the new variables.

2.x skips bootstrap when its directories hold data and cannot load a
1.x config (slaptest fails on back_mdb), so the service uses new
volumes ldap-dev-v2-data and ldap-dev-v2-config.

Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
@sonarqubecloud

Copy link
Copy Markdown

@CybotTM

CybotTM commented Nov 26, 2026

Copy link
Copy Markdown
Member Author

Self-review: 9a95a0a

This pull request requires a review and no bot review is in flight; a review by the author satisfies that requirement. The diff on this head was reviewed by the PR author; this comment is the on-the-record attestation the merge gate reads back. It stops matching on the next push.

@CybotTM
CybotTM added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit 355475c Nov 26, 2026
27 checks passed
@CybotTM
CybotTM deleted the chore/openldap-2 branch November 26, 2026 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants