Coder Social home page Coder Social logo

Comments (6)

kelseyhightower avatar kelseyhightower commented on August 27, 2024

Looks like TLS might have been the issue.

If I change my vault config to the following:

disable_mlock = true

listener "tcp" {
      address = "0.0.0.0:8200"
      tls_disable = 1
}
plugin_directory = "/usr/local/libexec/vault"

storage "consul" {
      address = "127.0.0.1:8500"
      path = "vault/"
}

I'm not able to configure the vault auth plugin:

vault write auth/kubernetes/config \
  kubernetes_host=https://35.197.84.128 \
  [email protected]
Success! Data written to: auth/kubernetes/config

from vault-plugin-auth-kubernetes.

kelseyhightower avatar kelseyhightower commented on August 27, 2024

Note: I normally run vault with tls_require_and_verify_client_cert set to true, but have disabled it for testing this plugin.

from vault-plugin-auth-kubernetes.

briankassouf avatar briankassouf commented on August 27, 2024

Hi @kelseyhightower,

Because plugins use the normal vault API to unwrap a one time use Vault token they need to access the Vault API. When using tls_require_and_verify_client_cert plugins will need to be configured with the TLS client certs. Try running this catalog command instead:

vault write sys/plugins/catalog/kubernetes \
  sha_256=7da474c70fd4d3ce14508fd19a4cae8160e1f47ebe365e077fd0f8094d1dfacb \
  command="vault-plugin-auth-kubernetes --ca-cert=/etc/vault/tls/ca.pem --client-cert=/etc/vault/tls/vault.pem --client-key=/etc/vault/tls/vault-key.pem"

And replace the paths with the appropriate values for the client cert/key

from vault-plugin-auth-kubernetes.

briankassouf avatar briankassouf commented on August 27, 2024

Going to close this since the above command should have fixed the issue

from vault-plugin-auth-kubernetes.

bernielomax avatar bernielomax commented on August 27, 2024

I am getting the same issue as @kelseyhightower even with valid certificates defined. My plugin is just a copy of the mock plugin in vault source. I can confirm that the client certificates do work using environment variables against the vault client. Perhaps my issue is with the plugin itself and not the certs?

from vault-plugin-auth-kubernetes.

jefferai avatar jefferai commented on August 27, 2024

If you are having issues with a custom plugin, please raise an issue against the main Vault repo.

from vault-plugin-auth-kubernetes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.