You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: added parameter to respect altered target (#42)
* making the plugin use the context target if instructed
* version bump
* Update schema.lua
* mentioning new configs in readme
* Update Readme.md
Co-authored-by: alexpopaconst <45684246+alexpopaconst@users.noreply.github.com>
* Update kong/plugins/aws-request-signing/schema.lua
Co-authored-by: alexpopaconst <45684246+alexpopaconst@users.noreply.github.com>
---------
Co-authored-by: Henrik Hafstrøm Johnsen <henrik.hafstroem@gmail.com>
Co-authored-by: alexpopaconst <45684246+alexpopaconst@users.noreply.github.com>
preserve_auth_header_key-- The header key where the bearer token will be saved and passed to the upstream. works only if 'preserve_auth_header' parameter above is set to true.
65
65
type="string"
66
66
required=true
67
67
default="x-authorization"
68
+
69
+
use_altered_target-- if another plugin changes the target to something other than what is registered on the service - use that target rather than the overrides of this plugin.
70
+
type="boolean"
71
+
required=true
72
+
default=false
68
73
```
69
74
70
75
## Using multiple Lambdas with the same Kong Service
@@ -77,6 +82,10 @@ If ***`override_target_host`*** is not specified and multiple Lambdas are used i
77
82
78
83
You can also set the service protocol and host to something like `http://example.com` and then use `override_target_protocol` and `override_target_host` to changed it on the path level.
79
84
85
+
The ***`use_altered_target`*** is useful if another plugin with higher priority has changed the target, and we would like that to take precedence over the overrides of this plugin.
86
+
This can be used when combining this plugin with e.g. the `canary-release`.
87
+
88
+
80
89
## Installing the plugin
81
90
82
91
There are two things necessary to make a custom plugin work in Kong:
0 commit comments