Skip to content

kubectl-oidc-login

Kubectl plugin for Kubernetes OpenID Connect authentication (kubectl oidc-login)

This is a kubectl plugin for Kubernetes OpenID Connect (OIDC) authentication. When you run kubectl, kubelogin opens the browser and you can log in to the provider. Then kubelogin gets a token from the provider and kubectl access Kubernetes APIs with the token.

devops

https://github.com/int128/kubelogin

amd64 arm64

Installation

1. Add WakeMeOps repository

curl -sSL https://raw.githubusercontent.com/upciti/wakemeops/main/assets/install_repository | sudo bash

2. Install kubectl-oidc-login

sudo apt install kubectl-oidc-login

Snippets

FROM wakemeops/minideb:bullseye

RUN install_packages \
    kubectl-oidc-login=1.31.0*

USER 1001
- name: Install dependencies
  uses: upciti/wakemeops-action@v1
  with:
    packages: |
      kubectl-oidc-login=1.31.0*

Download URLs

Version SHA256 Size (KB)
1.31.0 66681e9988d2e022b4fc7116ffdea7979356d367fa75b42b8a13ed9f6f3ea4e4 4063
1.30.1 6c7abd495fe3f6b83ca4259f3ad63bee6770a75c5a2a93d9b1e7374c26247c2f 4062
1.30.0 6a5c5e8b87d6d79856c12fa4f35877444a3f92640d0da1cfe9a3b9e6be2c722c 4062
Version SHA256 Size (KB)
1.31.0 e676aabb37b352282026d652f3b895d244c97db135d95361c091b2c99bb794b6 3461
1.30.1 7c400d5bde6d9140577b671d7945d7b04cc022ef15f42d310aef619c2a0687c5 3459
1.30.0 9020ab774e4bcc1c77e294ce4bf09fed05b484f476f30aa978b150e0239a2343 3460

Blueprints

Debian packages listed on this page are generated from op2deb YAML blueprints. Blueprints for kubectl-oidc-login are versioned here.

Click here to see kubectl-oidc-login ops2deb blueprints
https://github.com/upciti/wakemeops/blob/main/blueprints/devops/kubectl-oidc-login/ops2deb.yml
name: kubectl-oidc-login
matrix:
  architectures:
    - amd64
    - arm64
  versions:
    - 1.30.0
    - 1.30.1
    - 1.31.0
homepage: https://github.com/int128/kubelogin
summary: Kubectl plugin for Kubernetes OpenID Connect authentication (kubectl oidc-login)
description: |-
  This is a kubectl plugin for Kubernetes OpenID Connect (OIDC) authentication.
  When you run kubectl, kubelogin opens the browser and you can log in to the
  provider. Then kubelogin gets a token from the provider and kubectl access
  Kubernetes APIs with the token.
fetch: https://github.com/int128/kubelogin/releases/download/v{{version}}/kubelogin_linux_{{goarch}}.zip
install:
  - kubelogin:/usr/bin/kubectl-oidc_login

The blueprint fetch keyword contains a URL template pointing to kubectl-oidc-login releases. Downloaded files are locked in a lockfile versioned here.

Click here to see kubectl-oidc-login release hashes
https://github.com/upciti/wakemeops/blob/main/blueprints/devops/kubectl-oidc-login/ops2deb.lock.yml
- url: https://github.com/int128/kubelogin/releases/download/v1.30.1/kubelogin_linux_amd64.zip
  sha256: 36297a69b10664003ec8c9ca53fa56c37b72596cc104a9b55e7145542683532b
  timestamp: 2024-11-08 09:39:25+00:00
- url: https://github.com/int128/kubelogin/releases/download/v1.30.1/kubelogin_linux_arm64.zip
  sha256: 97e59a21e95c7229bfedbbeed4d828aabb80fc140954b33aaa00320c74a6227a
  timestamp: 2024-11-08 09:39:25+00:00
- url: https://github.com/int128/kubelogin/releases/download/v1.30.0/kubelogin_linux_amd64.zip
  sha256: 3e61379ff750e7e74b64807a8003b755c9733b919a9cae0f22634bd19589b636
  timestamp: 2024-11-08 09:39:35+00:00
- url: https://github.com/int128/kubelogin/releases/download/v1.30.0/kubelogin_linux_arm64.zip
  sha256: b741f4cd5b4c5da7f27ffe83ac33e5e2ecf7a7553d6e7d704264822be392baae
  timestamp: 2024-11-08 09:39:35+00:00
- url: https://github.com/int128/kubelogin/releases/download/v1.31.0/kubelogin_linux_amd64.zip
  sha256: 6cf3cfaa6b81305ebbc83cf1119fa60c079f6cd9756a9baf4169103b811ef86b
  timestamp: 2024-11-27 15:06:41+00:00
- url: https://github.com/int128/kubelogin/releases/download/v1.31.0/kubelogin_linux_arm64.zip
  sha256: e68cd375d07b963c2456b43265499a543eca8332391d80fa482057f295dbd9f2
  timestamp: 2024-11-27 15:06:41+00:00

Badge

WakeMeOps

[![WakeMeOps](https://docs.wakemeops.com/badges/kubectl-oidc-login.svg)](https://docs.wakemeops.com/packages/kubectl-oidc-login)
<a href="https://docs.wakemeops.com/packages/kubectl-oidc-login">
  <img src="https://docs.wakemeops.com/badges/kubectl-oidc-login.svg"/>
</a>
.. image:: https://docs.wakemeops.com/badges/kubectl-oidc-login.svg
:target: https://docs.wakemeops.com/packages/kubectl-oidc-login