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

Agent contact_ip needs to allow hostnames #848

Open
tuminoid opened this issue Oct 8, 2024 · 0 comments
Open

Agent contact_ip needs to allow hostnames #848

tuminoid opened this issue Oct 8, 2024 · 0 comments

Comments

@tuminoid
Copy link

tuminoid commented Oct 8, 2024

Use-case

Keylime agent is in k8s cluster, but Verifier/Tenant/Registrar is outside k8s cluster. Traffic from Verifier to Agent goes via k8s Ingress, which needs to map URL to correct Agent per UUID. Agent is hence reachable at https://agent-<uuid>.cluster.local/ ...

Issue

There is parse_ip called to parse the contact_ip here:

let contact_ip = parse_ip(config.agent.contact_ip.as_ref())?.to_string();
so Agent cannot set hostname such as agent-<uuid>.cluster.local as its contact_ip, meaning it cannot register itself with an address that can be routed back.

xref: https://cloud-native.slack.com/archives/C01ARE2QUTZ/p1727792733885549
@maugustosilva @mheese

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

No branches or pull requests

1 participant