【问题标题】:Nexus IQ read password from --password-stdinNexus IQ 从 --password-stdin 读取密码
【发布时间】:2021-05-12 20:06:30
【问题描述】:

我在 Linux 环境中运行 Nexus IQ 扫描。有没有从 --password-stdin 或类似的东西读取密码?我们关心的是密码在 bash 历史记录中是明文形式。

java -jar ./nexus-iq-cli-1.75.0-01.jar -X -i "APPGNL" -a ${username}:${password} -s ${nexus_iq_url} ${docker_image_name}.tar

【问题讨论】:

标签: linux nexus sonatype


【解决方案1】:

我了解到您想从文件中读取密码。在您的命令中,您可以将${password} 替换为$(cat /password/directory)

【讨论】:

    【解决方案2】:

    这里有 2 个可能的选择:

    --pki-认证 委托给 JVM 进行身份验证

    https://help.sonatype.com/integrations/nexus-iq-cli#NexusIQCLI-Parameters

    或者,这可能会隐藏凭据。我不确定它们是否会出现在日志中。

    java -jar ./nexus-iq-cli-.jar @cli-auth.txt -i Test123 -s http://localhost:8070 -t build ./sample-application.zip

    https://help.sonatype.com/integrations/nexus-iq-cli#NexusIQCLI-LoadingParametersFromFileLoadingParametersfromaFile

    【讨论】:

      猜你喜欢
      • 2015-06-29
      • 2012-08-11
      • 1970-01-01
      • 2013-06-13
      • 1970-01-01
      • 2010-12-17
      • 1970-01-01
      • 2019-08-23
      相关资源
      最近更新 更多