Skip to content

Conversation

@tpjg
Copy link

@tpjg tpjg commented Oct 27, 2025

A new klib 'userdata_env' is added. This will attempt to read the 'userdata' from various cloud providers and use it to set environment variables.

This can be used to separate preparing images and populating the environment variables.

Cloud provider typically have IMDS (Instance Metadata service) that is ONLY reachable from within the instance on 169.254.169.254.

While providers have warnings like the following (from Azure):
"
Warning
User data will not be encrypted, and any process on the VM can query this data. You should not store confidential information in user data.
"

Since nanos does not have multiple processes or users this does not apply for nanovms.

See also nanovms/ops#1725 to add support to 'ops' for supplying UserData.

Timo Gatsonides and others added 3 commits October 27, 2025 11:06
A new klib 'userdata_env' is added. This will
attempt to read the 'userdata' from various
cloud providers and use it to set environment
variables.

This can be used to separate preparing images
and populating the envvars.

Cloud provider typically have IMDS (Instance
Metadata service) that is ONLY reachable from
within the instance on 169.254.169.254.

While providers have warnings like the
following (from Azure):

Warning
User data will not be encrypted, and any process on the VM can query this data. You should not store confidential information in user data.

Since nanos does not have multiple processes
or users this does not apply for nanovms.
@eyberg eyberg requested a review from francescolavra October 30, 2025 23:07
@tpjg
Copy link
Author

tpjg commented Nov 1, 2025

Or consider #2112 instead.

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