← Back to Pull requests

OSAC-6331: enforce installation-owned Netris connection settings #1694

Closed
unknown closed this pull request without merging on Oct 20, 2026 21:02 UTC
View on GitHub
unknown unknown commented on Oct 14, 2026 13:53 UTC
Author

OSAC-6331: enforce installation-owned Netris connection settings

Jira: OSAC-6331

Summary

Enforce installation-owned Netris controller URL, certificate validation mode,
and CA path across AAP launch paths. Protected launch inputs are rejected before
they can reach Netris operations or AAP job and workflow requests.

Changes

  • Added one generated protected-input contract shared by Python, Go, and Helm.

  • Made AAP and installer rendering authoritative for Netris URL, TLS mode, and CA path.

  • Pinned managed Netris execution bindings and disabled instance-group fallback.

  • Guarded Netris URI operations with a protected action plugin that fails closed.

  • Rejected protected job and workflow extra_vars before AAP requests.

  • Added local unit, integration, rendering, and operator coverage.

  • Documented the protected launch policy and migration guidance.
  • Testing

  • AAP unit tests: 553 passed.

  • Full installer make helm-validate passed, including Helm lint, networking values, trust/auth, MCE, dev-full, BMaaS/VMaaS, Keycloak, and hub RBAC checks.

  • Chart dependency update confirmed osac-devstack/Chart.lock is synchronized; no tracked lock-file change was required after the rebase.

  • Operator formatting and lint passed with 0 issues.

  • Operator unit, Envtest, and contract suites passed.

  • Operator Helm lint and CRD synchronization checks passed.

  • AAP execution-environment and operator images built successfully from exact HEAD.
  • Live validation

    Validated on blade 10.6.76.209 from the clean PR worktree at exact HEAD
    0096af206224f3e2f859dd2cc92013ab068fb596.

  • AAP execution environment: quay.io/etabak/osac-aap@sha256:a2b969b3147b7dc832c530ad44c0afe7af7691837ca4e6bb20d4868b70af6cc5

  • Operator: quay.io/etabak/osac-operator:0096af206224f3e2f859dd2cc92013ab068fb596@sha256:68303c5e38e07737699bb93d323fa09982c999a38fc351735bc3c6e5ed89127b

  • AAP project branch/revision: codex/OSAC-6331-protected-netris-launch-settings at 0096af206224f3e2f859dd2cc92013ab068fb596

  • Every matrix job used that SCM revision and execution environment ID 4 at the pinned AAP digest.

  • Direct matching-CA TLS verification returned Verify return code: 0 (ok).
  • | Case | Configuration and flow | Result | Evidence |
    |---|---|---|---|
    | 1 | HTTPS, validateCerts=false, no CA | Passed subnet operation | AAP job 3159 |
    | 2 | HTTP, validateCerts=false | Passed DHCP operation | AAP job 3179 |
    | 3 | HTTP, validateCerts=true | Passed; HTTP has no TLS certificate to validate | AAP job 3211 |
    | 4 | HTTPS, validateCerts=true, no CA | Passed negative test; expected self-signed certificate failure | AAP job 3229 |
    | 5 | HTTPS, validateCerts=true, trusted CA with SAN mismatch | Passed negative test; expected IP/SAN verification failure | AAP job 3246 |
    | 6 | HTTPS, validateCerts=false, DHCP/IPAM | Passed | AAP job 3264 |
    | 7 | HTTPS, validateCerts=false, full BMaaS/BareMetalHost flow | Passed; fresh BMI reached Ready after the automatic DHCP retry | Provision 3265, network handoff 3266, expected initial DHCP miss 3267, automatic retry 3268 |
    | 8 | HTTPS, validateCerts=true, matching CA/SAN, DHCP/IPAM | Passed | AAP job 3287 |
    | 9 | HTTPS, validateCerts=true, matching CA/SAN, network attachment | Passed | AAP job 3288 |

    The HTTP-only rows used Helm's test-only --skip-schema-validation flag because
    the production values schema intentionally accepts HTTPS controller URLs only.
    The chart templates, Helm upgrade, AAP bootstrap, managed instance-group
    configuration, and live AAP jobs were still exercised end to end. AAP was not
    patched directly.

    The fresh full BMaaS flow completed provisioning, network attachment, network
    handoff, automatic DHCP retry, IP discovery, and readiness successfully.

    After validation, Helm revision 23 restored the HTTPS baseline with
    validateCerts=false, an empty CA ConfigMap reference, and the same immutable
    image pins. Temporary Netris TLSStore, Secret, and CA ConfigMap resources were
    removed, the original Traefik certificate was restored, and all namespace pods
    were healthy.

    FabricDomain RBAC was present in the deployed environment and was not a blocker
    for this validation.

    Acceptance Criteria

  • Protected aliases and case/separator variants are rejected before launch.

  • Direct launches cannot override installation-owned URL, TLS, or CA settings.

  • Managed Netris templates use pinned execution bindings and no fallback.

  • CA mounts and environment values are explicit and collision-resistant.

  • Ordinary runtime environment entries remain preserved.

  • Supported local launch paths have contract tests.

  • Live AAP/QE verification completed on a supported deployment.
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary

  • API and launch security: The operator rejects protected Netris settings in job-template and workflow-template ExtraVars before it sends AAP requests. The Ansible collection validates the original Runner extra_vars before the linear strategy starts. Both paths use the protected-input policy to detect nested keys and case or separator variants.

  • Netris operations: Netris API tasks use netris.controller.protected_uri. The action plugin checks the request URL, certificate-validation setting, and CA path against installation-managed values before it calls ansible.builtin.uri.

  • Deployment and configuration: Config-as-code validates managed template and workflow bindings. It disables instance-group fallback and sets the execution environment, inventory, and variable-prompt requirements. Helm rejects protected Netris keys in managed instance-group config and secret maps. The installer removes duplicate Netris connection settings from default and example values.

  • Shared contract: A versioned protected-input contract and generator keep the policy synchronized across Python, Go, and Helm.

  • Tests and documentation: The changes add unit and integration coverage for protected inputs, URI checks, launch bindings, and rendered pod settings. Documentation describes installation-owned settings and the configuration path.
  • Compatibility

    AAP launches that include protected Netris settings in extra_vars now fail before execution. Helm rendering now fails when managed instance-group config or secret maps contain protected settings. Configure those settings through global.networking.netris and reconcile with Helm. The deployment now emits Netris CA environment entries even when the configured value is empty.

    Verification

    Local unit, integration, rendering, lint, Helm, CRD, and contract checks passed. Live validation on blade 10.6.76.209 covered all nine HTTP/HTTPS scenarios from exact HEAD 0096af206224f3e2f859dd2cc92013ab068fb596. The full BMaaS/BareMetalHost flow reached Ready after the expected automatic DHCP retry.

    Risk classification

    risk:ask - The existing summary selected this label because the change enforces a security boundary across AAP launch paths and deployment configuration, and rejects inputs that were previously accepted. The formal labeling criteria were not supplied, so the label and its criteria cannot be independently verified. Whether the change was close to another classification also cannot be determined without those criteria.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: tzvatot Review duration: 9068m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1694"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.5% · Safe to merge
    20.5%