Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set direct_response (Return an arbitrary HTTP response directly, without proxying) #4346

Closed
yuyicai opened this issue Sep 27, 2024 · 1 comment
Labels

Comments

@yuyicai
Copy link

yuyicai commented Sep 27, 2024

Description:
How to set direct_response using envoy gateway?
The envoy proxy native configuration:

route_config:
  virtual_hosts:
    - name: direct
      domains:
        - "www.example.com"
      routes:
        - match:
            prefix: "/404"
          direct_response: 
            status: 404

[optional Relevant Links:]
https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/route/v3/route_components.proto#envoy-v3-api-field-config-route-v3-route-direct-response

https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/route/v3/route_components.proto#envoy-v3-api-msg-config-route-v3-directresponseaction

@yuyicai yuyicai added the triage label Sep 27, 2024
@arkodg
Copy link
Contributor

arkodg commented Sep 27, 2024

dup of #2714
the work is in progress #4334 and should hopefully land in v1.2 (end Oct 2024)

@arkodg arkodg closed this as completed Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants