Repository navigation
operations guide: validate the cephx keys - #1157
Merged
Merged
Conversation
osism/ansible-playbooks adds validate-ceph-keys, run as osism validate ceph-keys (python-osism), a read-only validator for the cephx keys. Nothing in the documentation describes it yet. Add an operations-guide page for it and link it from the Ceph page's section on the validators. The page says what the command checks and where it writes its report: - It runs on the first manager, fails if a check fails, prints a line per check and every row that did not pass, and writes the JSON report to /opt/reports/validator/ceph-keys-validator-<timestamp>- report.json. Comparisons show no key or part of one. - pending-keys: a pending key is a rotation that is not finished; each is named with what commits it (the repository step and the service applies, osism apply cephclient, the next start of an OSD for a lockbox key). For any other entity: find out what uses it, then ceph auth commit-pending or ceph auth clear-pending. - old-key-type: keys of the type aes are listed, and fail the check only with ceph_validate_strict true or when auth_allowed_ciphers excludes aes. - monitor-copies: /etc/ceph/ceph.<entity>.keyring on every monitor node for client.admin and the openstack_keys on the cluster; a missing file or a pending key line fails. - checkout: the keyring files copy-ceph-keys writes into the manager's checkout hold the current key and are unmodified in git. Without configuration_directory (the OSISM defaults set /opt/configuration) the check fails with "checkout @ manager: failed - configuration_directory is not set". - running-guests: each QEMU process started after libvirt loaded the current secrets; a compute node whose secrets do not hold the current keys fails on its own, and a nova_libvirt restart without a key change can name instances that are fine, never the reverse. - An unreachable monitor or compute node fails its part only. The page does not name the rotation play, which is a separate change; it describes the validator as it is on its own. The page needs validate-ceph-keys (osism/ansible-playbooks) and osism validate ceph-keys (python-osism) in a release before it can be published. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Roger Luethi <luethi@osism.tech>
✅
|
| Descriptor | Linter | Files | Fixed | Errors | Max errors | Warnings | Elapsed time |
|---|---|---|---|---|---|---|---|
| ✅ ACTION | actionlint | 5 | 0 | 0 | 0.04s | ||
| ✅ JSON | jsonlint | 4 | 0 | 0 | 0.07s | ||
| ✅ JSON | prettier | 4 | 0 | 0 | 0.24s | ||
| ✅ JSON | v8r | 4 | 0 | 0 | 6.78s | ||
| ✅ MARKDOWN | markdownlint | 185 | 0 | 0 | 2.23s | ||
| ✅ MARKDOWN | markdown-table-formatter | 185 | 0 | 0 | 0.31s | ||
| ✅ REPOSITORY | betterleaks | yes | no | no | 0.68s | ||
| ✅ REPOSITORY | checkov | yes | no | no | 13.06s | ||
| ✅ REPOSITORY | git_diff | yes | no | no | 0.04s | ||
| ✅ REPOSITORY | secretlint | yes | no | no | 1.07s | ||
| ✅ REPOSITORY | trufflehog | yes | no | no | 2.84s | ||
| ✅ SPELL | codespell | 195 | 0 | 0 | 0.49s | ||
| lychee | 191 | 2 | 0 | 35.17s | |||
| ✅ YAML | prettier | 6 | 0 | 0 | 0.24s | ||
| ✅ YAML | v8r | 6 | 0 | 0 | 5.23s | ||
| ✅ YAML | yamllint | 6 | 0 | 0 | 0.38s |
Detailed Issues
⚠️ SPELL / lychee - 2 errors
📝 Summary
---------------------
🔍 Total.........1307
🔗 Unique.........960
✅ Successful....1187
⏳ Timeouts.........2
🔀 Redirected.......1
👻 Excluded.......116
❓ Unknown..........0
🚫 Errors...........2
⛔ Unsupported......2
Errors in docs/appendix/security/ossa-2026-001.md
[TIMEOUT] https://bugs.launchpad.net/keystonemiddleware/+bug/2129018 (at 142:3) | Request timed out
Errors in docs/appendix/security/ossa-2026-015.md
[TIMEOUT] https://bugs.launchpad.net/keystone/+bug/2150089 (at 198:3) | Request timed out
Errors in docs/guides/developer-guide/index.md
[502] https://github.com/osism/ansible-collection-services/pull/578/files (at 54:88) | Rejected status code: 502 Bad Gateway
Errors in docs/guides/developer-guide/style-guide.md
[ERROR] https://wiki.openstack.org/wiki/GitCommitMessages (at 79:1) | Network unreachable. Check internet connection or VPN settings
Hint: Followed 1 redirect. You might want to consider replacing redirecting URLs with the resolved URLs. Use verbose mode (`-v`/`-vv`) to see redirection details.
See detailed reports in MegaLinter artifacts
Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining FLAVOR_SUGGESTIONS: false)
- Documentation: Custom Flavors
- Command:
npx mega-linter-runner@10.2.0 --custom-flavor-setup --custom-flavor-linters ACTION_ACTIONLINT,JSON_JSONLINT,JSON_V8R,JSON_PRETTIER,MARKDOWN_MARKDOWNLINT,MARKDOWN_MARKDOWN_TABLE_FORMATTER,REPOSITORY_CHECKOV,REPOSITORY_GIT_DIFF,REPOSITORY_BETTERLEAKS,REPOSITORY_SECRETLINT,REPOSITORY_TRUFFLEHOG,SPELL_LYCHEE,SPELL_CODESPELL,YAML_PRETTIER,YAML_YAMLLINT,YAML_V8R

Show us your support by starring ⭐ the repository
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add an operations-guide page for
osism validate ceph-keys, the read-only validator for the cephx keys, and link it from the Ceph page's section on the validators.The page covers what each check tests (pending keys, old key type, monitor copies, the manager's checkout, running guests), where the JSON report goes, that the checkout check fails without
configuration_directory, when keys of the old type fail the run (ceph_validate_stricttrue, orauth_allowed_ciphersexcluding aes), and that an unreachable node fails only its own part.It documents:
Both are merged; the page should be published with the release that ships them.
markdownlint and the Docusaurus build pass.
🤖 Generated with Claude Code