Skip to content

fix(decdn_node): key-gen flag is --keystore-password-file on main - #45

Merged
alpergundogdu merged 1 commit into
mainfrom
fix/keygen-keystore-password-flag
Sep 11, 2026
Merged

alpergundogdu merged 1 commit into
mainfrom
fix/keygen-keystore-password-flag

Conversation

@alpergundogdu

Copy link
Copy Markdown
Contributor

CLI-flag drift the schema sync (#44) didn't cover — that synced node.toml (types.rs), but the decdn CLI is a separate surface. decdn main renamed key-gen's --password-file → --keystore-password-file (the daemon ExecStart and config validate already use the new name). The role's keystore-generation task still passed the old flag, so on a main build it crash-fails:

error: unexpected argument '--password-file' found
  tip: a similar argument exists: '--keystore-password-file'

Fixes the key-gen task (tasks/main.yml) and the two doc references. No other role CLI call is affected. Caught converging a real main build.

🤖 Generated with Claude Code

decdn main renamed `key-gen --password-file` -> `--keystore-password-file`
(the daemon unit and `config validate` already use the new name). The
role's key-gen task still passed the old flag, crash-failing keystore
generation on a main build. Fix the task + the two doc references.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 11, 2026 10:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The change is small, consistent across code and docs, and removes the last in-role usage of the deprecated --password-file flag.

Pull request overview

Updates the decdn_node Ansible role to match the current decdn CLI surface on main, fixing keystore generation failures caused by the key-gen flag rename from --password-file to --keystore-password-file.

Changes:

  • Switch the role’s key-gen invocation to use --keystore-password-file.
  • Update the operator-facing inline guidance in tasks/main.yml to use the renamed flag.
  • Update the README’s keystore generation example to use the renamed flag.
File summaries
File Description
ansible/roles/decdn_node/tasks/main.yml Fixes the decdn key-gen flag used during keystore generation and in the embedded remediation instructions.
ansible/roles/decdn_node/README.md Updates documentation example to match the renamed key-gen flag.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@alpergundogdu
alpergundogdu merged commit fae0591 into main Sep 11, 2026
7 of 8 checks passed
@alpergundogdu
alpergundogdu deleted the fix/keygen-keystore-password-flag branch September 11, 2026 10:49
alpergundogdu added a commit that referenced this pull request Sep 11, 2026
Commit #45 renamed the role's key-gen flag from --password-file to
--keystore-password-file but left the Molecule stub's key_gen() parsing
the old flag, so the generate-keystore scenario's converge fails with
"stub key-gen: --output-dir and --password-file are required" and the
Molecule workflow is red on main.

Point the stub at --keystore-password-file (and update the two doc
comments) to match the role's real invocation.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants