Skip to content
Snippets Groups Projects
Commit 0def90b9 authored by Kamil Trzcinski's avatar Kamil Trzcinski
Browse files

Create config/secrets.yml with 0600

parent 1b0c5d5f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -36,7 +36,7 @@ if GitlabCi::Application.secrets.secret_key_base.blank? || GitlabCi::Application
all_secrets[Rails.env] = env_secrets
 
# save secrets
File.open('config/secrets.yml', 'w') do |file|
File.open('config/secrets.yml', 'w', 0600) do |file|
file.write(YAML.dump(all_secrets))
end
 
Loading
Loading
Loading
Loading
@@ -121,6 +121,7 @@ We recommend PostgreSQL but you can also use MySQL
 
# Copy the example secrets file
sudo -u gitlab_ci -H cp config/secrets.yml.example config/secrets.yml
sudo -u gitlab_ci -H chmod 0600 config/secrets.yml
 
# Edit web server settings
sudo -u gitlab_ci -H cp config/unicorn.rb.example config/unicorn.rb
Loading
Loading
@@ -135,9 +136,6 @@ We recommend PostgreSQL but you can also use MySQL
# Change the permissions of the directory where build traces are stored
sudo chmod -R u+rwX builds/
 
# Make sure GitLab CI can write to the builds/ directory
sudo chmod -R u+rwX builds
### Install gems
 
# For MySQL (note, the option says "without ... postgres")
Loading
Loading
Loading
Loading
@@ -37,6 +37,7 @@ otherwise your secrets are exposed if one of your backups is compromised.
 
```
sudo -u gitlab_ci -H cp config/secrets.yml.example config/secrets.yml
sudo -u gitlab_ci -H chmod 0600 config/secrets.yml
```
 
### 5. Install libs, migrations etc
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment