Bitbucket:显示变量的值为秘密
对于我的一个存储库之一,我需要查看将其设置为部署安全属性的值(如 https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/#secred-variaiables )。有什么方法可以检索存储在那里的价值吗?
由于其所有出现都被掩盖(),我有一个想法,我想写一个价值,我怀疑我在那里保存在那里,使用“ echo”保存在那里, 。如果我看到它被变量替换为日志中,我知道这是该变量的秘密价值 - 但这将使它暴露于项目的历史记录。
还有进一步的想法吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
安全免责声明:负责,使用此解决方案后,在
您始终可以以可逆的方式修改秘密并回应它,以便它找不到bitbucket在日志。在块中分配值,将字符与空格交织或用base64或您喜欢的/可用可逆的字符串函数编码值。
例如,
将&amp“粘贴到您的终端并执行
Security disclaimer: be responsible and after using this solution
You can always modify the secret in a reversible way and echo it so that bitbucket does not find an exact match to mask in the logs. Splitting the value in chunks, interleaving the characters with whitespace or encoding the value with base64 or your favorite/available reversible string function.
E.g.
copy&paste to your terminal and do