NetworkManager/clients
Lubomir Rintel ef3d4758d6 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.

Conflicts:
- variable alignments
- missing 494819bbbf ("cloud-setup: move common code for get_config()
  to base class and improve cancellation"). From it we only needed
  the `get_config_data->self` part, but used g_task_get_source_object
  instead.
- missing 5fb2f7e717 ("cloud-setup/trivial: rename "response_data"
  variable")

https://bugzilla.redhat.com/show_bug.cgi?id=2151986
(cherry picked from commit 8b7e12c2d6)
(cherry picked from commit 429f36cd81)
(cherry picked from commit e3ac982b32)
(cherry picked from commit c5a3e739b1)
(cherry picked from commit ee157ad48b)
(cherry picked from commit ae3ec36462)
(cherry picked from commit 865fe0732e)
(cherry picked from commit d75e307ebc)
2023-09-18 16:16:11 +02:00
..
cli cli: fix leak in print_wifi_connection() 2021-06-10 16:20:32 +02:00
cloud-setup cloud-setup/ec2: start with requesting a IMDSv2 token 2023-09-18 16:16:11 +02:00
common core,libnm: don't touch device TC configuration by default 2021-06-17 17:23:07 +02:00
tests Correct python black rules 2021-02-09 10:55:13 +01:00
tui libnmt-newt: fix leak in nmt_newt_button_build_component() 2021-06-10 16:11:32 +02:00
meson.build docs: generate nm-settings-docs-nmcli.xml based on nmcli meta data 2020-06-11 10:53:50 +02:00
nm-online.c all: unify comment style for SPDX-License-Identifier tag 2020-09-29 16:50:53 +02:00