← Back to Pull requests

MULTIARCH-5990: IBM Cloud Staging Endpoint Support for `ccoctl` #1062

Closed
unknown closed this pull request without merging on Jul 09, 2026 22:56 UTC
View on GitHub
unknown unknown commented on Jul 07, 2026 15:34 UTC
Author

Add a --endpoint flag to ccoctl ibmcloud subcommands to support IBM Cloud credential provisioning against Staging and other API endpoints. This enables creation of credential creation workflows on alternative endpoints.

Changes

New --api-endpoint flag added to the following ccoctl ibmcloud subcommands:

  • create-service-id

  • delete-service-id

  • refresh-keys
  • Accepts a base domain (e.g. test.cloud.ibm.com) and derives the full service
    URLs from it:

  • IAM authenticator, identity, and policy management -> https://iam.<endpoint>

  • Resource Manager -> https://resource-controller.<endpoint>
  • When omitted, all clients use their SDK production defaults unchanged.

    pkg/ibmcloud/client.go:

  • Added APIEndpoint string to ClientParams

  • NewClient constructs service URLs from the endpoint when set
  • .gitignore: Added /ccoctl- to ignore platform-specific build artifacts

    Notes

  • The --api-endpoint flag is opt-in and has no effect on normal production usage

  • Alternative Endpoints are only meaningful with the corresponding platform's IBM Cloud API key (i.e staging API endpoint and an API key from the staging platform)

  • Tested against current repository tests (all pass) and locally to confirm that service IDs do indeed get created on staging.
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    New Features
    Added an
    --api-endpoint option/flag to IBM Cloud provisioning commands (create service ID, delete service ID, refresh keys) to override the IBM Cloud API base domain used for requests.
    IBM Cloud client now supports configurable API endpoint routing for IAM and resource-manager calls.
    Tests
    Added coverage for API endpoint normalization and client URL construction behavior.
    Chores
    Updated version control ignore rules to exclude paths matching
    /ccoctl-* in addition to the existing /ccoctl` entry.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 256 lines (+192 / -64) across 3 files Reviewer: taliandre49 Review duration: 3322m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 256 lines diff across 3 files
    0.39
    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.332
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1062"
    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: 39.1% (MEDIUM) · Higher = larger blast radius
    39.1%
    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: 15.4% · Safe to merge
    15.4%