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

Dissociate registrar API version from agent API version #790

Open
ansasaki opened this issue May 10, 2024 · 1 comment
Open

Dissociate registrar API version from agent API version #790

ansasaki opened this issue May 10, 2024 · 1 comment
Labels
enhancement Keylime general Involves Python codebase

Comments

@ansasaki
Copy link
Contributor

Currently, the keylime agent uses its own API_VERSION to construct the accessed registrar API:

let addr = format!(
"http://{remote_ip}:{registrar_port}/{API_VERSION}/agents/{agent_uuid}"
);

This makes the agent API version tied with the registrar API version.

Evaluate if it makes sense to dissociate the versions, making it possible to advance the API versions independently.

@tuminoid
Copy link

+1.

We tried using the v0.2.6 agent (v2.2) versus a v2.1 registrar, and it doesn't find any endpoints. I did not found any config value that would help us here, and the API_VERSION is set as const. This is a problem as we're trying to deliver the agent images but do not control which registrar version target environment has, and delivering and supporting many agent images is less than optimal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Keylime general Involves Python codebase
Projects
None yet
Development

No branches or pull requests

2 participants