Skip to content

fix(molecule): sync stub key-gen to --keystore-password-file - #46

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

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

Conversation

@alpergundogdu

Copy link
Copy Markdown
Contributor

What

Fixes the red Molecule workflow on main.

Why

Commit #45 (fae0591, "key-gen flag is --keystore-password-file on main") renamed the role's key-gen flag from --password-file to --keystore-password-file in roles/decdn_node/tasks/main.yml, but the Molecule stub binary's key_gen() still parsed the old --password-file. The generate-keystore scenario's converge therefore fails:

stub key-gen: --output-dir and --password-file are required

(failing run)

This is a stub-only mismatch — real deploys are unaffected — but it keeps the Molecule gate red.

Change

Point the stub's key_gen() at --keystore-password-file, matching the role's real invocation, and update the two doc comments that still referenced the old flag. Stub-only; no role or protocol change.

🤖 Generated with Claude Code

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>
Copilot AI lite review requested due to automatic review settings September 11, 2026 14:13

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, stub-only, and brings Molecule’s stub CLI contract back into alignment with the role’s current key-gen invocation without impacting production deployments.

Pull request overview

This PR fixes the Molecule generate-keystore scenario by syncing the Molecule decdn stub’s key-gen argument parsing and related documentation to the renamed CLI flag --keystore-password-file, matching the role’s real invocation and restoring the Molecule workflow gate to green.

Changes:

  • Update the Molecule stub key-gen implementation to read --keystore-password-file instead of the removed --password-file.
  • Update the stub’s key-gen contract documentation and its “required args” error message to reference --keystore-password-file.
File summaries
File Description
ansible/molecule/default/files/decdn-node-stub Aligns stub key-gen flag parsing and docs with the role’s --keystore-password-file invocation to fix Molecule converge.
Review details
  • Files reviewed: 1/1 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 fd58aa7 into main Sep 11, 2026
8 checks passed
@alpergundogdu
alpergundogdu deleted the fix/molecule-keystore-password-flag branch September 11, 2026 14:41
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