open-nomad/helper
Tim Gross c9d678a91a
keyring: wrap root key in key encryption key (#14388)
Update the on-disk format for the root key so that it's wrapped with a unique
per-key/per-server key encryption key. This is a bit of security theatre for the
current implementation, but it uses `go-kms-wrapping` as the interface for
wrapping the key. This provides a shim for future support of external KMS such
as cloud provider APIs or Vault transit encryption.

* Removes the JSON serialization extension we had on the `RootKey` struct; this
  struct is now only used for key replication and not for disk serialization, so
  we don't need this helper.

* Creates a helper for generating cryptographically random slices of bytes that
  properly accounts for short reads from the source.

* No observable functional changes outside of the on-disk format, so there are
  no test updates.
2022-08-30 10:59:25 -04:00
..
args
boltdd client: add support for checks in nomad services 2022-07-12 17:09:50 -05:00
broker
bufconndialer
codec Provide mock secure variables implementation (#12980) 2022-07-11 13:34:03 -04:00
constraints/semver
crypto keyring: wrap root key in key encryption key (#14388) 2022-08-30 10:59:25 -04:00
discover
envoy
escapingfs cleanup: move fs helpers into escapingfs 2022-08-24 14:45:34 -05:00
escapingio build: run gofmt on all go source files 2022-08-16 11:14:11 -05:00
fields
flags
flatmap
freeport
gated-writer
grpc-middleware/logging
ipaddr
logging
mount
noxssrw
pluginutils cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +02:00
pointer cleanup: create pointer.Compare helper function 2022-08-26 08:55:59 -05:00
pool rpc: fix race in conn last used tracking (#14173) 2022-08-17 14:57:53 -07:00
raftutil Merge branch 'main' into f-gh-13120-sso-umbrella-merged-main 2022-08-30 08:59:13 +01:00
snapshot snapshot restore-from-archive streaming and filtering (#13658) 2022-07-11 10:48:00 -04:00
stats
testlog tests: add a space between node name and timestamp (#13750) 2022-07-13 16:23:03 -04:00
testtask
tlsutil
useragent
uuid keyring: wrap root key in key encryption key (#14388) 2022-08-30 10:59:25 -04:00
winsvc
cluster.go
eof.go
funcs.go Merge pull request #14290 from hashicorp/cleanup-more-helper-cleanup 2022-08-30 08:19:48 -05:00
funcs_test.go Merge pull request #14290 from hashicorp/cleanup-more-helper-cleanup 2022-08-30 08:19:48 -05:00