mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 16:59:22 +02:00
config: remove signature_key_algorithm (#2557)
* config: remove signature_key_algorithm * typo * add more tests
This commit is contained in:
parent
de1ed61b9a
commit
33f5190572
14 changed files with 72 additions and 66 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue