config: remove signature_key_algorithm (#2557)

* config: remove signature_key_algorithm

* typo

* add more tests
This commit is contained in:
Caleb Doxsey 2021-09-02 11:36:43 -06:00 committed by GitHub
parent de1ed61b9a
commit 33f5190572
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 72 additions and 66 deletions

View file

@ -173,8 +173,7 @@ type Options struct {
// SigningKey is the private key used to add a JWT-signature to upstream requests.
// https://www.pomerium.io/docs/topics/getting-users-identity.html
SigningKey string `mapstructure:"signing_key" yaml:"signing_key,omitempty"`
SigningKeyAlgorithm string `mapstructure:"signing_key_algorithm" yaml:"signing_key_algorithm,omitempty"`
SigningKey string `mapstructure:"signing_key" yaml:"signing_key,omitempty"`
HeadersEnv string `yaml:",omitempty"`
// SetResponseHeaders to set on all proxied requests. Add a 'disable' key map to turn off.
@ -1157,9 +1156,6 @@ func (o *Options) ApplySettings(ctx context.Context, settings *config.Settings)
if settings.SigningKey != nil {
o.SigningKey = settings.GetSigningKey()
}
if settings.SigningKeyAlgorithm != nil {
o.SigningKeyAlgorithm = settings.GetSigningKeyAlgorithm()
}
if settings.SetResponseHeaders != nil && len(settings.SetResponseHeaders) > 0 {
o.SetResponseHeaders = settings.SetResponseHeaders
}