Allow a worker to use KMS auth but accept PKI for proxy (#2206)
This essentially worked for non-dev mode before but would create storage directories that weren't actually used or needed, and it didn't work in dev mode because it made assumptions about the presence of a worker auth kms or not. This fixes those behaviors.
This commit is contained in:
1 parent
9a4545e59e
commit
32d04b9ce7
10 files changed
+58
-48
No files matched your search
@@ -258,6 +258,10 @@ func NewTestWorker(t testing.TB, opts *TestWorkerOpts) *TestWorker {
|
||||
Name: opts.Name,
|
||||
}
|
||||
}
|
||||
if opts.WorkerAuthStoragePath != "" {
|
||||
opts.Config.Worker.AuthStoragePath = opts.WorkerAuthStoragePath
|
||||
tw.b.DevUsePkiForUpstream = true
|
||||
}
|
||||
tw.name = opts.Config.Worker.Name
|
||||
|
||||
serverName, err := os.Hostname()
|
||||
|
||||
Reference in new issue
Block a user