Skip to content

Kubectl plugin to authenticate against a cluster via a vault server's OIDC role endpoint

License

Notifications You must be signed in to change notification settings

Toalaah/kube-vault-login

Repository files navigation

kube-vault-login

kube-vault-login is a kubectl plugin which allows you to authenticate against an kubernetes API server using JWTs returned by a vault server's identity token backend.

Installation

You can grab prebuilt binaries from this project's release.

Note

If you choose to manually install, e.g. via go install, you will need to rename the binary from kube-vault-login to kubectl-vault_login.

Usage

Once installed, you can update your kubeconfig as follows:

# ...
- name: my-username
  user:
    exec:
      apiVersion: client.authentication.k8s.io/v1beta1
      command: kubectl
      args:
      - vault-login
      - get-token
      - --role=my-role
      env: null
      provideClusterInfo: false

Roadmap

  • Add introspection subcommand
  • Add logging
  • Add tests
  • Add setup subcommand

Acknowledgments

This plugin and its functionality are very similar to that of kubelogin

License

This project is licensed under the terms of the GPLv3 license

About

Kubectl plugin to authenticate against a cluster via a vault server's OIDC role endpoint

Resources

License

Stars

Watchers

Forks

Packages

No packages published