Skip to content

Commit 02277a8

Browse files
committed
fixup! move cipher to dbcrypt package
1 parent 2b404d1 commit 02277a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

enterprise/cli/server.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515
"tailscale.com/types/key"
1616

1717
"github.com/coder/coder/v2/cli/clibase"
18+
"github.com/coder/coder/v2/coderd/database/dbcrypt"
1819
"github.com/coder/coder/v2/cryptorand"
1920
"github.com/coder/coder/v2/enterprise/audit"
2021
"github.com/coder/coder/v2/enterprise/audit/backends"
@@ -75,7 +76,7 @@ func (r *RootCmd) server() *clibase.Cmd {
7576
if err != nil {
7677
return nil, nil, xerrors.Errorf("decode external-token-encryption-key: %w", err)
7778
}
78-
o.ExternalTokenEncryption, err = cryptorand.CipherAES256(key)
79+
o.ExternalTokenEncryption, err = dbcrypt.CipherAES256(key)
7980
if err != nil {
8081
return nil, nil, xerrors.Errorf("create external-token-encryption-key cipher: %w", err)
8182
}

0 commit comments

Comments
 (0)