Skip to content

Refresh OpenIDM 7 documentation and repair bundled examples - #278

Merged
vharseko merged 3 commits into
OpenIdentityPlatform:masterfrom
vharseko:docs-refresh-openidm-7
Nov 26, 2026
Merged

vharseko merged 3 commits into
OpenIdentityPlatform:masterfrom
vharseko:docs-refresh-openidm-7

Conversation

@vharseko

@vharseko vharseko commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Update the OpenIDM 7 installation, upgrade, repository, TLS, REST, and container procedures. Document the launcher's -s option for a writable Felix cache and local keystore procedures for CA-signed certificates.
  • Expand the AsciiDoc Samples Guide against the packaged distribution and sample READMEs. Add walkthroughs for the JMS subscriber, custom health endpoint, scheduler, task scanner, and LiveSync failure handling. Identify historical and source-only examples.
  • Repair the bundled Kerberos provisioner, scripted connector bundler and Sample 3, and Jakarta JMS audit sample. Make Sample 3 and the SQL audit sample work with MySQL 8 and schema-scoped accounts. Require the active MySQL database to be hrdb before the Sample 3 reset runs any DDL.
  • Preserve Antora chapter anchors and the 23 published upgrade bookmarks. Verify rendered links, images, published page paths, and upgrade bookmarks in CI.

Validation

  • 51 documentation tests passed, including a regression test that renames the upgrade page and updates its navigation entry. The Antora checker validated 10,679 internal references across 96 OpenIDM pages without errors. All 27 original upgrade chapter anchors and the two original certificate procedure anchors resolve in the rendered HTML.
  • Tested the snapshot ZIP on Java 17 using cached UI artifacts. Verified readiness, login, Swagger, Kerberos packaging, connector generation, and delivery of a JMS audit event through ActiveMQ Classic 5.19.12. Also exercised Getting Started, Sample 5, the JMS subscriber, the custom health and echo endpoints, the sunset task, and a scheduled script.
  • Tested Sample 3 and the SQL audit sample with the updated sample files on MySQL 8.0.41 over loopback JDBC without TLS. Sample 3 reset successfully twice, returned both groups, and imported all five users on a fresh run. An earlier reconciliation encountered a policy validation error on one user. The audit connector wrote an event that was read through REST and SQL using an account with only INSERT and SELECT on the audit schema. In a separate Connector/J 9.2.0 test, the guarded reset rejected connections to another database and connections without a selected database, preserved a marker row in the other database, and reset hrdb twice with the documented privileges.
  • Verified that startup.sh -s placed the Felix cache in the requested directory. Verified PKCS#12 import and local CSR completion in the existing JCEKS keystore, then checked the certificate chain and hostname served by OpenIDM.
  • Validated the PostgreSQL schema scripts with PGlite and Docker Compose at the configuration level. Built the Connectors Guide and Integrator's Guide PDFs before stopping the combined PDF run. The local sandbox blocked Chrome during a full UI rebuild.

@vharseko
vharseko requested a review from maximthomas November 26, 2026 10:26
@vharseko vharseko added documentation Documentation, javadoc, adoc, README, wiki connector OpenICF connectors / provisioner samples Sample configurations and use cases packaging What the distribution ships: zip layout, default conf, samples repo Storage / repository layer (OrientDB, JDBC, HSQLDB) ci CI/CD, build and release workflows test Tests and test infrastructure (unit, e2e, smoke) build Maven build configuration (POMs, plugins, build tooling) dependencies Pull requests that update a dependency file java Pull requests that update Java code jdk-support JDK / Java version compatibility labels Nov 26, 2026

@maximthomas maximthomas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

praise: The Kerberos sample now extracts its operation scripts from the same artifact that supplies the bundled connector.


issue (blocking): The refreshed MySQL procedures for Sample 3 and the audit sample still invoke SQL that fails on MySQL 8.

Sample 3 setup · Audit sample setup

The base Sample 3 procedure assumed a root login and showed MySQL 5.7 output. The new procedure uses a scoped account and current Connector/J, but the required reset still uses unquoted groups, reserved since MySQL 8.0.2, and ends with a legacy GRANT … IDENTIFIED BY for root. The refreshed audit procedure imports a schema that ends with the same legacy grant; MySQL 8 rejects that statement even when the import runs as root. Remove both root grants and quote or rename groups throughout the Sample 3 SQL, then verify that the documented reset and audit import succeed and the scoped audit account can write and read an event. Reset script · Reset grant · Audit schema grant · MySQL account-management changes · MySQL reserved words


issue (blocking): The rewritten upgrade guide drops 23 anchors that are present on the published page.

Historical upgrade section

The base guide exposes these section IDs, including install-update-process and update-logging-properties. After publication, bookmarks with those IDs will open the chapter without reaching the relevant content or the new historical pointer. Keep the old IDs as aliases at the closest replacement or historical section and verify that the 23 IDs still exist in the rendered chapter. Published update procedure · Published logging fragment · Full fragment inventory


suggestion (non-blocking): Set the Felix cache path through the launcher in the read-only installation procedure.

Cache property and startup command

The launcher sets org.osgi.framework.storage after loading the project properties. In a cached distribution probe, starting with the documented -p option populated the cache under the installation and left the configured cache directory empty. The base procedure used the same mechanism. Pass -s /var/cache/openidm/felix-cache and verify that the cache lands there before remounting the installation read-only.


suggestion (non-blocking): Give the signed-certificate procedure a working import path for standard PEM files.

PEM import example

The new request sends the expected certs field. With the bundled Bouncy Castle version, a normal PEM certificate parses as X509CertificateHolder, which CertUtil rejects, and the optional private-key branch casts a different PEM parser result to KeyPair. The base example already failed at the request field. Document a working local keystore import and handle REST PEM conversion in a separate issue. Certificate parsing · Private-key provider · PEM fixture output

Follow-up priority Medium

@vharseko

Copy link
Copy Markdown
Member Author

@maximthomas I addressed all four findings in the follow-up commit. Review · Follow-up commit

  • MySQL sample setup. Removed both legacy root grants and quoted groups in the Sample 3 reset, CRUD, search, and LiveSync SQL. Verified the audit schema import, two successful Sample 3 resets, and an audit event written by OpenIDM and read through REST and SQL on MySQL 8.0.41. The audit account had only INSERT and SELECT on the audit schema.
  • Upgrade bookmarks. Restored all 23 published fragments as aliases and added an HTML regression check for them.
  • Read-only installation. The documented launch command now passes the Felix cache directory with -s. Verified that the packaged launcher populated the external directory.
  • Signed certificates. Documented the local PKCS#12 import and keytool CSR workflows. Verified both paths, including the certificate chain and hostname served by OpenIDM. REST PEM conversion remains a follow-up.

@vharseko
vharseko requested a review from maximthomas November 26, 2026 11:30

@maximthomas maximthomas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

praise: The upgrade guide restores the published bookmark destinations and places them beside the relevant upgrade guidance.


suggestion (non-blocking): Check the catalog before dropping the Sample 3 tables.

ResetDatabaseScript.groovy at line 54

The previous reset attempted to select hrdb before running its unqualified drops. The new reset uses the connection's default catalog, so a reused, overprivileged connector configured with the wrong catalog can drop a table such as users in that catalog. The documented hrdb-scoped account prevents this case. Consider checking the current catalog and failing with a clear message before any DDL if it differs from hrdb. Previous reset scope · Documented account scope


suggestion (non-blocking): Document the audit connector's local MySQL TLS setup in a follow-up.

Sample audit JDBC URL

With a cached OpenIDM 7.1.3 snapshot, MySQL 8.0.41 and Connector/J 9.2.0, the bare URL returned HTTP 500 for the audit query and the JDBC handshake logged unknown_ca. OpenIDM sets a JVM-wide client keystore and Connector/J can pick it up through its default fallback. With fallbackToSystemKeyStore=false, the same fixture wrote and exposed the audit event over a TLS-encrypted JDBC session. The URL and this behavior predate the current delta. A separate documentation issue can cover the local setup without mutual TLS while retaining the remote CA and hostname verification guidance. Previous URL · OpenIDM keystore defaults · Connector/J security properties · Local comparison

Follow-up priority Medium


suggestion (non-blocking): Check that the published bookmark page still exists.

check-doc-html.py at line 105

The checker looks up required fragments while iterating existing HTML pages. If the upgrade page is renamed and navigation moves with it, the checker passes even though the original public URLs no longer resolve. Iterate the fixed paths in PUBLISHED_FRAGMENTS directly and fail when a listed page is missing. The pinned render contains the expected page and its aliases. Synthetic checker evidence

Pin: Rename the upgrade page, update its internal links, and require the checker to fail for the missing published path.

@vharseko

Copy link
Copy Markdown
Member Author

@maximthomas I added the Sample 3 database guard and the published page check. Review · Follow-up commit

  • Sample 3 reset. The script checks the active database before the first DDL statement. On MySQL 8.0.41, it rejected a connection to another database and a connection with no database selected. The marker row in the other database was preserved, and hrdb reset successfully twice with the documented schema-scoped grants.
  • Published bookmarks. The checker requires the original published page path. The regression test renames the page and updates the navigation link, then verifies that the check fails. All 51 documentation tests passed, and a fresh Antora render passed 10,679 reference checks across 96 pages.

Local MySQL JDBC TLS guidance for the audit sample is a separate documentation follow-up.

@vharseko
vharseko requested a review from maximthomas November 26, 2026 12:11

@maximthomas maximthomas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

praise: The Sample 3 reset checks the active catalog on the same JDBC connection before executing its first DDL statement. ResetDatabaseScript.groovy

@vharseko
vharseko merged commit 3200854 into OpenIdentityPlatform:master Nov 26, 2026
12 checks passed
@vharseko
vharseko deleted the docs-refresh-openidm-7 branch November 26, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Maven build configuration (POMs, plugins, build tooling) ci CI/CD, build and release workflows connector OpenICF connectors / provisioner dependencies Pull requests that update a dependency file documentation Documentation, javadoc, adoc, README, wiki java Pull requests that update Java code jdk-support JDK / Java version compatibility packaging What the distribution ships: zip layout, default conf, samples repo Storage / repository layer (OrientDB, JDBC, HSQLDB) samples Sample configurations and use cases test Tests and test infrastructure (unit, e2e, smoke)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants