Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d79a7ad

Browse files
authored
docs: advise against shared CODER_CACHE_DIRECTORY dir usage in note (coder#14216)
1 parent f50e1d5 commit d79a7ad

File tree

5 files changed

+15
-11
lines changed

5 files changed

+15
-11
lines changed

cli/testdata/coder_server_--help.golden

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ OPTIONS:
2222
--cache-dir string, $CODER_CACHE_DIRECTORY (default: [cache dir])
2323
The directory to cache temporary files. If unspecified and
2424
$CACHE_DIRECTORY is set, it will be used for compatibility with
25-
systemd.
25+
systemd. This directory is NOT safe to be configured as a shared
26+
directory across coderd/provisionerd replicas.
2627

2728
--disable-owner-workspace-access bool, $CODER_DISABLE_OWNER_WORKSPACE_ACCESS
2829
Remove the permission for the 'owner' role to have workspace execution

cli/testdata/server-config.yaml.golden

+2-1
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,8 @@ updateCheck: false
414414
# (default: <unset>, type: bool)
415415
enableSwagger: false
416416
# The directory to cache temporary files. If unspecified and $CACHE_DIRECTORY is
417-
# set, it will be used for compatibility with systemd.
417+
# set, it will be used for compatibility with systemd. This directory is NOT safe
418+
# to be configured as a shared directory across coderd/provisionerd replicas.
418419
# (default: [cache dir], type: string)
419420
cacheDir: [cache dir]
420421
# Controls whether data will be stored in an in-memory database.

codersdk/deployment.go

+8-7
Original file line numberDiff line numberDiff line change
@@ -1977,13 +1977,14 @@ when required by your organization's security policy.`,
19771977
Annotations: serpent.Annotations{}.Mark(annotationExternalProxies, "true"),
19781978
},
19791979
{
1980-
Name: "Cache Directory",
1981-
Description: "The directory to cache temporary files. If unspecified and $CACHE_DIRECTORY is set, it will be used for compatibility with systemd.",
1982-
Flag: "cache-dir",
1983-
Env: "CODER_CACHE_DIRECTORY",
1984-
Default: DefaultCacheDir(),
1985-
Value: &c.CacheDir,
1986-
YAML: "cacheDir",
1980+
Name: "Cache Directory",
1981+
Description: "The directory to cache temporary files. If unspecified and $CACHE_DIRECTORY is set, it will be used for compatibility with systemd. " +
1982+
"This directory is NOT safe to be configured as a shared directory across coderd/provisionerd replicas.",
1983+
Flag: "cache-dir",
1984+
Env: "CODER_CACHE_DIRECTORY",
1985+
Default: DefaultCacheDir(),
1986+
Value: &c.CacheDir,
1987+
YAML: "cacheDir",
19871988
},
19881989
{
19891990
Name: "In Memory Database",

docs/cli/server.md

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

enterprise/cli/testdata/coder_server_--help.golden

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ OPTIONS:
2323
--cache-dir string, $CODER_CACHE_DIRECTORY (default: [cache dir])
2424
The directory to cache temporary files. If unspecified and
2525
$CACHE_DIRECTORY is set, it will be used for compatibility with
26-
systemd.
26+
systemd. This directory is NOT safe to be configured as a shared
27+
directory across coderd/provisionerd replicas.
2728

2829
--disable-owner-workspace-access bool, $CODER_DISABLE_OWNER_WORKSPACE_ACCESS
2930
Remove the permission for the 'owner' role to have workspace execution

0 commit comments

Comments
 (0)