Skip to content
代码片段 群组 项目
未验证 提交 28d3123c 编辑于 作者: Nick Malcolm's avatar Nick Malcolm
浏览文件

Create a rubocop to enforce prefixing authentication tokens

In https://docs.gitlab.com/ee/development/secure_coding_guidelines.html#token-prefixes
we mandate that tokens are prefixed, so that they can be detected by
secret detection if leaked. Now that many of our tokens have prefixes
we should enforce this for new additions.

Proactively including a prefix increases efficiency: developers don't
need to go back and add a prefix later, there's no worries about
needing to rotate existing tokens later, no need for feature flagged
rollout, etc.

The rubocop has been disabled for existing violations with either a
wontfix comment, or a TODO with issue URL comment. The rationale for
these decisions is at
https://gitlab.com/gitlab-org/gitlab/-/issues/439007#note_1740969806

Resolves https://gitlab.com/gitlab-org/gitlab/-/issues/439007
上级 a09fca96
No related branches found
No related tags found
加载中
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册