Skip to content

Commit 010d493

Browse files
authored
Merge pull request #2757 from dolthub/gitbook-dev
doltlab v2.5.2
2 parents a02e94e + 22913f1 commit 010d493

5 files changed

Lines changed: 55 additions & 0 deletions

File tree

packages/doltlab/content/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
- [Configuration file reference](reference/installer/configuration-file.md)
3636
- [Command line reference](reference/installer/cli.md)
3737
- [Release Notes](reference/release-notes/README.md)
38+
- [v2.5.2](reference/release-notes/v2.5.2.md)
3839
- [v2.5.1](reference/release-notes/v2.5.1.md)
3940
- [v2.5.0](reference/release-notes/v2.5.0.md)
4041
- [v2.4.7](reference/release-notes/v2.4.7.md)

packages/doltlab/content/reference/installer/cli.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@ _Boolean_. If true will generate a script to install DoltLab's dependencies on C
5454

5555
_String_. Absolute path to `installer` configuration file. By default, the `installer` will look for `installer_config.yaml` in its same directory.
5656

57+
## cors-origin
58+
59+
_String_. Additional allowed CORS origin to include in DoltLab's Envoy-generated CORS policies. Can be supplied multiple times.
60+
61+
If any `--cors-origin` flags are supplied, they override `services.doltlabenvoy.cors_allowed_origins` from the configuration file.
62+
63+
To allow **all** origins, supply `--cors-origin="*"` (or `--cors-origin=".*"`).
64+
65+
Configuration file equivalent [cors_allowed_origins](./configuration-file.md#doltlabenvoy-cors-allowed-origins).
66+
5767
## custom-color-rgb-accent-1
5868

5969
_String_. Supply a comma-separated RGB value for `accent_1`, DoltLab Enterprise only.

packages/doltlab/content/reference/installer/configuration-file.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ services:
2121
constraints: ["node.labels.doltlabenvoy == true"]
2222
preferences:
2323
- spread: "nodes.labels.doltlabenvoy"
24+
cors_allowed_origins:
25+
# Wildcard: set to "*" or ".*" to allow all origins.
26+
# - "*"
27+
- "https://example.com"
28+
- "http://localhost:3000"
2429
doltlabdb:
2530
host: "127.0.0.1"
2631
port: 3306
@@ -1001,6 +1006,7 @@ _Dictionary_. Configuration options for `doltlabenvoy`.
10011006

10021007
- [replicas](#doltlabenvoy-replicas)
10031008
- [placement](#doltlabenvoy-placement)
1009+
- [cors_allowed_origins](#doltlabenvoy-cors-allowed-origins)
10041010

10051011
<h4 id="doltlabenvoy-replicas">replicas</h4>
10061012

@@ -1057,6 +1063,28 @@ services:
10571063

10581064
Command line equivalent [doltlabenvoy-placement-preferences-spread](./cli.md#doltlabenvoy-placement-preferences-spread).
10591065

1066+
<h4 id="doltlabenvoy-cors-allowed-origins">cors_allowed_origins</h4>
1067+
1068+
_String_ _Array_. Additional CORS allowed origins to include in DoltLab's Envoy-generated CORS policies. _Optional_.
1069+
1070+
These origins are **added** to the defaults for the configured DoltLab host (`http://<host>` and `https://<host>`), and apply to DoltLab HTTP APIs such as `/api/v1alpha1`.
1071+
1072+
To allow **all** origins, set this list to include `"*"` or `".*"`. When the wildcard is present, the installer enables an allow-all CORS policy and ignores any other entries.
1073+
1074+
Each entry must be a full origin (scheme + host, optional port) and **must not** include a path, query, or fragment. Trailing `/` is ignored.
1075+
1076+
```yaml
1077+
# example installer_config.yaml
1078+
services:
1079+
doltlabenvoy:
1080+
cors_allowed_origins:
1081+
- "*" # allow all origins
1082+
- "https://example.com"
1083+
- "http://localhost:3000"
1084+
```
1085+
1086+
Command line equivalent [cors-origin](./cli.md#cors-origin).
1087+
10601088
## default_user
10611089

10621090
_Dictionary_. Configuration options for DoltLab's default user. _Required_.

packages/doltlab/content/reference/release-notes/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ DoltLab is currently closed-source, but the [dolthub/doltlab-issues](https://git
77
The following is a list of release notes for available DoltLab versions >= `v2.0.0`. DoltLab and DoltHub share the same source code. For this reason, we list fixes related to DoltLab issues in the `DoltLab Features/Bug Fixes` section of the release notes, and fixes corresponding to DoltHub issuers in the `DoltLab Features/Bug Fixes` section.
88

99

10+
- [DoltLab v2.5.2](./v2.5.2.md)
1011
- [DoltLab v2.5.1](./v2.5.1.md)
1112
- [DoltLab v2.5.0](./v2.5.0.md)
1213
- [DoltLab v2.4.7](./v2.4.7.md)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: DoltLab v2.5.2 Release Notes
3+
---
4+
5+
Download at [https://doltlab-releases.s3.us-east-1.amazonaws.com/linux/amd64/doltlab-v2.5.2.zip](https://doltlab-releases.s3.us-east-1.amazonaws.com/linux/amd64/doltlab-v2.5.2.zip)
6+
7+
Service images can be downloaded at [https://doltlab-releases.s3.us-east-1.amazonaws.com/linux/amd64/doltlab-service-images-v2.5.2.zip](https://doltlab-releases.s3.us-east-1.amazonaws.com/linux/amd64/doltlab-service-images-v2.5.2.zip)
8+
9+
## DoltLab Features/Bug Fixes
10+
* Add CORS Policy to `doltlabui` to allow DoltLab API access from web apps.
11+
* Support custom CORS origins in `installer_config.yaml`.
12+
* Bump Dolt version in Jobs to v1.81.1.
13+
14+
## DoltHub Features/Bug Fixes
15+
* Misc. UI design changes and bug fixes.

0 commit comments

Comments
 (0)