This project is mirrored from https://gitee.com/NQL886/vault.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.
- 25 Nov, 2021 1 commit
-
-
Nick Cabatoff authored
-
- 17 Jun, 2021 1 commit
-
-
Hridoy Roy authored
* raft file and quorum checks * raft checks * backup * raft file checks test * address comments and add more raft and file and process checks * syntax issues * modularize functions to compile differently on different os * compile raft checks everywhere * more build tag issues * raft-diagnose * correct file permission checks * upgrade tests and add a getConfigOffline test that currently does not work * comment * update file checks method signature on windows * Update physical/raft/raft_test.go Co-authored-by:
Brian Kassouf <briankassouf@users.noreply.github.com> * raft tests * add todo comment for windows root ownership * voter count message * raft checks test fixes Co-authored-by:
Brian Kassouf <briankassouf@users.noreply.github.com>
-
- 08 Apr, 2021 1 commit
-
-
Brian Kassouf authored
* Update tooling * Run gofumpt * go mod vendor
-
- 03 Mar, 2021 1 commit
-
-
Vishal Nayak authored
* k8s doc: update for 0.9.1 and 0.8.0 releases (#10825) * k8s doc: update for 0.9.1 and 0.8.0 releases * Update website/content/docs/platform/k8s/helm/configuration.mdx Co-authored-by:
Theron Voran <tvoran@users.noreply.github.com> Co-authored-by:
Theron Voran <tvoran@users.noreply.github.com> * Autopilot initial commit * Move autopilot related backend implementations to its own file * Abstract promoter creation * Add nil check for health * Add server state oss no-ops * Config ext stub for oss * Make way for non-voters * s/health/state * s/ReadReplica/NonVoter * Add synopsis and description * Remove struct tags from AutopilotConfig * Use var for config storage path * Handle nin-config when reading * Enable testing autopilot by using inmem cluster * First passing test * Only report the server as known if it is present in raft config * Autopilot defaults to on for all existing and new clusters * Add locking to some functions * Persist initial config * Clarify the command usage doc * Add health metric for each node * Fix audit logging issue * Don't set DisablePerformanceStandby to true in test * Use node id label for health metric * Log updates to autopilot config * Less aggressively consume config loading failures * Return a mutable config * Return early from known servers if raft config is unable to be pulled * Update metrics name * Reduce log level for potentially noisy log * Add knob to disable autopilot * Don't persist if default config is in use * Autopilot: Dead server cleanup (#10857) * Dead server cleanup * Initialize channel in any case * Fix a bunch of tests * Fix panic * Add follower locking in heartbeat tracker * Add LastContactFailureThreshold to config * Add log when marking node as dead * Update follower state locking in heartbeat tracker * Avoid follower states being nil * Pull test to its own file * Add execution status to state response * Optionally enable autopilot in some tests * Updates * Added API function to fetch autopilot configuration * Add test for default autopilot configuration * Configuration tests * Add State API test * Update test * Added TestClusterOptions.PhysicalFactoryConfig * Update locking * Adjust locking in heartbeat tracker * s/last_contact_failure_threshold/left_server_last_contact_threshold * Add disabling autopilot as a core config option * Disable autopilot in some tests * s/left_server_last_contact_threshold/dead_server_last_contact_threshold * Set the lastheartbeat of followers to now when setting up active node * Don't use config defaults from CLI command * Remove config file support * Remove HCL test as well * Persist only supplied config; merge supplied config with default to operate * Use pointer to structs for storing follower information * Test update * Retrieve non voter status from configbucket and set it up when a node comes up * Manage desired suffrage * Consider bucket being created already * Move desired suffrage to its own entry * s/DesiredSuffrageKey/LocalNodeConfigKey * s/witnessSuffrage/recordSuffrage * Fix test compilation * Handle local node config post a snapshot install * Commit to storage first; then record suffrage in fsm * No need of local node config being nili case, post snapshot restore * Reconcile autopilot config when a new leader takes over duty * Grab fsm lock when recording suffrage * s/Suffrage/DesiredSuffrage in FollowerState * Instantiate autopilot only in leader * Default to old ways in more scenarios * Make API gracefully handle 404 * Address some feedback * Make IsDead an atomic.Value * Simplify follower hearbeat tracking * Use uber.atomic * Don't have multiple causes for having autopilot disabled * Don't remove node from follower states if we fail to remove the dead server * Autopilot server removals map (#11019) * Don't remove node from follower states if we fail to remove the dead server * Use map to track dead server removals * Use lock and map * Use delegate lock * Adjust when to remove entry from map * Only hold the lock while accessing map * Fix race * Don't set default min_quorum * Fix test * Ensure follower states is not nil before starting autopilot * Fix race Co-authored-by:
Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com> Co-authored-by:
Theron Voran <tvoran@users.noreply.github.com>
-
- 22 Sep, 2020 1 commit
-
-
Brian Kassouf authored
-
- 23 Jun, 2020 2 commits
-
-
Calvin Leung Huang authored
* raft: initial work on raft ha storage support * add note on join * add todo note * raft: add support for bootstrapping and joining existing nodes * raft: gate bootstrap join by reading leader api address from storage * raft: properly check for raft-only for certain conditionals * raft: add bootstrap to api and cli * raft: fix bootstrap cli command * raft: add test for setting up new cluster with raft HA * raft: extend TestRaft_HA_NewCluster to include inmem and consul backends * raft: add test for updating an existing cluster to use raft HA * raft: remove debug log lines, clean up verifyRaftPeers * raft: minor cleanup * raft: minor cleanup * Update physical/raft/raft.go Co-authored-by:
Brian Kassouf <briankassouf@users.noreply.github.com> * Update vault/ha.go Co-authored-by:
Brian Kassouf <briankassouf@users.noreply.github.com> * Update vault/ha.go Co-authored-by:
Brian Kassouf <briankassouf@users.noreply.github.com> * Update vault/logical_system_raft.go Co-authored-by:
Brian Kassouf <briankassouf@users.noreply.github.com> * Update vault/raft.go Co-authored-by:
Brian Kassouf <briankassouf@users.noreply.github.com> * Update vault/raft.go Co-authored-by:
Brian Kassouf <briankassouf@users.noreply.github.com> * address feedback comments * address feedback comments * raft: refactor tls keyring logic * address feedback comments * Update vault/raft.go Co-authored-by:
Alexander Bezobchuk <alexanderbez@users.noreply.github.com> * Update vault/raft.go Co-authored-by:
Alexander Bezobchuk <alexanderbez@users.noreply.github.com> * address feedback comments * testing: fix import ordering * raft: rename var, cleanup comment line * docs: remove ha_storage restriction note on raft * docs: more raft HA interaction updates with migration and recovery mode * docs: update the raft join command * raft: update comments * raft: add missing isRaftHAOnly check for clearing out state set earlier * raft: update a few ha_storage config checks * Update command/operator_raft_bootstrap.go Co-authored-by:
Vishal Nayak <vishalnayak@users.noreply.github.com> * raft: address feedback comments * raft: fix panic when checking for config.HAStorage.Type * Update vault/raft.go Co-authored-by:
Alexander Bezobchuk <alexanderbez@users.noreply.github.com> * Update website/pages/docs/commands/operator/raft.mdx Co-authored-by:
Alexander Bezobchuk <alexanderbez@users.noreply.github.com> * raft: remove bootstrap cli command * Update vault/raft.go Co-authored-by:
Brian Kassouf <briankassouf@users.noreply.github.com> * Update vault/raft.go Co-authored-by:
Brian Kassouf <briankassouf@users.noreply.github.com> * raft: address review feedback * raft: revert vendored sdk * raft: don't send applied index and node ID info if we're HA-only Co-authored-by:
Brian Kassouf <briankassouf@users.noreply.github.com> Co-authored-by:
Alexander Bezobchuk <alexanderbez@users.noreply.github.com> Co-authored-by:
Vishal Nayak <vishalnayak@users.noreply.github.com>
-
Brian Kassouf authored
* initial work on improving snapshot performance * Work on snapshots * rename a few functions * Cleanup the snapshot file * vendor the safeio library * Add a test * Add more tests * Some review comments * Fix comment * Update physical/raft/snapshot.go Co-authored-by:
Alexander Bezobchuk <alexanderbez@users.noreply.github.com> * Update physical/raft/snapshot.go Co-authored-by:
Alexander Bezobchuk <alexanderbez@users.noreply.github.com> * Review feedback Co-authored-by:
Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
-
- 01 Jun, 2020 1 commit
-
-
Alexander Bezobchuk authored
-
- 23 Apr, 2020 1 commit
-
-
Brian Kassouf authored
* storage/raft: Split snapshot restore disk write into batches * Work on snapshot consistency * make sure tests send a snapshot * Fix comment * Don't remove metrics * Fix comment
-
- 21 Nov, 2019 1 commit
-
-
Brian Kassouf authored
-
- 29 Jul, 2019 2 commits
-
-
Brian Kassouf authored
* Add an end-to-end raft chunk test * Apply suggestions from code review Co-Authored-By:
Jim Kalafut <jkalafut@hashicorp.com>
-
Brian Kassouf authored
* Support raft in the migration command * Add comments
-
- 25 Jul, 2019 1 commit
-
-
Jeff Mitchell authored
Support chunking, including snapshot handling
-
- 22 Jul, 2019 1 commit
-
-
Jeff Mitchell authored
-
- 20 Jun, 2019 1 commit
-
-
Brian Kassouf authored
* Work on raft backend * Add logstore locally * Add encryptor and unsealable interfaces * Add clustering support to raft * Remove client and handler * Bootstrap raft on init * Cleanup raft logic a bit * More raft work * Work on TLS config * More work on bootstrapping * Fix build * More work on bootstrapping * More bootstrapping work * fix build * Remove consul dep * Fix build * merged oss/master into raft-storage * Work on bootstrapping * Get bootstrapping to work * Clean up FMS and node-id * Update local node ID logic * Cleanup node-id change * Work on snapshotting * Raft: Add remove peer API (#906) * Add remove peer API * Add some comments * Fix existing snapshotting (#909) * Raft get peers API (#912) * Read raft configuration * address review feedback * Use the Leadership Transfer API to step-down the active node (#918) * Raft join and unseal using Shamir keys (#917) * Raft join ...
-