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

HathiTrust DEV-1318: limit access to metrics endpoint #717

Open
wants to merge 1 commit into
base: production
Choose a base branch
from

Conversation

aelkiss
Copy link
Member

@aelkiss aelkiss commented Sep 26, 2024

The metrics endpoint doesn't need to be public, and won't get consistent data coming from it anyway. This limits it to a provided set of IP addresses. While we could try to collect IPs for the prometheus role and the kubernetes gateway, it wasn't immediately clear how to collect the floating IP that the kubernetes gateway uses, so this defers to a set of allowed IP addresses listed in lensoftruth.

@aelkiss
Copy link
Member Author

aelkiss commented Sep 26, 2024

Currently attempting to test on preview.babel.hathitrust.org

@aelkiss
Copy link
Member Author

aelkiss commented Sep 26, 2024

@daaang Do you have any better recommended way to collect IP addresses of the Kubernetes gateways?

@aelkiss aelkiss force-pushed the DEV-1318-imgsrv-metrics branch 2 times, most recently from b124b47 to 93dd930 Compare September 26, 2024 11:30
The metrics endpoint doesn't need to be public, and won't get consistent
data coming from it anyway. This limits it to a provided set of IP
addresses. While we could try to collect IPs for the prometheus role and
the kubernetes gateway, it wasn't immediately clear how to collect the
floating IP that the kubernetes gateway uses, so this defers to a set of
allowed IP addresses listed in lensoftruth.
@aelkiss aelkiss marked this pull request as ready for review September 26, 2024 13:44
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.

1 participant