This project is mirrored from https://gitee.com/mirrors/nomad.git.
Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
- 08 Jun, 2022 1 commit
-
-
Tim Gross authored
-
- 07 Jun, 2022 10 commits
-
-
Tim Gross authored
-
Tim Gross authored
-
Tim Gross authored
-
Tim Gross authored
-
Tim Gross authored
-
Tim Gross authored
-
Tim Gross authored
-
Tim Gross authored
-
Tim Gross authored
Replication for the secure variables keyring. Because only key metadata is stored in raft, we need to distribute key material out-of-band from raft replication. A goroutine runs on each server and watches for changes to the `RootKeyMeta`. When a new key is received, attempt to fetch the key from the leader. If the leader doesn't have the key (which may happen if a key is rotated right before a leader transition), try to get the key from any peer.
-
Phil Renaud authored
* Recursive trie-building with variable paths * tree structure applied to new path routes and a new util class * Breadcrumbs for SV paths and prompt when nothing exists at a path * Lint and test cleanup * Pre-review cleanup * lintfix * Abstracted pathtree each-ins into a new component class * Path tree component styles * Types added and PR feedback addressed * Path tree to variable paths * Slightly simpler path QP mods * More pr feedback handling * Trim moved into a function on variable model * Traversal and compaction tests for PathTree * Trim Path tests * Variable-paths component tests * Lint fixup for tests
-
- 02 Jun, 2022 2 commits
-
-
Tim Gross authored
Inactive and unused keys older than a threshold will be periodically garbage collected.
-
Tim Gross authored
After internal design review, we decided to remove exposing algorithm choice to the end-user for the initial release. We'll solve nonce rotation by forcing rotations automatically on key GC (in a core job, not included in this changeset). Default to AES-256 GCM for the following criteria: * faster implementation when hardware acceleration is available * FIPS compliant * implementation in pure go * post-quantum resistance Also fixed a bug in the decoding from keystore and switched to a harder-to-misuse encoding method.
-
- 01 Jun, 2022 15 commits
-
-
Tim Gross authored
The core jobs to garbage collect unused keys and perform full key rotations will need to be able to query secure variables by key ID for efficiency. Add an index to the state store and associated query function and test.
-
Tim Gross authored
When a server becomes leader, it will check if there are any keys in the state store, and create one if there is not. The key metadata will be replicated via raft to all followers, who will then get the key material via key replication (not implemented in this changeset).
-
Phil Renaud authored
* variables.new initialized * Hacky but savey * Variable wildcard route and multiple creatable at a time * multiple KVs per variable * PR Prep cleanup and lintfix * Delog * Data mocking in mirage for variables * Linting fixes * Re-implement absent params * Adapter and model tests * Moves the path-as-id logic to a serializer instead of adapter * Classic to serializer and lint cleanup * Pluralized save button (#13140) * Autofocus modifier and better Add More button UX (#13145) * Secure Variables: show/hide functionality when adding new values (#13137) * Flight Icons added and show hide functionality * PR cleanup * Linting cleanup * Position of icon moved to the right of input * PR feedback addressed * Delete button and stylistic changes to show hide * Hmm, eslint doesnt like jsdoc-usage as only reason for import * More closely match the button styles and delete test * Simplified new.js model * Secure Variables: /variables/*path/edit route and functionality (#13170) * Variable edit page init * Significant change to where we house model methods * Lintfix * Edit a variable tests * Remove redundant tests * Asserts expected * Mirage factory updated to reflect model state
-
Charlie Voiselle authored
* Secure Variables: State Store * Secure Variables: FSM * Secure Variables: RPC * Secure Variables: HTTP API Co-authored-by:
Tim Gross <tgross@hashicorp.com>
-
Tim Gross authored
This changeset implements the keystore serialization/deserialization: * Adds a JSON serialization extension for the `RootKey` struct, along with a metadata stub. When we serialize RootKey to the on-disk keystore, we want to base64 encode the key material but also exclude any frequently-changing fields which are stored in raft. * Implements methods for loading/saving keys to the keystore. * Implements methods for restoring the whole keystore from disk. * Wires it all up with the `Keyring` RPC handlers and fixes up any fallout on tests.
-
Tim Gross authored
-
Tim Gross authored
Implement the upsert, list, delete, and rotate RPC handlers for the secure variables keyring. Operations on the keyring itself are still stubbed out.
-
Tim Gross authored
Implement the basic upsert, list, and delete operations for `RootKeyMeta` needed by the Keyring RPCs. This changeset also implements two convenience methods `RootKeyMetaByID` and `GetActiveRootKeyMeta` which are useful for testing but also will be needed to implement the rest of the RPCs.
-
Phil Renaud authored
* Route init * Bones of a mirage-mocked secure variables policy * Functinoing policy for list vars * Delog and transition on route * Basic guard test * Page guard tests for secure variables * Cleanup and unit tests for variables ability * Linter cleanup * Set expectations for test assertions * PR feedback addressed * Read label changed to View per suggestion
-
Charlie Voiselle authored
* Add SecureVariable mock * Add SecureVariableStub * Add SecureVariable Copy and Stub funcs
-
Tim Gross authored
Implement the core SecureVariable and RootKey structs in memdb, provide the minimal skeleton for FSM, and a dummy storage and keyring RPC endpoint.
-
Tim Gross authored
Almost all GC jobs check the index of the objects being GC'd to see if they're older than a configured threshold. This code was repeated six times in `CoreScheduler` with only logging changes, so it seems safe to extract it as its own method.
-
Seth Hoenig authored
build: update golangci-lint to v1.46.2
-
Jason Paul Deland authored
-
Seth Hoenig authored
build: git ignore go.work.sum files
-
- 31 May, 2022 4 commits
-
-
Seth Hoenig authored
-
Seth Hoenig authored
This version of golangci-lint improves support for generics, but also is more strict in copy vs. loop for slice copying.
-
Anthony authored
-
pabloyoyoista authored
-
- 30 May, 2022 2 commits
-
-
James Rasell authored
-
Waquid Valiya Peedikakkal authored
-
- 27 May, 2022 3 commits
-
-
Luiz Aoqui authored
-
Toyam Cox authored
-
James Rasell authored
-
- 26 May, 2022 3 commits
-
-
Seth Hoenig authored
connect: enable setting connect upstream destination namespace
-
Seth Hoenig authored
-
Amier Chery authored
Update service.check.task definition to match code
-