Skip to content

P2: Enterprise policy.json (updates/auth constraints, rollout control) #26

Closed

Description

@Kinin-Code-Offical
No description provided.

Activity

  1. Kinin-Code-Offical commented on Dec 22, 2025

    @Kinin-Code-Offical
    OwnerAuthor

    Plan

    • Add enterprise policy.json support (machine-scope by default) loaded from %ProgramData%\CloudSQLCTL\policy.json or overridden by CLOUDSQLCTL_POLICY_PATH.
    • Enforce policy in sensitive commands:
      • upgrade: allow/deny updates; optionally force channel and/or pinned version; block user pin/unpin when policy controls it.
      • �uth: allow/deny login, �dc, and set-service-account; optionally restrict allowed scopes.
    • Add docs/Policy.md with schema + examples.
    • Add unit tests for policy parsing and enforcement helpers.

    Risks

    • Over-restricting behavior; keep defaults permissive when policy absent.

    Local test plan

    • npm ci
    • npm run lint
    • npm test
    • npm run build
    • npm run docs:check
  2. Kinin-Code-Offical commented on Dec 22, 2025

    @Kinin-Code-Offical
    OwnerAuthor

    Done via #45
    Merge commit: 14a3711

    Verification

    • npm ci (PASS)
    • npm run lint (PASS)
    • npm test (PASS)
    • npm run build (PASS)
    • npm run docs:check (PASS)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions