Gracefully fail config build when master secret not available
When the credentials are not accessible, e.g. on CI, parsing the database config fails otherwise.
This commit is contained in:
@@ -50,7 +50,7 @@ production:
|
||||
port: 636
|
||||
attribute: cn
|
||||
base: ou=kosmos.org,cn=users,dc=kosmos,dc=org
|
||||
admin_user: <%= Rails.application.credentials.ldap[:username] %>
|
||||
admin_password: <%= Rails.application.credentials.ldap[:password] %>
|
||||
admin_user: <%= Rails.application.credentials.ldap[:username] rescue nil %>
|
||||
admin_password: <%= Rails.application.credentials.ldap[:password] rescue nil %>
|
||||
ssl: simple_tls
|
||||
# <<: *AUTHORIZATIONS
|
||||
|
||||
Reference in New Issue
Block a user