Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
13 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions docs/admin/code_hosts/aws_codecommit.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ AWS CodeCommit connections support the following configuration options, which ar

{/* SCHEMA_SYNC_START: admin/code_hosts/aws_codecommit.schema.json */}
{/* WARNING: This section is auto-generated during releases. Do not edit manually. */}
{/* Last updated: 2025-11-12T22:19:40Z via sourcegraph/[email protected] */}

{/* Last updated: 2025-11-25T00:35:31Z via sourcegraph/[email protected] */}
```json
{
// REQUIRED:
Expand Down Expand Up @@ -109,7 +108,6 @@ AWS CodeCommit connections support the following configuration options, which ar
"secretAccessKey": null
}
```

{/* SCHEMA_SYNC_END: admin/code_hosts/aws_codecommit.schema.json */}

## Setup steps for SSH connections to AWS CodeCommit repositories
Expand Down
6 changes: 2 additions & 4 deletions docs/admin/code_hosts/azuredevops.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,9 @@ Azure DevOps connections support the following configuration options, which are

{/* SCHEMA_SYNC_START: admin/code_hosts/azuredevops.schema.json */}
{/* WARNING: This section is auto-generated during releases. Do not edit manually. */}
{/* Last updated: 2025-11-12T22:19:39Z via sourcegraph/[email protected] */}

{/* Last updated: 2025-11-25T00:35:30Z via sourcegraph/[email protected] */}
```json
// Authentication alternatives: token OR windowsPassword
// Authentication alternatives: token OR windowsPassword

{
// A flag to enforce Azure DevOps repository access permissions
Expand Down Expand Up @@ -162,7 +161,6 @@ Azure DevOps connections support the following configuration options, which are
"windowsPassword": null
}
```

{/* SCHEMA_SYNC_END: admin/code_hosts/azuredevops.schema.json */}

## Webhooks
Expand Down
4 changes: 1 addition & 3 deletions docs/admin/code_hosts/bitbucket_cloud.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ Bitbucket Cloud connections support the following configuration options, which a

{/* SCHEMA_SYNC_START: admin/code_hosts/bitbucket_cloud.schema.json */}
{/* WARNING: This section is auto-generated during releases. Do not edit manually. */}
{/* Last updated: 2025-11-12T22:19:38Z via sourcegraph/[email protected] */}

{/* Last updated: 2025-11-25T00:35:29Z via sourcegraph/[email protected] */}
```json
{
// The workspace access token to use when authenticating with Bitbucket Cloud.
Expand Down Expand Up @@ -227,7 +226,6 @@ Bitbucket Cloud connections support the following configuration options, which a
"webhookSecret": null
}
```

{/* SCHEMA_SYNC_END: admin/code_hosts/bitbucket_cloud.schema.json */}

## Webhooks
Expand Down
10 changes: 5 additions & 5 deletions docs/admin/code_hosts/bitbucket_server.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,9 @@ Bitbucket Server / Bitbucket Data Center connections support the following confi

{/* SCHEMA_SYNC_START: admin/code_hosts/bitbucket_server.schema.json */}
{/* WARNING: This section is auto-generated during releases. Do not edit manually. */}
{/* Last updated: 2025-11-12T22:19:37Z via sourcegraph/[email protected] */}

{/* Last updated: 2025-11-25T00:35:28Z via sourcegraph/[email protected] */}
```json
// Authentication alternatives: token OR password
// Authentication alternatives: token OR password

{
// If non-null, enforces Bitbucket Server / Bitbucket Data Center repository permissions.
Expand Down Expand Up @@ -319,7 +318,9 @@ Bitbucket Server / Bitbucket Data Center connections support the following confi
// - [
// "?name=my-repo\u0026projectname=PROJECT\u0026visibility=private"
// ]
"repositoryQuery": ["none"],
"repositoryQuery": [
"none"
],

// A Bitbucket Server / Bitbucket Data Center personal access token with Read permissions. When using batch changes, the token needs Write permissions. Create one at https://[your-bitbucket-hostname]/plugins/servlet/access-tokens/add. Also set the corresponding "username" field.
// For Bitbucket Server / Bitbucket Data Center instances that don't support personal access tokens (Bitbucket Server / Bitbucket Data Center version 5.4 and older), specify user-password credentials in the "username" and "password" fields.
Expand All @@ -341,5 +342,4 @@ Bitbucket Server / Bitbucket Data Center connections support the following confi
}
}
```

