Skip to content

operations guide: validate the cephx keys - #1157

Merged
berendt merged 1 commit into
mainfrom
docs/validate-ceph-keys
Nov 26, 2026
Merged

berendt merged 1 commit into
mainfrom
docs/validate-ceph-keys

Conversation

@ideaship

Copy link
Copy Markdown
Contributor

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_strict true, or auth_allowed_ciphers excluding 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

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>
@github-actions

Copy link
Copy Markdown

✅⚠️MegaLinter analysis: Success with warnings

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
⚠️ SPELL 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

MegaLinter is provided by OX Security
Show us your support by starring ⭐ the repository

@ideaship
ideaship added this pull request to stack #1161 November 26, 2026 14:00
@ideaship
ideaship marked this pull request as ready for review November 26, 2026 14:01
@ideaship ideaship self-assigned this Nov 26, 2026
@ideaship
ideaship requested a review from berendt November 26, 2026 14:01
@berendt
berendt merged commit e376e8c into main Nov 26, 2026
6 checks passed
@berendt
berendt deleted the docs/validate-ceph-keys branch November 26, 2026 15:25
@github-project-automation github-project-automation Bot moved this from New to Done in Human Board Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants