TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Has anyone adopted or seen adoption of RFC8959 secret-token?

5 点作者 unilynx大约 2 个月前
Has anyone seen adoption of the &#x27;secret-token:&#x27; prefix to help prevent leakage of API secrets as described by RFC8959? Do API users understand its purpose and respond positively or negatively to it?<p>See also https:&#x2F;&#x2F;www.rfc-editor.org&#x2F;rfc&#x2F;rfc8959.txt and https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=25978185

2 条评论

finnigja大约 2 个月前
That particular structure hasn&#x27;t really taken off, but the general idea of having unique-ish token formats that can be mapped back to a provider is becoming more popular.<p>Trivy has a pretty good collection of examples that is used for its secret scanning functionality, <a href="https:&#x2F;&#x2F;github.com&#x2F;aquasecurity&#x2F;trivy&#x2F;blob&#x2F;main&#x2F;pkg&#x2F;fanal&#x2F;secret&#x2F;builtin-rules.go" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;aquasecurity&#x2F;trivy&#x2F;blob&#x2F;main&#x2F;pkg&#x2F;fanal&#x2F;se...</a>.
tptacek大约 2 个月前
I don&#x27;t think the idea is so much that API users understand its purpose so much as that repository hosts like Github can scan for it automatically. We don&#x27;t use secret-token, but we do use a very identifiable fixed constant string prepended to our tokens, for similar reasons.