{/* SCHEMA_SYNC_END: admin/code_hosts/bitbucket_server.schema.json */}
4 changes: 1 addition & 3 deletions docs/admin/code_hosts/gerrit.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ Gerrit connections support the following configuration options, which are specif

{/* SCHEMA_SYNC_START: admin/code_hosts/gerrit.schema.json */}
{/* WARNING: This section is auto-generated during releases. Do not edit manually. */}
{/* Last updated: 2025-11-12T22:19:41Z via sourcegraph/[email protected] */}

{/* Last updated: 2025-11-25T00:35:32Z via sourcegraph/[email protected] */}
```json
{
// If non-null, enforces Gerrit repository permissions. This requires that there is an item in the [site configuration json](https://sourcegraph.com/docs/admin/config/site_config#auth-providers) `auth.providers` field, of type "gerrit" with the same `url` field as specified in this `GerritConnection`.
Expand Down Expand Up @@ -187,5 +186,4 @@ Gerrit connections support the following configuration options, which are specif
"username": null
}
```

{/* SCHEMA_SYNC_END: admin/code_hosts/gerrit.schema.json */}
10 changes: 5 additions & 5 deletions docs/admin/code_hosts/github.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -481,10 +481,9 @@ GitHub connections support the following configuration options, which are specif

{/* SCHEMA_SYNC_START: admin/code_hosts/github.schema.json */}
{/* WARNING: This section is auto-generated during releases. Do not edit manually. */}
{/* Last updated: 2025-11-12T22:19:35Z via sourcegraph/[email protected] */}

{/* Last updated: 2025-11-25T00:35:26Z via sourcegraph/[email protected] */}
```json
// Authentication alternatives: token OR gitHubAppDetails OR externalAccount OR useRandomExternalAccount
// Authentication alternatives: token OR gitHubAppDetails OR externalAccount OR useRandomExternalAccount

{
// If non-null, enforces GitHub repository permissions. This requires that there is an item in the [site configuration json](https://sourcegraph.com/docs/admin/config/site_config#auth-providers) `auth.providers` field, of type "github" with the same `url` field as specified in this `GitHubConnection`.
Expand Down Expand Up @@ -610,7 +609,9 @@ GitHub connections support the following configuration options, which are specif
// - All other values are executed as a GitHub advanced repository search as described at https://github.com/search/advanced. Example: to sync all repositories from the "sourcegraph" organization including forks the query would be "org:sourcegraph fork:true".
// If multiple values are provided, their results are unioned.
// If you need to narrow the set of mirrored repositories further (and don't want to enumerate it with a list or query set as above), create a new bot/machine user on GitHub or GitHub Enterprise that is only affiliated with the desired repositories.
"repositoryQuery": ["none"],
"repositoryQuery": [
"none"
],

// A GitHub personal access token. Create one for GitHub.com at https://github.com/settings/tokens/new?description=Sourcegraph (for GitHub Enterprise, replace github.com with your instance's hostname). See https://sourcegraph.com/docs/admin/code_hosts/github#github-api-access for which scopes are required for which use cases.
"token": null,
Expand All @@ -637,5 +638,4 @@ GitHub connections support the following configuration options, which are specif
"webhooks": null
}
```

