Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

docs: Clarify how dev-secrets.conf works more.

Tim Abbottd690640e6593
diff --git a/docs/development/authentication.md b/docs/development/authentication.md
index 1b020ee2136..0b09041ed92 100644
--- a/docs/development/authentication.md
+++ b/docs/development/authentication.md
@@ -13,12 +13,13 @@ development environment is provide secret keys so that you can go
through the real flow.
The steps to do this are a variation of the steps discussed in the
-production docs and `docs/prod_settings_template.py`. The main
-differences here are driven by the fact that `dev_settings.py` is in
-Git, so it can be inconvenient to put secrets there. As a result, in
-the development environment, we allow providing secret keys in the
-untracked file `zproject/dev-secrets.conf`, using the standard
-lower-case naming convention in that file.
+production documentation, including the comments in
+`zproject/prod_settings_template.py`. The differences here are driven
+by the fact that `dev_settings.py` is in Git, so it is inconvenient
+for local [settings configuration](../subsystems/settings.md). As a
+result, in the development environment, we allow setting certain
+settings in the untracked file `zproject/dev-secrets.conf` (which is
+also serves as `/etc/zulip/zulip-secrets.conf`).
Below, we document the procedure for each of the major authentication
methods supported by Zulip.
diff --git a/docs/subsystems/settings.md b/docs/subsystems/settings.md
index ae0da5fe3b5..7dfd96b2414 100644
--- a/docs/subsystems/settings.md
+++ b/docs/subsystems/settings.md
@@ -87,10 +87,18 @@ In a production environment, we have:
In a development environment, we have `zproject/settings.py`, and
additionally:
-* `zproject/dev_settings.py` has the settings for the Zulip development
- environment; it mostly just imports `prod_settings_template.py`.
-
-* `zproject/dev-secrets.conf` replaces `/etc/zulip/zulip-secrets.conf`.
+* `zproject/dev_settings.py` has the custom settings for the Zulip development
+ environment; these are set after importing `prod_settings_template.py`.
+
+* `zproject/dev-secrets.conf` replaces
+ `/etc/zulip/zulip-secrets.conf`, and is not tracked by Git. This
+ allows you to configure your development environment to support
+ features like [authentication
+ options](../development/authentication.md) that require secrets to
+ work. It is also used to set certain settings that in production
+ belong in `/etc/zulip/settings.py`, e.g. `SOCIAL_AUTH_GITHUB_KEY`.
+ You can see a full list with `git grep development_only=True`, or
+ add additional settings of this form if needed.
* `zproject/test_settings.py` imports everything from
`zproject/settings.py` and `zproject/test_extra_settings.py`.