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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@
5
5
1.[#6211](https://github.com/influxdata/chronograf/pull/6211): Harden secrets-at-rest protections for persisted source and server credentials using envelope encryption.
6
6
* Add startup migration for legacy plaintext secrets when a secrets master key is configured.
7
7
* Add `chronoctl` commands for master-key generation, rewrap, and disable workflows.
8
+
* Secrets encryption is supported only for BoltDB-backed deployments.
Copy file name to clipboardExpand all lines: cmd/chronoctl/README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ Available commands:
14
14
15
15
### Secrets Encryption Commands
16
16
17
-
Use these commands when Chronograf secret-at-rest encryption is enabled.
17
+
Use these commands when Chronograf secret-at-rest encryption is enabled with BoltDB storage.
18
18
19
19
##### Generate Secrets Master Key
20
20
Generate a base64-encoded 32-byte key:
@@ -58,12 +58,15 @@ After successful disable:
58
58
Important:
59
59
-`rewrap-secrets-master-key` changes only master-key wrapping and does not re-encrypt secret records.
60
60
-`disable-secrets-encryption` decrypts encrypted secrets and stores them as plaintext.
61
+
- Secrets encryption management supports BoltDB only; etcd-backed deployments should rely on etcd encryption-at-rest or platform-level disk encryption.
61
62
62
63
63
64
### Migrate
64
65
65
66
The `migrate` command allows you to migrate your chronograf configuration store. It is highly recommended that you make a backup of all databases involved before running a migration as there is no guarantee that there will be no data loss. When specifying an etcd endpoint, the URI must begin with `etcd://`. It is preferred that you prefix `bolt://` to an absolute path when specifying a local bolt db file, but a lone relative path is also accepted without the prefix. If there is authentication on etcd, use the standard URI format to define a username/password: `[scheme:][//[userinfo@]host][/]path`.
66
67
There is currently no cleanup for a failed migration, so keep that in mind before migrating to a db that contains other important data.
68
+
If migrating from an encrypted BoltDB, first run `disable-secrets-encryption`.
69
+
The `migrate` command does not initialize a secrets DEK and cannot read encrypted source or server secrets.
Copy file name to clipboardExpand all lines: server/server.go
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -151,8 +151,8 @@ type Server struct {
151
151
ReportingDisabledbool`short:"r" long:"reporting-disabled" description:"Disable reporting of usage stats (os,arch,version,cluster_id,uptime) once every 24hr" env:"REPORTING_DISABLED"`
152
152
CustomAutoRefreshstring`long:"custom-auto-refresh" description:"Adds custom auto refresh options using semicolon separated list of label=milliseconds pairs" env:"CUSTOM_AUTO_REFRESH"`
SecretsMasterKeystring`long:"secrets-master-key" description:"Base64-encoded 32-byte master key used to wrap/unwrap the data encryption key for secret-field encryption" env:"SECRETS_MASTER_KEY"`
155
-
SecretsMasterKeyFile flags.Filename`long:"secrets-master-key-file" description:"Path to file containing a base64-encoded 32-byte master key used to wrap/unwrap the data encryption key for secret-field encryption" env:"SECRETS_MASTER_KEY_FILE"`
154
+
SecretsMasterKeystring`long:"secrets-master-key" description:"Base64-encoded 32-byte master key used to wrap/unwrap the data encryption key for secret-field encryption (BoltDB storage only)" env:"SECRETS_MASTER_KEY"`
155
+
SecretsMasterKeyFile flags.Filename`long:"secrets-master-key-file" description:"Path to file containing a base64-encoded 32-byte master key used to wrap/unwrap the data encryption key for secret-field encryption (BoltDB storage only)" env:"SECRETS_MASTER_KEY_FILE"`
156
156
Basepathstring`short:"p" long:"basepath" description:"A URL path prefix under which all chronograf routes will be mounted. (Note: PREFIX_ROUTES has been deprecated. Now, if basepath is set, all routes will be prefixed with it.)" env:"BASE_PATH"`
157
157
ShowVersionbool`short:"v" long:"version" description:"Show Chronograf version info"`
returnnil, errors.New("--secrets-master-key/--secrets-master-key-file are supported only with BoltDB storage; remove them, or rely on etcd encryption-at-rest or platform-level disk encryption")
0 commit comments