【问题标题】:Vault HashiCorp Too many arguments error when tuning a secret调整机密时,Vault HashiCorp 参数过多错误
【发布时间】:2019-03-20 23:23:13
【问题描述】:

你能帮帮我吗?当我运行命令时

.\vault.exe secrets tune -default-lease-ttl=720h -max-lease-ttl=720h auth/token -address=http://192.168.10.10:8200

我有错误Too many arguments (expected 1, got 2)

【问题讨论】:

    标签: hashicorp-vault


    【解决方案1】:

    Vault secrets tune 命令只接受一个参数,for example

    $ vault secrets tune -default-lease-ttl=72h pki/
    

    您添加了两个,auth/token8200(您粘贴的代码中的端口和地址之间有一个空格。

    除此之外,例如,您还想在调整后放置 -address 标志

    .\vault.exe secrets tune -default-lease-ttl=720h -max-lease-ttl=720h -address=http://192.168.10.10:8200 auth/token 
    

    【讨论】:

    • 尝试使用description 标志执行此操作,但该标志似乎只需要一个字。这:vault secrets tune -description="manage pki for team x" "pki/" 导致Too many arguments (expected 1, got 5)?只有-description="pki" 似乎有效。
    猜你喜欢
    • 2019-03-22
    • 1970-01-01
    • 1970-01-01
    • 2019-07-19
    • 2019-05-03
    • 2020-05-27
    • 2017-05-16
    • 2017-12-18
    • 2020-10-26
    相关资源
    最近更新 更多