Commit acc70b69 authored by Shinya Maeda's avatar Shinya Maeda Committed by Nikola Milojevic

Add comment on creator_id on Deploy Tokens

parent 1b5ea408
...@@ -14,6 +14,9 @@ class DeployToken < ApplicationRecord ...@@ -14,6 +14,9 @@ class DeployToken < ApplicationRecord
default_value_for(:expires_at) { Forever.date } default_value_for(:expires_at) { Forever.date }
# Do NOT use this `user` for the authentication/authorization of the deploy tokens.
# It's for the auditing purpose on Credential Inventory, only.
# See https://gitlab.com/gitlab-org/gitlab/-/issues/353467#note_859774246 for more information.
belongs_to :user, foreign_key: :creator_id, optional: true belongs_to :user, foreign_key: :creator_id, optional: true
has_many :project_deploy_tokens, inverse_of: :deploy_token has_many :project_deploy_tokens, inverse_of: :deploy_token
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment