Skip to content

Support native contexts and verified SSH in the packaged API - #163

Merged
pparage merged 7 commits into
devfrom
fix/native-api-packaging-20261014
Oct 19, 2026
Merged

pparage merged 7 commits into
devfrom
fix/native-api-packaging-20261014

Conversation

@pparage

@pparage pparage commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Run native contexts without rewriting the read-only runtime, retain verified SSH pins, and recognize the reviewed installer bundles. VM operations and the multi-member SDN guard remain unchanged.

Validation: 22 runtime-contract tests and 96 focused security tests passed, including unknown-tree rejection and multi-member refusal; Ruff passed. Use with the matching core, playbooks and catalog fixes.

@pparage pparage changed the title Support native contexts in the packaged API runtime Support native contexts and verified SSH in the packaged API Oct 14, 2026
@pparage
pparage marked this pull request as ready for review October 19, 2026 07:25
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T07:29:42.589760Z a184af6 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pparage
pparage merged commit 2095b7b into dev Oct 19, 2026
4 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a184af6119

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

environment = {
# Context files can select CLI defaults; restore the API's verified
# connection policy after sourcing them and before running Ansible.
"ANSIBLE_HOST_KEY_CHECKING": "True",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Force strict checking in the native SSH wrapper

When a native shell action invokes ssh directly and its rendered/copied SSH config contains StrictHostKeyChecking no, this export does not protect the connection: ANSIBLE_HOST_KEY_CHECKING is an Ansible-specific setting, while the PATH wrapper below executes OpenSSH with only -F <config>. OpenSSH therefore uses the unsafe config value—its documented precedence gives command-line options priority and otherwise uses the first configured value—allowing the action to trust an unverified host despite the packaged API policy. Add an explicit -o StrictHostKeyChecking=yes and the verified known-hosts file to the wrapper/common SSH arguments.

Useful? React with 👍 / 👎.

@pparage
pparage deleted the fix/native-api-packaging-20261014 branch October 26, 2026 15: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.

1 participant