Skip to content

[FEAT cloudctl] - Add logon subcommand with version-pinned kubelogin download #76

Open

Description

@onuryilmaz

User Story

As a cloudctl user, I want cloudctl logon to handle OIDC authentication for any context automatically, so I don't need to install or invoke kubelogin myself.

Description

Download a pinned kubelogin binary from GitHub releases (zip, SHA-256 verified). cloudctl logon detects the auth type (exec-plugin / auth-provider / token) from the kubeconfig and invokes kubelogin with appropriate flags. Supports --via-oidc keyboard flow for restricted network environments.

Acceptance Criteria

  • kubelogin downloaded at pinned version and cached in XDG cache dir
  • Auth type detected from kubeconfig: exec-plugin, auth-provider, token, unknown
  • Token-based contexts skip logon with informational message
  • Exec-plugin contexts inform user that explicit logon is not needed
  • Auth-provider contexts invoke kubelogin with --kubeconfig and --context
  • --via-oidc flag triggers keyboard/authcode flow
  • Extra kubelogin args forwarded and take precedence over defaults

Reference Issues

Epic: #70

Activity

  1. added
    featureNew functional capabilities or significant additions to the CLI.
    kubeconfigSpecifically related to kubeconfig parsing, merging, or management
    on Aug 31, 2026
  2. github-actions commented on Aug 31, 2026

    @github-actions

    Thanks for opening this issue! 🎉

    A maintainer will triage it within 5 business days. You can learn more about our issue workflow in the Issue Lifecycle documentation.

    In the meantime, please make sure you have provided:

    • A clear problem statement
    • Steps to reproduce (for bugs)
    • Expected vs actual behavior

    This helps us route your issue faster.

  3. added
    needs-refinementNeeds scoping before implementation
    and removed
    needs-triageNew issue, not yet reviewed
    on Aug 31, 2026
  4. added
    backlogReady for sprint planning; triggers project addition
    and removed
    needs-refinementNeeds scoping before implementation
    on Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogReady for sprint planning; triggers project additionfeatureNew functional capabilities or significant additions to the CLI.good first issueGood for newcomerskubeconfigSpecifically related to kubeconfig parsing, merging, or management

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions