NetworkManager/src/nm-cloud-setup
Lubomir Rintel 8b7e12c2d6 cloud-setup/ec2: start with requesting a IMDSv2 token
The present version of the EC2 metadata API (IMDSv2) requires a header
with a token to be present in all requests. The token is essentially a
cookie that's not actually a cookie that's obtained with a PUT call that
doesn't put anything. Apparently it's too easy to trick someone into
calling a GET method.

EC2 now supports IMDSv2 everywhere with IMDSv1 being optional, so let's
just use IMDSv2 unconditionally. Also, the presence of a token API can
be used to detect the AWS EC2 cloud.

https://bugzilla.redhat.com/show_bug.cgi?id=2151986
2023-03-07 13:54:08 +01:00
..
tests format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
90-nm-cloud-setup.sh cloud-setup: move from "clients/cloud-setup/" to "src/nm-cloud-setup/" 2021-03-15 17:10:53 +01:00
main.c nm-cloud-setup: simplify clearing variables in retry loop 2022-12-14 17:33:57 +01:00
meson.build cloud-setup: configure secondary ip in Aliyun cloud 2021-07-19 17:41:52 +02:00
nm-cloud-setup-utils.c nm-cloud-setup: set preserve-external-ip flag during reapply 2022-12-14 17:33:56 +01:00
nm-cloud-setup-utils.h nm-cloud-setup: set preserve-external-ip flag during reapply 2022-12-14 17:33:56 +01:00
nm-cloud-setup.service.in cloud-setup: configure secondary ip in Aliyun cloud 2021-07-19 17:41:52 +02:00
nm-cloud-setup.timer cloud-setup: move from "clients/cloud-setup/" to "src/nm-cloud-setup/" 2021-03-15 17:10:53 +01:00
nm-http-client.c cloud-setup: make nm_http_client_req() accept a method argument 2023-03-07 13:54:03 +01:00
nm-http-client.h cloud-setup: make nm_http_client_req() accept a method argument 2023-03-07 13:54:03 +01:00
nmcs-provider-aliyun.c cloud-setup: make nm_http_client_req() accept a method argument 2023-03-07 13:54:03 +01:00
nmcs-provider-aliyun.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmcs-provider-azure.c cloud-setup: make nm_http_client_req() accept a method argument 2023-03-07 13:54:03 +01:00
nmcs-provider-azure.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmcs-provider-ec2.c cloud-setup/ec2: start with requesting a IMDSv2 token 2023-03-07 13:54:08 +01:00
nmcs-provider-ec2.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmcs-provider-gcp.c cloud-setup: make nm_http_client_req() accept a method argument 2023-03-07 13:54:03 +01:00
nmcs-provider-gcp.h all: use _NM_G_TYPE_CHECK_INSTANCE_CAST() for internal uses 2022-12-16 10:55:03 +01:00
nmcs-provider.c cloud-setup: use union for NMCSProviderGetConfigIfaceData.priv 2022-05-05 08:37:29 +02:00
nmcs-provider.h cloud-setup: document detect() and get_config() methods 2023-03-07 13:54:03 +01:00
README.md all: add some README.md files describing the purpose of our sources 2021-08-19 17:51:11 +02:00

nm-cloud-setup

A NetworkManager client application that aims to automatically configure the network in a cloud environment.

See:

  • man 8 nm-cloud-setup ([www])