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: drop openstack uuid option #799
Conversation
I'm not sure why we would drop this. In fact, I was thinking of expanding it to other "cloudish" providers like AWS, GCE and Azure. It can be useful is the agent UUID is also tied to the broader inventory of virtual machines you have and the unique ID from your cloud is a good one to use. |
The issue is not the functionality itself, but the implementation which has no configuration options to make it useful. If we implement this it should be done such that is easy implementable also in the rust agent. |
What do you mean by this? What configuration options should exist?
How would that work? A separate binary that fetched the UUID somehow? |
The current code just hard codes the metadata service. This should be at least configurable. Lines 14 to 16 in 53b47c5
Either that or is there a reason why the UUID cannot be configured using environment variable during startup? |
I like this option. So maybe we deprecate |
@mpeters that sound like a good idea. I'll add that to this PR. |
The current code is not generic enough to be useful. Signed-off-by: Thore Sommer <mail@thson.de>
2bd4428
to
a7a7f2c
Compare
When agent_uuid in keylime.conf is set to 'environment' the agent tries to use the value of the environment variable 'KEYLIME_AGENT_UUID' as the UUID. Signed-off-by: Thore Sommer <mail@thson.de>
a7a7f2c
to
2748f26
Compare
I've now added to option to set the UUID via the |
The current code is not generic enough to be useful.