Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
swdotcom

GitHub Action

Configure Kubectl with StrongDM

v1.0.1

Configure Kubectl with StrongDM

swdotcom

Configure Kubectl with StrongDM

Setup kubectl config using StrongDM CLI

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Configure Kubectl with StrongDM

uses: swdotcom/[email protected]

Learn more about this action in swdotcom/configure-kubectl-with-strongdm

Choose a version

Configure kubectl with StrongDM Action

Composite Github action to configure kubectl using the StrongDM CLI

This requires the use of a StrongDM service account token with access to a kubernetes cluster.

https://www.strongdm.com/docs/admin-guide/service-accounts/

Make sure the service account is setup to auto connect to all data sources as described in the StrongDM documentation.

The workflow runner you are using must have kubectl installed. All of Github's hosted runner, except for MacOS, already have kubectl installed. The MacOS image has homebrew, so it can easily be installed that way.

https://docs.github.com/en/actions/reference/software-installed-on-github-hosted-runners

Usage

See action.yaml

Example usage

- name: Configure Kubectl with StrongDM
  uses: swdotcom/configure-kubectl-with-strongdm@v1
  with:
    sdm-admin-token: ${{ secrets.SDM_ADMIN_TOKEN }}