Skip to content

Fix handling of loading secrets with empty section

Stan Hu requested to merge sh-fix-secrets-nil-handling into master

What does this MR do and why?

!166431 (merged) refactored config/initializers/01_secret_token.rb, but it failed in CNG builds if production were present with an empty section.

This commit ensures that that secrets for a given environment are a hash.

Relates to gitlab-org/build/CNG!1989 (comment 2153655322)

Edited by Stan Hu

Merge request reports

Loading