open-nomad/website/content
Tim Gross 903b5baaa4
keyring: safely handle missing keys and restore GC (#15092)
When replication of a single key fails, the replication loop breaks early and
therefore keys that fall later in the sorting order will never get
replicated. This is particularly a problem for clusters impacted by the bug that
caused #14981 and that were later upgraded; the keys that were never replicated
can now never be replicated, and so we need to handle them safely.

Included in the replication fix:
* Refactor the replication loop so that each key replicated in a function call
  that returns an error, to make the workflow more clear and reduce nesting. Log
  the error and continue.
* Improve stability of keyring replication tests. We no longer block leadership
  on initializing the keyring, so there's a race condition in the keyring tests
  where we can test for the existence of the root key before the keyring has
  been initialize. Change this to an "eventually" test.

But these fixes aren't enough to fix #14981 because they'll end up seeing an
error once a second complaining about the missing key, so we also need to fix
keyring GC so the keys can be removed from the state store. Now we'll store the
key ID used to sign a workload identity in the Allocation, and we'll index the
Allocation table on that so we can track whether any live Allocation was signed
with a particular key ID.
2022-11-01 15:00:50 -04:00
..
api-docs acl: add ACL roles to event stream topic and resolve policies. (#14923) 2022-10-20 09:43:35 +02:00
docs keyring: safely handle missing keys and restore GC (#15092) 2022-11-01 15:00:50 -04:00
intro website: content updates for developer (#14473) 2022-09-16 10:38:39 -05:00
partials website: fix broken links (#14946) 2022-10-19 14:07:48 -04:00
plugins website: fixes redirected links (#14918) 2022-10-18 10:31:52 -05:00
tools docs: use of node_class when autoscaling (#14950) 2022-10-21 10:35:45 -04:00
security.mdx Upgrade global styles (#10936) 2021-08-20 11:53:12 -04:00