@@ -32,7 +32,6 @@ import (
32
32
"github.com/coder/coder/v2/coderd/rbac"
33
33
agplschedule "github.com/coder/coder/v2/coderd/schedule"
34
34
"github.com/coder/coder/v2/codersdk"
35
- "github.com/coder/coder/v2/cryptorand"
36
35
"github.com/coder/coder/v2/enterprise/coderd/license"
37
36
"github.com/coder/coder/v2/enterprise/coderd/proxyhealth"
38
37
"github.com/coder/coder/v2/enterprise/coderd/schedule"
@@ -65,7 +64,7 @@ func New(ctx context.Context, options *Options) (_ *API, err error) {
65
64
66
65
ctx , cancelFunc := context .WithCancel (ctx )
67
66
68
- externalTokenCipher := & atomic.Pointer [cryptorand .Cipher ]{}
67
+ externalTokenCipher := & atomic.Pointer [dbcrypt .Cipher ]{}
69
68
options .Database = dbcrypt .New (options .Database , & dbcrypt.Options {
70
69
ExternalTokenCipher : externalTokenCipher ,
71
70
})
@@ -372,7 +371,7 @@ type Options struct {
372
371
// Whether to block non-browser connections.
373
372
BrowserOnly bool
374
373
SCIMAPIKey []byte
375
- ExternalTokenEncryption cryptorand .Cipher
374
+ ExternalTokenEncryption dbcrypt .Cipher
376
375
377
376
// Used for high availability.
378
377
ReplicaSyncUpdateInterval time.Duration
@@ -400,7 +399,7 @@ type API struct {
400
399
ctx context.Context
401
400
cancel context.CancelFunc
402
401
403
- externalTokenCipher * atomic.Pointer [cryptorand .Cipher ]
402
+ externalTokenCipher * atomic.Pointer [dbcrypt .Cipher ]
404
403
405
404
// Detects multiple Coder replicas running at the same time.
406
405
replicaManager * replicasync.Manager
0 commit comments