This is an automated email from the ASF dual-hosted git repository.
young pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
from df3cc407a fix(plugin/redirect): ensure redirect when scheme is not
`https` (#12561)
add 5f0ff4629 fix: only trust `X-Forwarded-*` headers from
`trusted_addresses` (#12551)
No new revisions were added by this update.
Summary of changes:
apisix/cli/schema.lua | 9 +
apisix/core.lua | 2 +-
apisix/core/schema.lua | 7 +
apisix/init.lua | 95 +++++-
apisix/schema_def.lua | 9 -
.../trusted-addresses.lua} | 44 ++-
conf/config.yaml.example | 4 +
docs/en/latest/plugins/chaitin-waf.md | 3 +
docs/en/latest/plugins/real-ip.md | 4 +
docs/zh/latest/plugins/chaitin-waf.md | 4 +
docs/zh/latest/plugins/real-ip.md | 4 +
t/APISIX.pm | 2 +
t/cli/test_validate_config.sh | 185 +++++++++++
t/core/trusted-addresses.t | 360 +++++++++++++++++++++
t/plugin/proxy-rewrite2.t | 33 ++
t/plugin/real-ip.t | 36 +++
16 files changed, 752 insertions(+), 49 deletions(-)
copy apisix/{global_rules.lua => utils/trusted-addresses.lua} (52%)
create mode 100644 t/core/trusted-addresses.t