mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-31 01:47:33 +02:00
config: remove validate side effects (#2109)
* config: default shared key * handle additional errors * update grpc addr and grpc insecure * update google cloud service authentication service account * fix set response headers * fix qps * fix test
This commit is contained in:
parent
2806b67bee
commit
b1d62bb541
19 changed files with 138 additions and 81 deletions
|
@ -125,7 +125,7 @@ func (h *Handler) Update(ctx context.Context, cfg *config.Config) {
|
|||
h.mu.Lock()
|
||||
defer h.mu.Unlock()
|
||||
|
||||
h.key, _ = base64.StdEncoding.DecodeString(cfg.Options.SharedKey)
|
||||
h.key, _ = cfg.Options.GetSharedKey()
|
||||
h.options = cfg.Options
|
||||
h.policies = make(map[uint64]*config.Policy)
|
||||
for i, p := range cfg.Options.Policies {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue