-
Hi, I'm wondering what's the best way to block a path using a httpproxy ? I've a quite basic usage, like spec:
routes:
- services:
- name: api-analytics
port: 8080
virtualhost:
fqdn: analytics.company.com
tls:
secretName: api-analytics-tls I'd like to prevent access to (prometheus) |
Beta Was this translation helpful? Give feedback.
Answered by
tsaarni
Feb 28, 2024
Replies: 1 comment 1 reply
-
You could try adding "direct responses" under routes spec:
routes:
- conditions:
- prefix: /metrics
directResponsePolicy:
statusCode: 404 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
rgarrigue
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could try adding "direct responses" under routes