Giter Club home page Giter Club logo

Comments (6)

kristian-lesko avatar kristian-lesko commented on July 23, 2024

Hello,

try putting the -client-key argument name before the /etc/vault_pki/consul.key value in the vault write command.

from vault-plugin-auth-kerberos.

pault28 avatar pault28 commented on July 23, 2024

@kristian-lesko Thanks for the reply. I have corrected that typo but the error persist:

vault auth enable -plugin-name=kerberos-auth-plugin plugin
vault read sys/plugins/catalog/kerberos-auth-plugin                                              Key        Value
---        -----
args       [-ca-cert /etc/vault_pki/consul.pem -client-cert /etc/vault_pki/consul.crt -client-key /etc/vault_pki/consul.key -tls-skip-verify]
builtin    false
command    vault-plugin-auth-kerberos
name       kerberos-auth-plugin
sha256     066a8f39099d2a0efe50cedd5b254d60466e8dfa6323d74ee0ef7cc9926ed4c4

from vault-plugin-auth-kerberos.

ah- avatar ah- commented on July 23, 2024

Can you get some more logs?

I'd try just running the plugin manually with your arguments:
vault-plugin-auth-kerberos -ca-cert /etc/vault_pki/consul.pem -client-cert /etc/vault_pki/consul.crt -client-key /etc/vault_pki/consul.key -tls-skip-verify
and then run vault with debug logging:
vault server -config=vault.hcl -log-level=debug

from vault-plugin-auth-kerberos.

pault28 avatar pault28 commented on July 23, 2024

Thanks once again. I got a bit more logs:

Apr 18 13:49:45 BL-SVR-TST201 vault[25899]: 2018/04/18 13:49:45.643288 [DEBUG] plugin.metadata: starting plugin: path=/etc/vault                                                                                                             _plugins/vault-plugin-auth-kerberos args=[/etc/vault_plugins/vault-plugin-auth-kerberos -ca-cert /etc/vault_pki/consul.pem -clie                                                                                                             nt-cert /etc/vault_pki/consul.crt -client-key /etc/vault_pki/consul.key -tls-skip-verify]
Apr 18 13:49:45 BL-SVR-TST201 vault[25899]: 2018/04/18 13:49:45.643909 [DEBUG] plugin.metadata: waiting for RPC address: path=/e                                                                                                             tc/vault_plugins/vault-plugin-auth-kerberos
Apr 18 13:49:45 BL-SVR-TST201 vault[25899]: 2018/04/18 13:49:45.647203 [DEBUG] plugin.metadata.vault-plugin-auth-kerberos: 2018/                                                                                                             04/18 13:49:45 cannot allocate memory
Apr 18 13:49:45 BL-SVR-TST201 vault[25899]: 2018/04/18 13:49:45.647744 [DEBUG] plugin.metadata: plugin process exited: path=/etc                                                                                                             /vault_plugins/vault-plugin-auth-kerberos
Apr 18 13:49:45 BL-SVR-TST201 vault[25899]: 2018/04/18 13:49:45.647794 [ERROR] sys: enable auth mount failed: path=kerberos/ err                                                                                                             or=plugin exited before we could connect

from vault-plugin-auth-kerberos.

pault28 avatar pault28 commented on July 23, 2024

Thanks @kristian-lesko @ah- this works now. Turned out I needed to ensure mlock has infinity:
LimitMEMLOCK=infinity is all I added to to the systemd config for vault and was then able to enable it.
All good here...closing.

vault auth list
Path         Type      Description
----         ----      -----------
kerberos/    plugin    n/a
ldap/        ldap      n/a
token/       token     token based credentials

PS: ulimit -l was quite low.

 ulimit -l
64

from vault-plugin-auth-kerberos.

ah- avatar ah- commented on July 23, 2024

Great, thanks for reporting back!

from vault-plugin-auth-kerberos.

Related Issues (10)

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.