Repository navigation
key rotation: fix scope of the NetBox step - #1154
Merged
Merged
Conversation
The section "Rotating the key in the NetBox (MetalBox)" said that replacing operator_authorized_keys in a device's local context "only affects systems that are newly provisioned via the MetalBox afterwards" and can be performed at any time. That is not the case. The inventory reconciler exports each device's rendered config_context, into which NetBox merges local_context_data, as host variables. The key is therefore also the operator_authorized_keys host variable of every such device, and a later osism apply operator uses it unless the configuration repository sets the variable with higher precedence. Say so, and make the "at any time" statement conditional on the configuration repository setting the variable. Also name the NetBox field correctly (local_context_data, not local_context). 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.07s | ||
| ✅ JSON | jsonlint | 4 | 0 | 0 | 0.13s | ||
| ✅ JSON | prettier | 4 | 0 | 0 | 0.35s | ||
| ✅ JSON | v8r | 4 | 0 | 0 | 9.23s | ||
| ✅ MARKDOWN | markdownlint | 184 | 0 | 0 | 2.91s | ||
| ✅ MARKDOWN | markdown-table-formatter | 184 | 0 | 0 | 0.39s | ||
| ✅ REPOSITORY | betterleaks | yes | no | no | 0.8s | ||
| ✅ REPOSITORY | checkov | yes | no | no | 17.86s | ||
| ✅ REPOSITORY | git_diff | yes | no | no | 0.07s | ||
| ✅ REPOSITORY | secretlint | yes | no | no | 1.36s | ||
| ✅ REPOSITORY | trufflehog | yes | no | no | 3.4s | ||
| ✅ SPELL | codespell | 194 | 0 | 0 | 0.63s | ||
| lychee | 190 | 1 | 0 | 12.93s | |||
| ✅ YAML | prettier | 6 | 0 | 0 | 0.31s | ||
| ✅ YAML | v8r | 6 | 0 | 0 | 6.88s | ||
| ✅ YAML | yamllint | 6 | 0 | 0 | 0.44s |
Detailed Issues
⚠️ SPELL / lychee - 1 error
📝 Summary
---------------------
🔍 Total.........1304
🔗 Unique.........957
✅ Successful....1187
⏳ Timeouts.........0
🔀 Redirected.......1
👻 Excluded.......116
❓ Unknown..........0
🚫 Errors...........1
⛔ Unsupported......1
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
ideaship
marked this pull request as ready for review
November 24, 2026 03:10
This was referenced Nov 24, 2026
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.
The section "Rotating the key in the NetBox (MetalBox)" of the operator key rotation guide says that replacing
operator_authorized_keysin a device's local context "only affects systems that are newly provisioned via the MetalBox afterwards" and can be performed at any time.That is not the case today. The inventory reconciler exports each device's rendered
config_context, into which NetBox mergeslocal_context_data, as host variables:So the key is also the
operator_authorized_keyshost variable of every such device, and a laterosism apply operatoruses it unless the configuration repository sets the variable with higher precedence.This change says so, makes the "at any time" statement conditional on the configuration repository setting the variable, and names the NetBox field correctly (
local_context_data, notlocal_context).🤖 Generated with Claude Code