Skip to content

Conversation

tommy-heyde-olsen
Copy link

This PR is to add support for Vault engine v2 secrets. It also adds support for using your own configured key to the secret in Vault.

Example of using the new config style:

kind: SwitchConfig
version: v1alpha1
refreshIndexAfter: 12h
kubeconfigStores:
- kind: vault
  showPrefix: false
  paths:
  - "shared/all/kubernetes"
  config:
    vaultAPIAddress: "https://vault.foo.bar"
    vaultKeyKubeconfig: "kubeconfig"
    vaultEngineVersion: "v2"
  cache:
    kind: filesystem
    config:
      path: ~/.kube/cache/switch

Besides that it also addresses a few other things:

  • If using cache and the folder does not exist, then create it
  • Upgrade to golang 1.20
  • Upgrade modules

@danielfoehrKn
Copy link
Owner

Thank you very much, I'll have a look early next week!

@danielfoehrKn
Copy link
Owner

Looks great. Thank you very much.

@danielfoehrKn danielfoehrKn merged commit c912ade into danielfoehrKn:master Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants