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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [Unreleased]
9
9
10
+
### Changed
11
+
- Changed the workspace "Access" page to a "Security" page. [#1303](https://github.com/sourcebot-dev/sourcebot/pull/1303)
12
+
13
+
### Added
14
+
- Added the ability to configure email code and credentials login from the security settings. [#1303](https://github.com/sourcebot-dev/sourcebot/pull/1303)
15
+
- Added a list of configured SSO providers from the security settings. [#1303](https://github.com/sourcebot-dev/sourcebot/pull/1303)
Copy file name to clipboardExpand all lines: docs/docs/configuration/auth/access-settings.mdx
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,11 @@ By default, Sourcebot requires new members to be approved by an owner of the dep
11
11
to configure this behavior.
12
12
13
13
### Configuration
14
-
Member approval can be configured by an owner of the deployment by navigating to **Settings -> Access**, or by setting the `REQUIRE_APPROVAL_NEW_MEMBERS` environment variable. When the environment variable is set, the UI toggle is disabled and the setting is controlled by the environment variable.
14
+
Member approval can be configured by an owner of the deployment by navigating to **Settings -> Security**.
<imgsrc="/images/member_approval_toggle.png"alt="Require approval for new members toggle in Settings → Access" />
18
+
</Frame>
17
19
18
20
### Managing Requests
19
21
@@ -27,7 +29,9 @@ Owners can see and manage all pending join requests by navigating to **Settings
27
29
If member approval is required, an owner of the deployment can enable an invite link. When enabled, users
28
30
can use this invite link to register and be automatically added to the organization without approval:
29
31
30
-

32
+
<Frame>
33
+
<imgsrc="/images/invite_link_toggle.png"alt="Enable invite links toggle in Settings → Access" />
34
+
</Frame>
31
35
32
36
33
37
# Anonymous access
@@ -36,6 +40,10 @@ can use this invite link to register and be automatically added to the organizat
36
40
37
41
By default, your Sourcebot deployment is gated with a login page. If you'd like users to access the deployment anonymously, you can enable anonymous access.
38
42
39
-
This can be enabled by navigating to **Settings -> Access** or by setting the `FORCE_ENABLE_ANONYMOUS_ACCESS` environment variable.
43
+
This can be enabled by navigating to **Settings -> Access**.
44
+
45
+
<Frame>
46
+
<imgsrc="/images/anonymous_access_toggle.png"alt="Enable anonymous access toggle in Settings → Access" />
47
+
</Frame>
40
48
41
49
When accessing Sourcebot anonymously, a user's permissions are limited to that of the [Guest](/docs/configuration/auth/roles-and-permissions) role.
Copy file name to clipboardExpand all lines: docs/docs/configuration/auth/providers.mdx
+9-10Lines changed: 9 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,19 +10,18 @@ If there's an authentication provider you'd like us to support, please [reach ou
10
10
# Core Authentication Providers
11
11
12
12
### Email / Password
13
-
---
14
-
Email / password authentication is enabled by default. It can be **disabled** by setting `AUTH_CREDENTIALS_LOGIN_ENABLED` to `false`.
13
+
Email / password authentication is enabled by default. You can toggle it from **Settings → Security** using the **Email login** setting.
15
14
16
-
### Email codes
17
-
---
18
-
Email codes are 6 digit codes sent to a provided email. Email codes are enabled when transactional emails are configured using the following environment variables:
Email codes are 6 digit codes sent to a provided email. Email codes are enabled when [transactional emails](/docs/configuration/transactional-emails) and the **Email code** setting is toggled from **Settings → Security**:
24
21
25
-
See [transactional emails](/docs/configuration/transactional-emails) for more details.
22
+
<Frame>
23
+
<imgsrc="/images/email_code_login_setting.png"alt="Email code login setting toggle in Settings → Security" />
Copy file name to clipboardExpand all lines: docs/docs/configuration/environment-variables.mdx
-6Lines changed: 0 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,6 @@ The following environment variables allow you to configure your Sourcebot deploy
10
10
11
11
| Variable | Default | Description |
12
12
| :------- | :------ | :---------- |
13
-
|`AUTH_CREDENTIALS_LOGIN_ENABLED`|`true`| <p>Enables/disables authentication with basic credentials. Username and passwords are stored encrypted at rest within the postgres database. Checkout the [auth docs](/docs/configuration/auth/authentication) for more info</p> |
14
-
|`AUTH_EMAIL_CODE_LOGIN_ENABLED`|`false`| <p>Enables/disables authentication with a login code that's sent to a users email. `SMTP_CONNECTION_URL` and `EMAIL_FROM_ADDRESS` must also be set. Checkout the [auth docs](/docs/configuration/auth/authentication) for more info </p> |
15
13
|`AUTH_SECRET`**(required)**| - | <p>Used to validate login session cookies. Genearte one with `openssl rand -base64 33`.</p> |
16
14
|`AUTH_SESSION_MAX_AGE_SECONDS`|`2592000` (30 days) | <p>Relative time from now in seconds when to expire the session.</p> |
17
15
|`AUTH_SESSION_UPDATE_AGE_SECONDS`|`86400` (1 day) | <p>How often the session should be updated in seconds. If set to `0`, session is updated every time.</p> |
@@ -24,8 +22,6 @@ The following environment variables allow you to configure your Sourcebot deploy
24
22
|`DATA_DIR`|`/data`| <p>The directory within the container to store all persistent data. Typically, this directory will be volume mapped such that data is persisted across container restarts (e.g., `docker run -v $(pwd):/data`)</p> |
25
23
|`DATABASE_URL`**(required)**| - | <p>Connection string of your Postgres database, e.g. `postgresql://user:password@host:5432/sourcebot`.</p><p>If you'd like to use a non-default schema, you can provide it as a parameter in the database url.</p><p>You can also use `DATABASE_HOST`, `DATABASE_USERNAME`, `DATABASE_PASSWORD`, `DATABASE_NAME`, and `DATABASE_ARGS` to construct the database url.</p> |
26
24
|`EMAIL_FROM_ADDRESS`|`-`| <p>The email address that transactional emails will be sent from. See [this doc](/docs/configuration/transactional-emails) for more info.</p> |
27
-
| `FORCE_ENABLE_ANONYMOUS_ACCESS` | `false` | <p>When enabled, [anonymous access](/docs/configuration/auth/access-settings#anonymous-access) to the organization will always be enabled</p>
28
-
| `REQUIRE_APPROVAL_NEW_MEMBERS` | - | <p>When set, controls whether new users require approval before accessing your deployment. If not set, the setting can be configured via the UI. See [member approval](/docs/configuration/auth/access-settings#member-approval) for more info.</p>
29
25
|`REDIS_URL`**(required)**| - | <p>Connection string of your Redis instance, e.g. `redis://host:6379`.</p><p>To enable TLS, see [this doc](/docs/deployment/infrastructure/redis#tls).</p> |
30
26
|`REDIS_REMOVE_ON_COMPLETE`|`0`| <p>Controls how many completed jobs are allowed to remain in Redis queues</p> |
31
27
|`REDIS_REMOVE_ON_FAIL`|`100`| <p>Controls how many failed jobs are allowed to remain in Redis queues</p> |
@@ -54,10 +50,8 @@ The following environment variables allow you to configure your Sourcebot deploy
54
50
|`AUTH_EE_GCP_IAP_AUDIENCE`| - | <p>The GCP IAP audience to use when verifying JWT tokens. Must be set to enable GCP IAP JIT provisioning</p> |
|`PERMISSION_SYNC_REPO_DRIVEN_ENABLED`|`true`| <p>Enables/disables [repo-driven permission syncing](/docs/features/permission-syncing#how-it-works). Only applies when `PERMISSION_SYNC_ENABLED` is `true`.</p> |
57
-
|`EXPERIMENT_EE_PERMISSION_SYNC_ENABLED`**(deprecated)**|`false`| <p>Deprecated. Use `PERMISSION_SYNC_ENABLED` instead.</p> |
58
53
|`AUTH_EE_ALLOW_EMAIL_ACCOUNT_LINKING`|`true`| <p>When enabled, different SSO accounts with the same email address will automatically be linked.</p> |
59
54
|`DISABLE_API_KEY_CREATION_FOR_NON_OWNER_USERS`|`false`| <p>When enabled, only organization owners can create API keys. Non-owner members will receive a `403` error if they attempt to create one.</p> |
60
-
|`EXPERIMENT_DISABLE_API_KEY_CREATION_FOR_NON_ADMIN_USERS`**(deprecated)**|`false`| <p>Deprecated. Use `DISABLE_API_KEY_CREATION_FOR_NON_OWNER_USERS` instead.</p> |
61
55
|`DISABLE_API_KEY_USAGE_FOR_NON_OWNER_USERS`|`false`| <p>When enabled, only organization owners can create or use API keys. Non-owner members will receive a `403` error if they attempt to create or authenticate with an API key. If you only want to restrict creation (not usage), use `DISABLE_API_KEY_CREATION_FOR_NON_OWNER_USERS` instead.</p> |
0 commit comments