You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`gitlab_rails['redis_extra_config_command']`| Provides extra configuration to the Redis configuration files used by GitLab Rails application. (`resque.yml`, `redis.yml`, `redis.<redis_instance>.yml` files) |
744
+
|`gitlab_rails['db_extra_config_command']`| Provides extra configuration to the DB configuration file used by GitLab Rails application. (`database.yml`) |
745
+
|`gitlab_kas['extra_config_command']`| Provides extra configuration to GitLab agent server for Kubernetes (KAS). |
746
+
|`gitlab_workhorse['extra_config_command']`| Provides extra configuration to GitLab Workhorse.|
747
+
|`gitlab_exporter['extra_config_command']`| Provides extra configuration to GitLab Exporter.
748
+
749
+
The value assigned to any of these options should be an absolute path to an executable script
750
+
that writes the sensitive configuration in the required format to STDOUT. The
751
+
components:
752
+
753
+
1. Execute the supplied script.
754
+
1. Replace values set by user and default configuration files with those emitted
755
+
by the script.
756
+
757
+
### Provide Redis password to client components
758
+
759
+
As an example, you can use the script and `gitlab.rb` snippet below to
760
+
specify the password of a Redis server to the components that need to connect to
761
+
Redis.
762
+
763
+
1. Save the script below as `/opt/generate-redis-conf`
764
+
765
+
```ruby
766
+
#!/opt/gitlab/embedded/bin/ruby
767
+
768
+
require 'json'
769
+
require 'yaml'
770
+
771
+
class RedisConfig
772
+
REDIS_PASSWORD = `echo "toomanysecrets"`.strip # Change the command inside backticks to fetch Redis password
Copy file name to clipboardExpand all lines: doc/settings/database.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -928,6 +928,10 @@ see [Revert packaged PostgreSQL server to the previous version](#revert-packaged
928
928
If you are doing a fresh install on an environment that previously had GitLab installed on it and you are using a pinned PostgreSQL version, first make
929
929
sure that any folders that relate to PostgreSQL are deleted and that there are no PostgreSQL processes running on the instance.
930
930
931
+
## Provide sensitive data configuration to GitLab Rails without plain text storage
932
+
933
+
For more information, see the example in [configuration documentation](../settings/configuration.md#provide-the-postgresql-user-password-to-gitlab-rails).
934
+
931
935
### Troubleshooting
932
936
933
937
#### Set `default_transaction_isolation` into `read committed`
0 commit comments