Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

add http user-agent cloudbase-init #137

Open
rayy3535 opened this issue Apr 14, 2024 · 1 comment
Open

add http user-agent cloudbase-init #137

rayy3535 opened this issue Apr 14, 2024 · 1 comment

Comments

@rayy3535
Copy link

rayy3535 commented Apr 14, 2024

cloudbase-init does not set http user-agent.By default, it is "python-requests" for now.

As for canonical's cloud-init, metadata server can use http user agent to adapt its response when necessary. Please consider to make cloudbase-init work more like cloud-init.

Thanks

@ader1990
Copy link
Member

Hello,

I saw that the implementation in cloud-init https://github.com/canonical/cloud-init/blob/9bcb3dce9d7abfbb7273e313d5056eda0424108f/cloudinit/url_helper.py#L427 has this format:

 "User-Agent": "Cloud-Init/%s" % Cloud-Init-Version

Can you please give more information on your scenario and how the data should look like in the case of Cloudbase-Init?

Thanks.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants