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
-[**Breaking Change**] Authentication is now required by default. Notes:
24
24
- When setting up your instance, email / password login will be the default authentication provider.
25
-
- The first user that logs into the instance is given the `owner` role. ([docs](https://docs.sourcebot.dev/docs/more/roles-and-permissions)).
25
+
- The first user that logs into the instance is given the `owner` role. ([docs](https://docs.sourcebot.dev/docs/configuration/auth/roles-and-permissions)).
26
26
- Subsequent users can request to join the instance. The `owner` can approve / deny requests to join the instance via `Settings` > `Members` > `Pending Requests`.
27
27
- If a user is approved to join the instance, they are given the `member` role.
28
-
- Additional login providers, including email links and SSO, can be configured with additional environment variables. ([docs](https://docs.sourcebot.dev/docs/configuration/authentication)).
28
+
- Additional login providers, including email links and SSO, can be configured with additional environment variables. ([docs](https://docs.sourcebot.dev/docs/configuration/auth/overview)).
29
29
- Clicking on a search result now takes you to the `/browse` view. Files can still be previewed by clicking the "Preview" button or holding `Cmd` / `Ctrl` when clicking on a search result. [#315](https://github.com/sourcebot-dev/sourcebot/pull/315)
30
30
31
31
### Added
32
-
-[Sourcebot EE] Added search-based code navigation, allowing you to jump between symbol definition and references when viewing source files. [Read the documentation](https://docs.sourcebot.dev/docs/search/code-navigation). [#315](https://github.com/sourcebot-dev/sourcebot/pull/315)
32
+
-[Sourcebot EE] Added search-based code navigation, allowing you to jump between symbol definition and references when viewing source files. [Read the documentation](https://docs.sourcebot.dev/docs/features/code-navigation). [#315](https://github.com/sourcebot-dev/sourcebot/pull/315)
- Added AI code review agent [#298](https://github.com/sourcebot-dev/sourcebot/pull/298). Checkout the [docs](https://docs.sourcebot.dev/docs/agents/review-agent) for more information.
47
+
- Added AI code review agent [#298](https://github.com/sourcebot-dev/sourcebot/pull/298). Checkout the [docs](https://docs.sourcebot.dev/docs/features/agents/review-agent) for more information.
48
48
49
49
### Fixed
50
50
- Fixed issue with repos appearing in the carousel when they fail indexing for the first time. [#305](https://github.com/sourcebot-dev/sourcebot/pull/305)
@@ -122,11 +122,11 @@ Sourcebot v3 is here and brings a number of structural changes to the tool's fou
122
122
### Added
123
123
- Added parallelized repo indexing and connection syncing via Redis & BullMQ. See the [architecture overview](https://docs.sourcebot.dev/docs/overview#architecture).
124
124
- Added repo indexing progress indicators in the navbar.
125
-
- Added authentication support via OAuth or email/password. For instructions on enabling, see [this doc](https://docs.sourcebot.dev/docs/configuration/authentication).
126
-
- Added the following UI for managing your deployment when **[auth is enabled](https://docs.sourcebot.dev/docs/configuration/authentication)**:
125
+
- Added authentication support via OAuth or email/password. For instructions on enabling, see [this doc](https://docs.sourcebot.dev/docs/configuration/auth/overview).
126
+
- Added the following UI for managing your deployment when **[auth is enabled](https://docs.sourcebot.dev/docs/configuration/auth/overview)**:
127
127
- connection management: create and manage your JSON configs via a integrated web-editor.
128
128
- secrets: import personal access tokens (PAT) into Sourcebot (AES-256 encrypted). Reference secrets in your connection config by name.
129
-
- team & invite management: invite users to your instance to give them access. Configure team [roles & permissions](https://docs.sourcebot.dev/docs/more/roles-and-permissions).
129
+
- team & invite management: invite users to your instance to give them access. Configure team [roles & permissions](https://docs.sourcebot.dev/docs/configuration/auth/roles-and-permissions).
130
130
- Added multi-tenancy support. See [this doc](https://docs.sourcebot.dev/self-hosting/more/tenancy).
Copy file name to clipboardExpand all lines: docs/docs/configuration/auth/overview.mdx
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,10 @@
1
1
---
2
-
title: Authentication
3
-
sidebarTitle: Authentication
2
+
title: Overview
4
3
---
5
4
6
-
<Warning>Make sure the `AUTH_URL` environment variable is [configured correctly](/self-hosting/configuration) when using Sourcebot behind a domain.</Warning>
7
-
8
5
Sourcebot has built-in authentication that gates access to your organization. OAuth, email codes, and email / password are supported.
9
6
10
-
The first account that's registered on a Sourcebot deployment is made the owner. All other users who register must be [approved](/docs/configuration/authentication#approving-new-members) by the owner.
7
+
The first account that's registered on a Sourcebot deployment is made the owner. All other users who register must be [approved](/docs/configuration/auth/overview#approving-new-members) by the owner.
11
8
12
9

13
10
@@ -16,7 +13,7 @@ The first account that's registered on a Sourcebot deployment is made the owner.
16
13
17
14
All account registrations after the first account must be approved by the owner. The owner can see all join requests by going into **Settings -> Members**.
18
15
19
-
If you have an [enterprise license](/docs/license-key), you can enable [AUTH_EE_ENABLE_JIT_PROVISIONING](/docs/configuration/authentication#enterprise-authentication-providers) to
16
+
If you have an [enterprise license](/docs/license-key), you can enable [AUTH_EE_ENABLE_JIT_PROVISIONING](/docs/configuration/auth/overview#enterprise-authentication-providers) to
20
17
have Sourcebot accounts automatically created and approved on registration.
21
18
22
19
You can setup emails to be sent when new join requests are created/approved by configurating [transactional emails](/docs/configuration/transactional-emails)
@@ -43,6 +40,8 @@ See [transactional emails](/docs/configuration/transactional-emails) for more de
43
40
44
41
## Enterprise Authentication Providers
45
42
43
+
<Warning>If you're deploying Sourcebot behind a domain, you must set the [AUTH_URL](/docs/configuration/environment-variables) environment variable to use these providers.</Warning>
44
+
46
45
The following authentication providers require an [enterprise license](/docs/license-key) to be enabled.
47
46
48
47
By default, a new user registering using these providers must have their join request accepted by the owner of the organization to join. To allow a user to join automatically when
Copy file name to clipboardExpand all lines: docs/docs/configuration/environment-variables.mdx
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,18 @@
1
1
---
2
-
title: Environment Variables
3
-
sidebarTitle: Environment Variables
2
+
title: Environment variables
3
+
sidebarTitle: Environment variables
4
+
mode: "wide"
4
5
---
5
6
6
-
<Note>This page provides a detailed reference of all environment variables supported by Sourcebot. If you're just looking to get up and running, we recommend starting with the [getting started](/self-hosting/overview)guide instead.</Note>
7
+
<Note>This page provides a detailed reference of all environment variables supported by Sourcebot. If you're just looking to get up and running, we recommend starting with the [deployment guide](/docs/deployment-guide) instead.</Note>
7
8
8
9
### Core Environment Variables
9
10
The following environment variables allow you to configure your Sourcebot deployment.
10
11
11
12
| Variable | Default | Description |
12
13
| :------- | :------ | :---------- |
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/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/authentication) for more info </p> |
14
+
|`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/overview) for more info</p> |
15
+
|`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/overview) for more info </p> |
15
16
|`AUTH_SECRET`| Automatically generated at startup if no value is provided. Generated using `openssl rand -base64 33`| <p>Used to validate login session cookies</p> |
16
17
|`AUTH_URL`| - | <p>URL of your Sourcebot deployment, e.g., `https://example.com` or `http://localhost:3000`.</p> |
17
18
|`CONFIG_PATH`|`-`| <p>The container relative path to the declerative configuration file. See [this doc](/docs/configuration/declarative-config) for more info.</p> |
@@ -26,7 +27,7 @@ The following environment variables allow you to configure your Sourcebot deploy
26
27
|`SMTP_CONNECTION_URL`|`-`| <p>The url to the SMTP service used for sending transactional emails. See [this doc](/docs/configuration/transactional-emails) for more info.</p> |
27
28
|`SOURCEBOT_ENCRYPTION_KEY`| Automatically generated at startup if no value is provided. Generated using `openssl rand -base64 24`| <p>Used to encrypt connection secrets and generate API keys.</p> |
28
29
|`SOURCEBOT_LOG_LEVEL`|`info`| <p>The Sourcebot logging level. Valid values are `debug`, `info`, `warn`, `error`, in order of severity.</p> |
29
-
|`SOURCEBOT_TELEMETRY_DISABLED`|`false`| <p>Enables/disables telemetry collection in Sourcebot. See [this doc](/self-hosting/security/telemetry) for more info.</p> |
30
+
|`SOURCEBOT_TELEMETRY_DISABLED`|`false`| <p>Enables/disables telemetry collection in Sourcebot. See [this doc](/docs/overview.mdx#telemetry) for more info.</p> |
30
31
|`TOTAL_MAX_MATCH_COUNT`|`100000`| <p>The maximum number of matches per query</p> |
31
32
|`ZOEKT_MAX_WALL_TIME_MS`|`10000`| <p>The maximum real world duration (in milliseconds) per zoekt query</p> |
Copy file name to clipboardExpand all lines: docs/docs/configuration/tenancy.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ sidebarTitle: Multi tenancy
4
4
---
5
5
6
6
<Warning>If you're switching from single-tenant mode, delete the Sourcebot cache (the `.sourcebot` folder) before starting.</Warning>
7
-
<Warning>[Authentication](/docs/configuration/authentication) must be enabled to enable multi tenancy mode</Warning>
7
+
<Warning>[Authentication](/docs/configuration/auth/overview) must be enabled to enable multi tenancy mode</Warning>
8
8
Multi tenancy allows your Sourcebot deployment to have **multiple organizations**, each with their own set of members and repos. To enable multi tenancy mode, define an environment variable
9
9
named `SOURCEBOT_TENANCY_MODE` and set its value to `multi`. When multi tenancy mode is enabled:
0 commit comments