consul/internal
Melissa Kam 7900544249
[CC-7063] Fetch HCP agent bootstrap config in Link reconciler (#20306)
* Move config-dependent methods to separate package

In order to reuse the fetching and file creation part of the
bootstrap package, move the code that would cause cyclical
dependencies to a different package.

* Export needed bootstrap methods and variables

Also add back validating persisted config and update tests.

* Add support to check for just management token

Add a new method that fetches the bootstrap configuration only if
there isn't a valid management token file instead of checking for
all the hcp-config files.

* Pass data dir as a dependency to link controller

The link controller needs to check the data directory for
the hcp-config files.

* Fetch bootstrap config for token in controller

Load the management token when reconciling a link resource, which will
fetch the agent boostrap configuration if the token is not already
persisted locally. Skip this step if the cluster is in read-only mode.

* Validate resource ID format in link creation

* Handle unauthorized and forbidden errors

Check for 401 and 403s when making GNM requests, exit bootstrap fetch
loop and return specific failure statuses for link.

* Move test function to a testing file

* Log load and status write errors
2024-01-24 09:51:43 -06:00
..
auth Net 5092/internal l7 traffic permissions (#20276) 2024-01-23 20:07:58 -06:00
catalog added computed failover controller (#20329) 2024-01-24 11:50:27 +05:30
controller Add a separate test for initializer retries (#20298) 2024-01-19 16:59:44 -06:00
dnsutil feat(v2dns): recursor support (#20249) 2024-01-18 18:30:04 -05:00
go-sso [Cloud][CC-6925] Updates to pushing server state (#19682) 2023-12-04 10:25:18 -05:00
hcp [CC-7063] Fetch HCP agent bootstrap config in Link reconciler (#20306) 2024-01-24 09:51:43 -06:00
mesh Net 5092/internal l7 traffic permissions (#20276) 2024-01-23 20:07:58 -06:00
multicluster Net 7074/decentralized exported services management (#20318) 2024-01-23 19:44:10 -06:00
protohcl [Cloud][CC-6925] Updates to pushing server state (#19682) 2023-12-04 10:25:18 -05:00
protoutil mesh: compute more of the xRoute features into ComputedRoutes (#18980) 2023-09-22 16:13:24 -05:00
radix [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
resource Migrate the Endpoints controller to use the controller cache (#20241) 2024-01-18 17:52:52 -05:00
resourcehcl mesh: rename Upstreams and UpstreamsConfiguration to Destinations* (#18995) 2023-09-25 12:03:45 -06:00
storage Skip tests with p95 greater than 30 seconds outside of main and release branches. (#19628) 2023-11-15 13:43:33 -07:00
tenancy [OSS] feat: add experiments flag for v2 dns and skeleton interfaces (#20115) 2024-01-10 11:19:20 -05:00
testing Add Common Controller Caching Infrastructure (#19767) 2023-12-13 10:06:39 -05:00
tools NET-5824 Exported services api (#20015) 2024-01-23 10:06:59 +05:30