Module: Gitlab::Pages
- Includes:
- JwtAuthenticatable
- Defined in:
- lib/gitlab/pages.rb,
lib/gitlab/pages/settings.rb
Defined Under Namespace
Classes: Settings
Constant Summary
collapse
- VERSION =
File.read(Rails.root.join("GITLAB_PAGES_VERSION")).strip.freeze
'Gitlab-Pages-Api-Request'
- MAX_SIZE =
1.terabyte
JwtAuthenticatable::SECRET_LENGTH
Class Method Summary
collapse
included
Class Method Details
.access_control_is_forced? ⇒ Boolean
.secret_path ⇒ Object
18
19
20
|
# File 'lib/gitlab/pages.rb', line 18
def secret_path
Gitlab.config.pages.secret_file
end
|
.verify_api_request(request_headers) ⇒ Object
12
13
14
15
16
|
# File 'lib/gitlab/pages.rb', line 12
def verify_api_request()
decode_jwt([INTERNAL_API_REQUEST_HEADER], issuer: 'gitlab-pages')
rescue JWT::DecodeError
false
end
|