Skip to content

Commit a10b592

Browse files
committed
Merge branch 'main' of github.com:coder/docs into spike/sql-prom-stats
2 parents 20c1a9e + aa7fe91 commit a10b592

File tree

4 files changed

+109
-1
lines changed

4 files changed

+109
-1
lines changed

changelog/1.37.0.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
title: "1.37.0"
3+
description: "Released on 11/23/2022"
4+
---
5+
6+
### Breaking changes ❗
7+
8+
- infra: Workspace statistics were previously stored in a table
9+
`environment_stats`. This table is removed in this release. Downgrading from
10+
this version to an older version may require manual steps.
11+
12+
### Features ✨
13+
14+
- infra: The database schema name used by Coder can now be changed by setting
15+
the `DB_SEARCH_STRING` environment variable.
16+
- web: The list of organization workspaces is now paginated.
17+
- infra: The internal bridge network used by CVMs can now be configured under
18+
the workspace provider settings page.
19+
20+
### Bug fixes 🐛
21+
22+
- infra: Fixed an issue where workspace builds would fail due to a missing
23+
`podSecurityContext`.
24+
- infra: Fixed an issue where CVMs would not have the correct hostname set.
25+
- web: Fixed an issue where organizations were not sorted alphabetically in the
26+
UI.
27+
- web: Improved error messaging when importing an image fails.
28+
- web: Fixed an issue where changing settings under **Admin** would not show up
29+
correctly in audit logs.
30+
- infra: Fixed an issue where Coder services would incorrectly leave out client
31+
TLS credentials when communicating with GitLab.
32+
- infra: Fixed a memory leak that occurs when attempting to update an image with
33+
invalid stored credentials.
34+
- infra: Coder will now propagate its `http_proxy`, `https_proxy`, and
35+
`no_proxy` environment variables when building workspaces. This fixes issues
36+
when building CVM-enabled workspaces where the workspace image must be
37+
accessed through a HTTP proxy.
38+
39+
### Security updates 🔐
40+
41+
- infra: Updates `code-server` to `4.8.3` which includes Visual Studio Code
42+
version `1.72.1`. This mitigates `CVE-2022-36067`.
43+
- infra: Fixed an issue where ordinary users could obtain admin-level
44+
credentials from the Coder API.

manifest.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
{
2-
"versions": ["v1.36", "v1.35", "v1.34", "v1.33", "v1.32", "v1.31", "v1.30"],
2+
"versions": [
3+
"v1.37",
4+
"v1.36",
5+
"v1.35",
6+
"v1.34",
7+
"v1.33",
8+
"v1.32",
9+
"v1.31",
10+
"v1.30"
11+
],
312
"routes": [
413
{
514
"path": "./index.md",
@@ -590,6 +599,9 @@
590599
"path": "./changelog/index.md",
591600
"icon_path": "./assets/images/icons/paper.svg",
592601
"children": [
602+
{
603+
"path": "./changelog/1.37.0.md"
604+
},
593605
{
594606
"path": "./changelog/1.36.0.md",
595607
"children": [

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
"*.md": [
4040
"markdownlint --config .markdownlint.jsonc --rules .markdownlint-rules --fix",
4141
"prettier --write"
42+
],
43+
"manifest.json": [
44+
"./scripts/validate-manifest.sh"
4245
]
4346
},
4447
"dependencies": {

scripts/validate-manifest.sh

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#!/usr/bin/env bash
2+
#
3+
# validate-manifest.sh [path/to/manifest.json]
4+
#
5+
# Dependencies: bash>=4.x jq tr sort uniq
6+
#
7+
# Description: Ensures consistency of versions specified in manifest.json.
8+
9+
set -euo pipefail
10+
11+
if [[ "${BASH_VERSINFO:-0}" -lt 4 ]]; then
12+
echo "This script requires at least bash version 4."
13+
exit 1
14+
fi
15+
16+
if ! command -v jq > /dev/null; then
17+
echo "This script requires jq to be available."
18+
exit 1
19+
fi
20+
21+
GIT_ROOT=$(cd "$(dirname "$0")" && git rev-parse --show-toplevel)
22+
MANIFEST_JSON_PATH=${1:-"${GIT_ROOT}/manifest.json"}
23+
24+
declare -a MANIFEST_VERSIONS
25+
declare -a ROUTE_VERSIONS
26+
27+
# Read the versions array in manifest.json
28+
readarray -t MANIFEST_VERSIONS < <(jq -r '
29+
.versions[]
30+
| capture("(?<v>[0-9]+\\.[0-9]+)")
31+
| .v' < "${MANIFEST_JSON_PATH}")
32+
33+
# Read all the child paths of changelog/index.md and extract major.minor version
34+
readarray -t ROUTE_VERSIONS < <(jq -r '
35+
.routes[]
36+
| select(.path == "./changelog/index.md")
37+
| .children[]
38+
| .path |
39+
capture("(?<v>[0-9]+\\.[0-9]+)")
40+
| .v' < "${MANIFEST_JSON_PATH}")
41+
42+
# Compare the two
43+
DIFF=$(echo "${MANIFEST_VERSIONS[@]}" "${ROUTE_VERSIONS[@]}" | tr ' ' '\n' | sort | uniq -u)
44+
if [[ -n $DIFF ]]; then
45+
echo "manifest.json: missing version for changelog(s): ${DIFF}"
46+
exit 1
47+
fi
48+
49+
exit 0

0 commit comments

Comments
 (0)