{/* SCHEMA_SYNC_END: admin/code_hosts/github.schema.json */}
8 changes: 4 additions & 4 deletions docs/admin/code_hosts/gitlab.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,7 @@ See [Internal rate limits](/admin/code_hosts/rate_limits#internal-rate-limits).

{/* SCHEMA_SYNC_START: admin/code_hosts/gitlab.schema.json */}
{/* WARNING: This section is auto-generated during releases. Do not edit manually. */}
{/* Last updated: 2025-11-12T22:19:36Z via sourcegraph/[email protected] */}

{/* Last updated: 2025-11-25T00:35:27Z via sourcegraph/[email protected] */}
```json
{
// If non-null, enforces GitLab repository permissions. This requires that there be an item in the `auth.providers` field of type "gitlab" with the same `url` field as specified in this `GitLabConnection`.
Expand Down Expand Up @@ -268,7 +267,9 @@ See [Internal rate limits](/admin/code_hosts/rate_limits#internal-rate-limits).
// "?membership=true\u0026search=foo",
// "groups/mygroup/projects"
// ]
"projectQuery": ["none"],
"projectQuery": [
"none"
],

// A list of projects to mirror from this GitLab instance. Supports including by name ({"name": "group/name"}) or by ID ({"id": 42}).
// Other example values:
Expand Down Expand Up @@ -327,7 +328,6 @@ See [Internal rate limits](/admin/code_hosts/rate_limits#internal-rate-limits).
"webhooks": null
}
```

{/* SCHEMA_SYNC_END: admin/code_hosts/gitlab.schema.json */}

## Native integration
Expand Down
4 changes: 1 addition & 3 deletions docs/admin/code_hosts/gitolite.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ To connect Gitolite to Sourcegraph:

{/* SCHEMA_SYNC_START: admin/code_hosts/gitolite.schema.json */}
{/* WARNING: This section is auto-generated during releases. Do not edit manually. */}
{/* Last updated: 2025-11-12T22:19:42Z via sourcegraph/[email protected] */}

{/* Last updated: 2025-11-25T00:35:32Z via sourcegraph/[email protected] */}
```json
{
// A list of repositories to never mirror from this Gitolite instance. Supports excluding by exact name ({"name": "foo"}).
Expand Down Expand Up @@ -73,5 +72,4 @@ To connect Gitolite to Sourcegraph:
"prefix": null
}
```

{/* SCHEMA_SYNC_END: admin/code_hosts/gitolite.schema.json */}
4 changes: 1 addition & 3 deletions docs/admin/code_hosts/other.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ Repositories must be listed individually:

{/* SCHEMA_SYNC_START: admin/code_hosts/other_external_service.schema.json */}
{/* WARNING: This section is auto-generated during releases. Do not edit manually. */}
{/* Last updated: 2025-11-12T22:19:44Z via sourcegraph/[email protected] */}

{/* Last updated: 2025-11-25T00:35:34Z via sourcegraph/[email protected] */}
```json
{
// A list of repositories to never mirror by name after applying repositoryPathPattern. Supports excluding by exact name ({"name": "myrepo"}) or regular expression ({"pattern": ".*secret.*"}).
Expand Down Expand Up @@ -111,5 +110,4 @@ Repositories must be listed individually:
"url": null
}
```

{/* SCHEMA_SYNC_END: admin/code_hosts/other_external_service.schema.json */}
4 changes: 1 addition & 3 deletions docs/admin/code_hosts/phabricator.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ The Sourcegraph instance's site admin must [update the `corsOrigin` site config

{/* SCHEMA_SYNC_START: admin/code_hosts/phabricator.schema.json */}
{/* WARNING: This section is auto-generated during releases. Do not edit manually. */}
{/* Last updated: 2025-11-12T22:19:43Z via sourcegraph/[email protected] */}

{/* Last updated: 2025-11-25T00:35:33Z via sourcegraph/[email protected] */}
```json
{
// SSH cipher to use when cloning via SSH. Must be a valid choice from `ssh -Q cipher`.
Expand All @@ -102,5 +101,4 @@ The Sourcegraph instance's site admin must [update the `corsOrigin` site config
"url": null
}
```

{/* SCHEMA_SYNC_END: admin/code_hosts/phabricator.schema.json */}
6 changes: 3 additions & 3 deletions docs/admin/config/settings.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ Settings options and their default values are shown below.

{/* SCHEMA_SYNC_START: admin/config/settings.schema.json */}
{/* WARNING: This section is auto-generated during releases. Do not edit manually. */}
{/* Last updated: 2025-11-12T22:19:35Z via sourcegraph/[email protected] */}

{/* Last updated: 2025-11-25T00:35:25Z via sourcegraph/[email protected] */}
```json
{

//////////////////////////////////////////////////////////////
// General Configuration
//////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -187,9 +187,9 @@ Settings options and their default values are shown below.

// Enables default site wide search context. Only admins can set this. Individual users can override with their own search context.
"siteWideSearchContext": null

}
```

{/* SCHEMA_SYNC_END: admin/config/settings.schema.json */}

## Additional details on settings
Expand Down
29 changes: 24 additions & 5 deletions docs/admin/config/site_config.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ All site configuration options and their default values are shown below.

{/* SCHEMA_SYNC_START: admin/config/site.schema.json */}
{/* WARNING: This section is auto-generated during releases. Do not edit manually. */}
{/* Last updated: 2025-11-12T22:19:34Z via sourcegraph/[email protected] */}

{/* Last updated: 2025-11-25T00:35:24Z via sourcegraph/[email protected] */}
```json
{

//////////////////////////////////////////////////////////////
// General Configuration
//////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -667,6 +667,7 @@ All site configuration options and their default values are shown below.
"retention": "72h"
},


//////////////////////////////////////////////////////////////
// Authentication & Authorization
//////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -713,7 +714,13 @@ All site configuration options and their default values are shown below.
"allow": "all-users-create",
"allowNoExpiration": false,
"defaultExpirationDays": 90,
"expirationOptionDays": [7, 14, 30, 60, 90]
"expirationOptionDays": [
7,
14,
30,
60,
90
]
},

// IP allowlist for access to the Sourcegraph instance. If set, only requests from these IP addresses will be allowed. By default client IP is infered connected client IP address, and you may configure to use a request header to determine the user IP.
Expand Down Expand Up @@ -805,6 +812,7 @@ All site configuration options and their default values are shown below.
// When true, site admins will only be able to see private code they have access to via our authz system.
"authz.enforceForSiteAdmins": false,


//////////////////////////////////////////////////////////////
// Security & Encryption
//////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -836,6 +844,7 @@ All site configuration options and their default values are shown below.
"webhookLogKey": null
},


//////////////////////////////////////////////////////////////
// AI & Completions
//////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -872,6 +881,7 @@ All site configuration options and their default values are shown below.
"user": null
},


//////////////////////////////////////////////////////////////
// Executors
//////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -921,6 +931,7 @@ All site configuration options and their default values are shown below.
// - "4.1.0"
"executors.srcCLIImageTag": null,


//////////////////////////////////////////////////////////////
// Git & Repository Management
//////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -984,7 +995,13 @@ All site configuration options and their default values are shown below.
// "size": 1000
// }
"gitRecorder": {
"ignoredGitCommands": ["show", "rev-parse", "log", "diff", "ls-tree"],
"ignoredGitCommands": [
"show",
"rev-parse",
"log",
"diff",
"ls-tree"
],
"repos": null,
"size": 10000
},
Expand All @@ -1007,6 +1024,7 @@ All site configuration options and their default values are shown below.
// Disk usage threshold at which to display warning notification. Value is a percentage.
"gitserver.diskUsageWarningThreshold": 90,


//////////////////////////////////////////////////////////////
// Branding & UI
//////////////////////////////////////////////////////////////
Expand All @@ -1033,6 +1051,7 @@ All site configuration options and their default values are shown below.
"light": null
},


//////////////////////////////////////////////////////////////
// Observability & Monitoring
//////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -1138,9 +1157,9 @@ All site configuration options and their default values are shown below.
"type": "opentelemetry",
"urlTemplate": null
}

}
```

{/* SCHEMA_SYNC_END: admin/config/site.schema.json */}

#### Known bugs
Expand Down
4 changes: 1 addition & 3 deletions docs/admin/repo/perforce.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,7 @@ With this setting, Sourcegraph will ignore any rules with a host other than `*`,

{/* SCHEMA_SYNC_START: admin/code_hosts/perforce.schema.json */}
{/* WARNING: This section is auto-generated during releases. Do not edit manually. */}
{/* Last updated: 2025-11-12T22:19:45Z via sourcegraph/[email protected] */}

{/* Last updated: 2025-11-25T00:35:35Z via sourcegraph/[email protected] */}
```json
{
// If non-null, enforces Perforce depot permissions.
Expand Down Expand Up @@ -288,7 +287,6 @@ With this setting, Sourcegraph will ignore any rules with a host other than `*`,
"repositoryPathPattern": "{depot}"
}
```

{/* SCHEMA_SYNC_END: admin/code_hosts/perforce.schema.json */}

## Known issues and limitations
Expand Down