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

including proxyHealth path #89

Merged
merged 2 commits into from
Oct 20, 2023
Merged

including proxyHealth path #89

merged 2 commits into from
Oct 20, 2023

Conversation

DiogoFKT
Copy link
Contributor

The common endpoint /health/${server.serviceId} must validate BOTH proxy and backend to return "OK" otherwise it will return "ERROR"

method: 'get'
exec:
- admin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the health endpoint is proxied to the backend, should we protect it with the admin chain for security? If we don't, we might have the risk of a DDoS attack to send too many requests to the backend. At least we need a whitelist to allow only certain clients to connect. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting point. Few counter-points:

  • The risk of giving health monitor services the admin credentials might outweigh the risk of DDoS;
  • There's an assumption that proxy sidecar can absorb more request volume since DDoS attacks will affect non-proxied /health regardless and the microservice as a unit would be unavailable anyway;
  • There's also higher complexity (and cost) associated to authentication mechanism for frequent health checks (teams might start disabling security of /health altogether to avoid the extra overhead for monitors within same network zone);
  • DDoS can be mitigated by configuring default Rate Limit for /health based on resource allocation;

@stevehu
Copy link
Contributor

stevehu commented Oct 20, 2023

@DiogoFKT Based on our conversation, I have added the rate limit handle to the proxy health endpoint with the serviceId as a path parameter. Please review and let me know if you have any questions.

@stevehu stevehu merged commit 13d3bf6 into master Oct 20, 2023
@stevehu stevehu deleted the proxy-health branch October 20, 2023 02:38
Copy link
Contributor Author

@DiogoFKT DiogoFKT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes looks good thanks! We will set the default threshold via values

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants