Commit Graph

302 Commits (3fee1129b13f4e3cd6acc49246549ac335bc3fcf)

Author SHA1 Message Date
Frank Schroeder a9451d596f
agent: set tcpKeepAliveListener when there is no error
8 years ago
Frank Schroeder d6c7404b34
agent: simplify shutdown timeout logging
8 years ago
Frank Schroeder 30ba712857
agent: set proto to http since we are logging it now
8 years ago
Frank Schroeder ec729693d7
Address review comments
8 years ago
Frank Schroeder b6c69ebf5d
agent: refactor DNS and HTTP server
8 years ago
Frank Schroeder 10540f8d5f
agent: fix logging
8 years ago
Frank Schroeder 1df74e36bd
agent: print more useful shutdown message
8 years ago
Frank Schroeder 0325a42089
test: fix data race with endpoints
8 years ago
Frank Schroeder e16589c079
agent: shutdown delegate if created
8 years ago
Frank Schroeder 3658d4d428
test: address pull request comments
8 years ago
Frank Schroeder 3865f14a25
agent: simplify agent creation
8 years ago
Frank Schroeder 82650f73e3
agent: move http/dns endpoints into agent
8 years ago
Kyle Havlovitz 62f72f104c Add settings for upshifting to encrypted gossip (#3079)
8 years ago
Frank Schroeder 8ad66f4bea
agent: support custom check id and name
8 years ago
Frank Schroeder ad40a855bd agent: move isAddrANY to separate package
8 years ago
Frank Schroeder e2c37b47ee agent: Replace client/server with delegate interface
8 years ago
Frank Schroeder 41f01a0cfc agent: allow "::" as IPv6 bind address
8 years ago
Frank Schroeder 914a83cae0 agent: use bind address as src unless INADDR_ANY
8 years ago
Frank Schroeder e6c6f8cedd agent: use helper for INADDR_ANY
8 years ago
Kyle Havlovitz 5bab68b9bb Add a path for transitioning to TLS on an existing cluster (#3001)
8 years ago
Frank Schroeder 8c2b261c61 Use bind address as source for outgoing connections (#2822)
8 years ago
Frank Schroeder fb83790cb9 Do not modify config after creation II
8 years ago
Frank Schroeder a235986a28 Do not modify config after creation
8 years ago
Frank Schroeder d34ba3e823 Cleanup agent config
8 years ago
Kyle Havlovitz cd56a5ebdd Add separate option for verifying incoming HTTPS traffic (#2974)
8 years ago
Kyle Havlovitz b70e419aeb Add TLS cipher suite options and CA path support (#2963)
8 years ago
Frank Schroeder 3e00e36f41 golint: Untangle if blocks with return in else
8 years ago
Frank Schroeder eddb1af603 Remove duplicate constants
8 years ago
James Phillips fa04c24978
Adds a new -disable-host-node-id option to help when testing with containers.
8 years ago
Alex Dadgar 7f6d95f1c9 Hash host ID so its stable and well distributed
8 years ago
James Phillips 8940d1c3fe
Keeps the service and check tokens around for deregistration.
8 years ago
Kyle Havlovitz 390f41d8d5
Add advanced autopilot features
8 years ago
James Phillips 26dddb428c
Forces user-supplied node IDs to lower case for consistency.
8 years ago
Kyle Havlovitz 2eefe3ca5b
Add autopilot server health tracking
8 years ago
Kyle Havlovitz ab6c49ab4c Merge pull request #2771 from hashicorp/f-autopilot
8 years ago
Kyle Havlovitz 92c8b9c3a0
Rename DeadServerCleanup and make wording adjustments
8 years ago
Kyle Havlovitz 9221aed856
Remove the RPC client interface and update docs
8 years ago
Kyle Havlovitz 81c7a0299e
Add state store table and endpoints for autopilot
8 years ago
Kyle Havlovitz b20fd222f6
Add raft version 2/3 compatibility
8 years ago
Kyle Havlovitz a533e255ab Merge pull request #2699 from hashicorp/f-tls-min-version
8 years ago
Kyle Havlovitz 07ba3ddb6e
Add TLSMinVersion to config options
8 years ago
Sean Chittenden fd2ae702c9
Re-cherry-pick 71d807f607 and e2320d69b6.
8 years ago
James Phillips 91f3555dd8 Revert "Adds gopsutil in the loop when trying to make the node ID."
8 years ago
James Phillips e2320d69b6
Gets rid of a goto.
8 years ago
James Phillips 71d807f607
Adds gopsutil into node ID process and attempts to use host ID, if availabile.
8 years ago
Kyle Havlovitz a55968f009
Merge branch 'master' into f-prepared-query-nodemeta
8 years ago
Kyle Havlovitz 3f3d7f9891
Add tests for node meta in prepared queries and update docs
8 years ago
James Phillips bd605e330c
Adds basic support for node IDs.
8 years ago
Kyle Havlovitz 7f91cd12f4
Add -node-meta to agent command line options
8 years ago
Kyle Havlovitz c9e430c396
Validate metadata config earlier and handle multiple filters
8 years ago
Kyle Havlovitz 03273e4ed2
Fix formatting
8 years ago
Kyle Havlovitz 84504a20fc
Add meta key validations and more tests
8 years ago
Kyle Havlovitz e44bcb9716
Add tests for node metadata functionality
8 years ago
Kyle Havlovitz 52d6fd831e
Add support for setting node metadata fields
8 years ago
James Phillips ca7a243b70
Adds ACL management support to the agent.
8 years ago
James Phillips bcf1ffad99
Adds complete ACL coverage for /v1/coordinate/nodes and Coordinate.Update RPC.
8 years ago
James Phillips 0139bbb963
Adds support for a new "acl_agent_token" which is used for internal
8 years ago
James Phillips 66b437ca33
Removes the exception for the "consul" service in the catalog.
8 years ago
Sean Chittenden 830125a8b3
Run all known addresses through go-sockaddr/template.
8 years ago
Kyle Havlovitz bd69c6d871 Add reload/leave http endpoints (#2516)
8 years ago
Seth Vargo 4179aacf11
Add an API method for determining the best status
8 years ago
Kyle Havlovitz 338e36cc5d Add logWriter to agent Create() method
8 years ago
Kyle Havlovitz 124f907063 Add monitor http endpoint
8 years ago
Kyle Havlovitz 92ce2c9e39 Use uuids in persist temp files to avoid race (#2494)
8 years ago
Kyle Havlovitz b1760b223e Improve logging when deregistering a nonexistent service (#2492)
8 years ago
Kyle Havlovitz 83d2f36b54 Merge pull request #2480 from hashicorp/b-atomic-writes
8 years ago
Kyle Havlovitz 7a3e0f8275
Add a note about not calling sync for persistCheckState
8 years ago
Kyle Havlovitz e30b289c6f
Call fsync() for saving check/service state
8 years ago
Kyle McCullough 73b281a27c Add setting to skip ssl certificate verification for HTTP checks (#1984)
8 years ago
James Phillips 233a3a101b Supports WAN and LAN Serf Bind Addresses. (#2468)
8 years ago
James Phillips c01a3871c9 Adds support for snapshots and restores. (#2396)
8 years ago
James Phillips 03ae813bc7 Merge pull request #2389 from hashicorp/jbs-2019
8 years ago
Brian Shumate 74a8fbef06
Lower Service tag DNS warning to DEBUG for #2019
8 years ago
Adam Wolfe Gordon 5ac5a8ccfc agent: Stop reaping child processes (resolves #1988)
8 years ago
James Phillips 57db4bcce6
Adds performance tuning capability for Raft, detuned defaults, and supplemental docs.
8 years ago
James Phillips 4c7a0ed3b0
Merge branch 'master' into f-deregister-critical
8 years ago
James Phillips ba60afd5d8
Cleans up based on code review feedback.
8 years ago
James Phillips fbdd021ab9
Adds an "lan" tagged address so we have a way to get them all.
8 years ago
James Phillips 4a3d7db24f
Adds ability to deregister a service based on critical check state longer than a timeout.
8 years ago
James Phillips d336bdd7b0
Adds basic ACL replication plumbing.
8 years ago
Cameron Davison d138752249
atomic write service state and checks files, fixes #1221
8 years ago
Sean Chittenden 112f3fd468
Give log reviewers a hint as to which check is failing
9 years ago
Sean Chittenden 63adcbd5ef
Revert "Move `structs.CheckID` to a new top-level package, `types`."
9 years ago
Sean Chittenden cbb945e76a
Move `structs.CheckID` to a new top-level package, `types`.
9 years ago
Sean Chittenden f5ab25163e
Move `structs.CheckID` to a new top-level package, `types`.
9 years ago
Sean Chittenden ddbe64a8c8
Float a type balloon. Some strings are square pegs in round holes.
9 years ago
James Phillips 7bf684ece1 Fixes some bad error returns in the persist service and check paths.
9 years ago
James Phillips ceac68c5eb Merge pull request #1762 from mshean/script-timeout
9 years ago
Matt Shean fe4107019e add Timeout field to CheckMonitor
9 years ago
James Phillips eedeba682b Makes reap time configurable for LAN and WAN.
9 years ago
Wim b5d45322b4 Allow [::] as a bind address (binds to first public IPv6 address)
9 years ago
James Phillips c60a526fde Sets up config for more address tags down the road, renames struct members.
9 years ago
Evan Gilman 8fa2a60208 Rectify value of `AdvertiseAddrWan` when set elsewhere
9 years ago
Sean Chittenden 7af6a94edb Factor out duplicate functions into a lib package
9 years ago
James Phillips 343838f12b Adds support for the reap lock.
9 years ago
Ryan Uber afafae53fd consul: dev mode works
9 years ago
James Phillips 95c708f65e Adds Docker checks support to client API.
9 years ago
James Phillips 5e7523ea4b Adds a slightly more flexible mock system so we can test DNS.
9 years ago
James Phillips c0bd639662 Makes the version upshift code look at the correct version field.
9 years ago
Diptanu Choudhury 471442e9a4 Making an explicit check to test whether a check is of type Monitor
9 years ago