Repository navigation
Refresh OpenIDM 7 documentation and repair bundled examples - #278
Conversation
maximthomas
left a comment
There was a problem hiding this comment.
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.
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.
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
|
@maximthomas I addressed all four findings in the follow-up commit. Review · Follow-up commit
|
maximthomas
left a comment
There was a problem hiding this comment.
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.
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.
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.
|
@maximthomas I added the Sample 3 database guard and the published page check. Review · Follow-up commit
Local MySQL JDBC TLS guidance for the audit sample is a separate documentation follow-up. |
maximthomas
left a comment
There was a problem hiding this comment.
praise: The Sample 3 reset checks the active catalog on the same JDBC connection before executing its first DDL statement. ResetDatabaseScript.groovy
Summary
-soption for a writable Felix cache and local keystore procedures for CA-signed certificates.hrdbbefore the Sample 3 reset runs any DDL.Validation
INSERTandSELECTon 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 resethrdbtwice with the documented privileges.startup.sh -splaced 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.