summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/jwt.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/ci/jwt.rb')
-rw-r--r--lib/gitlab/ci/jwt.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/gitlab/ci/jwt.rb b/lib/gitlab/ci/jwt.rb
index 068e6f5949d..4ba7b4cc6e1 100644
--- a/lib/gitlab/ci/jwt.rb
+++ b/lib/gitlab/ci/jwt.rb
@@ -33,6 +33,8 @@ module Gitlab
delegate :project, :user, :pipeline, :runner, to: :build
delegate :source_ref, :source_ref_path, to: :pipeline
+ delegate :public_key, to: :key
+ delegate :namespace, to: :project
def reserved_claims
now = Time.now.to_i
@@ -86,18 +88,10 @@ module Gitlab
end
end
- def public_key
- key.public_key
- end
-
def kid
public_key.to_jwk[:kid]
end
- def namespace
- project.namespace
- end
-
def ref_type
::Ci::BuildRunnerPresenter.new(build).ref_type
end