diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-28 09:16:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-28 09:16:06 +0300 |
commit | 203b3660158829b85a49e045bf53d62da62aa88d (patch) | |
tree | 1dfb8e9544a7cb8227b5a2cbf0bc45b0fb6ce979 /lib/gitlab/fips.rb | |
parent | ae4e46452b8799acd538fb96edfc60ba3214cefb (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/fips.rb')
-rw-r--r-- | lib/gitlab/fips.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/gitlab/fips.rb b/lib/gitlab/fips.rb new file mode 100644 index 00000000000..3b3eac6e5e2 --- /dev/null +++ b/lib/gitlab/fips.rb @@ -0,0 +1,19 @@ +# rubocop: disable Naming/FileName +# frozen_string_literal: true + +module Gitlab + class FIPS + # A simple utility class for FIPS-related helpers + + class << self + # Returns whether we should be running in FIPS mode or not + # + # @return [Boolean] + def enabled? + Feature.enabled?(:fips_mode, default_enabled: :yaml) + end + end + end +end + +# rubocop: enable Naming/FileName |