Commit Graph

298 Commits (613be01f43e1e181174ace516efde09dbb620fb7)

Author SHA1 Message Date
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
Diptanu Choudhury 423f7fbcac Not adding the docker check if we couldn't create the client
9 years ago
Diptanu Choudhury 5f8f531d2a Defaulting to Monitor check
9 years ago
Diptanu Choudhury 71ede8addb Implemented Docker health checks
9 years ago
James Phillips 660da92152 Makes the default protocol 2 and lets 3 interoperate with 2.
9 years ago
James Phillips ad65d953f6 Scales coordinate sends to hit a fixed aggregate rate across the cluster.
9 years ago
James Phillips 66a3d29743 Simplifies the batching function and adds some comments.
9 years ago
James Phillips 5f754c4a87 Does some small cleanups based on PR feedback.
9 years ago
James Phillips d12aa2ffab Moves batching down into the state store and changes it to fail-fast.
9 years ago
James Phillips b9d5fb0f90 Flips the sense of the coordinate enable option.
9 years ago
James Phillips 86b112fe31 Does a clean up pass on the Consul side.
9 years ago
Derek Chiang f144d17b1c Address comments
9 years ago
Derek Chiang ab9262c656 Add a test case
9 years ago
Derek Chiang bf5cb7522f Use IndexedCoordinate instead
9 years ago
Derek Chiang a1854a7614 Some fixes
9 years ago
Derek Chiang 98d87b5dd5 Complete logic for sending coordinates
9 years ago
Derek Chiang 9113b26286 Some fixes
9 years ago
Derek Chiang a9ea503c69 Adding tests and stuff
9 years ago
James Phillips 4ee43e90b7 Deletes the old state store and all its accoutrements.
9 years ago
Dale Wijnand 5a28ebcaa3 Fix a bunch of typos.
9 years ago
Ryan Uber 125d7fd4ee agent: thread tokens through for maintenance mode
9 years ago
Peter Fern b023904298 Add TCP check type
9 years ago
Ryan Uber d0348d1291 Merge pull request #1004 from i0rek/advertise_addrs
10 years ago
Hans Hasselberg 267e0caf81 Implement advertise_addrs for SerfLan, SerfWan and RPC.
10 years ago
Ryan Uber 69921808ee agent: use persist/load/purge convention for function names
10 years ago
Ryan Uber 1636a35289 agent: check state is purged if expired
10 years ago
Ryan Uber 2ee8fa8e15 agent: purge check state when checks are deregistered
10 years ago
Ryan Uber 7e6e861394 agent: testing state persistence, recovery, and expiration
10 years ago
Ryan Uber 7597d3d798 agent: first stab at persisting check state
10 years ago
Ryan Uber ebe57a1f65 agent: refactor loadChecks/loadServices, fixes a few minor bugs
10 years ago
Armon Dadgar ebf961ef8b Merge pull request #927 from hashicorp/f-tls
10 years ago
Armon Dadgar 8d86290ebf Fixing merge conflict
10 years ago
Armon Dadgar a485eb8447 agent: copy config into consul config
10 years ago
Ryan Uber 3ed0146e44 agent: use service ID field to determine associated health checks during deregister
10 years ago
Ryan Uber 204c11ec01 agent: restore check status when re-registering (updating) services
10 years ago
Ryan Uber 8ef01236e1 agent: allow persisted services to be updated on disk
10 years ago
Ryan Uber 739d1fdf03 Merge pull request #891 from hashicorp/f-token
10 years ago
Ryan Uber 2b62f2f172 agent: use an additional parameter for passing tokens
10 years ago
Ryan Uber 18356328c4 agent: restore tokens for services and checks in config
10 years ago
Ryan Uber 663a86f9b9 agent: backwards compat for persisted services from pre-0.5.1
10 years ago
Ryan Uber 442933650e agent: safer read methods for tokens
10 years ago
Ryan Uber 1557f7f19c agent: test coverage loading service/check tokens from persisted files
10 years ago
Ryan Uber bebb5d9641 agent: add service/check token methods to reduce invasiveness
10 years ago
Ryan Uber 92add18e1e agent: persist tokens from API registrations
10 years ago
Ryan Uber bfb27d18cd agent: initial pass threading through tokens for services/checks
10 years ago
Ryan Mills 275af975e8 Allow specifying a status field in the agent/service/register and agent/check/register endpoints.
10 years ago
pepov bac3ae9494 Add configuration option to specify a separate address for advertising on the wan
10 years ago
Michael Fraenkel 8c26836783 Support SesionTTLMin configuration
10 years ago
Ryan Uber 04a2faed22 agent: warn and purge checks which cannot be restored from agent state
10 years ago
Armon Dadgar b319c41bd9 agent: Snapshot and restore health state on reload. Fixes #693
10 years ago
Ryan Uber 103e9e7fc1 agent: clarify the valid characters for dns
10 years ago
Ryan Uber 722b255816 agent: warn on service tags with invalid chars
10 years ago
Ryan Uber 5e801c905d agent: Warn on dns-incompatible characters during service registration. Fixes #683.
10 years ago
arnaud briche e87afe341b - add Timeout field to CheckType and CheckHTTP to make http request timeout configurable by the client
10 years ago
foostan 401bc71cb2 Validate ServiceID/CheckID when deregistering.
10 years ago
Armon Dadgar e1a5d537d4 Merge pull request #625 from hashicorp/f-maintcmd
10 years ago
Ryan Uber 44f3c20e50 command/maint: clean up
10 years ago
Ryan Uber 09fd2a7e94 command/maint: display active maintenance when no args are passed
10 years ago
Armon Dadgar cf04d6ae31 Merge pull request #622 from hashicorp/f-sockets
10 years ago
Ryan Uber 124e7bfa7e agent: use const for default maintenance reason strings
10 years ago
Ryan Uber f00b5b542e agent: support passing ?reason= for custom notes field values on maintenance checks
10 years ago
Ryan Uber b6a0f2baae agent: fix maintenance check ID
10 years ago
Ryan Uber 674be58e55 agent: support multiple checks per service
10 years ago
Ryan Uber 21dd95d9af agent: beginning socket user/group/mode support as discussed in #612
10 years ago
Ryan Uber ba2d0fa7e3 agent: maintenance logging + unique service check IDs
10 years ago
Ryan Uber 7748c62d09 agent: node maintenance mode works
10 years ago
Ryan Uber 9ee1e6e858 agent: maintenance mode api's are idempotent
10 years ago
Ryan Uber 8819d71f99 agent: maintenance mode is persistent
10 years ago
Ryan Uber 3fbb2be6c0 agent: test agent service maintenance mode
10 years ago
Ryan Uber 2973cd9131 agent: first pass at service maintenance mode
10 years ago
Ryan Uber f01bb5cf3b agent: error if binding to existing socket file
10 years ago
Nicholas Capo 98eb935392 command/agent: HTTP Check: Create httpClient in Start()
10 years ago
Nicholas Capo 50853265dd command/agent: Stop HTTP checks when the check is removed
10 years ago
Nicholas Capo fb5ba8d97d command/agent: Add simple HTTP check type
10 years ago
Ryan Uber a24f6e3d4d agent: test service and check unloading
10 years ago
Ryan Uber 51fe9f32ff agent: consolidate service loading code, better logging
10 years ago
Ryan Uber cfde9313de agent: separate service and check loading/unloading concerns
10 years ago
Ryan Uber 0b9f2b0954 agent: persist service/check data using hashed service/check IDs (fixes #573)
10 years ago
Veres Lajos 3b1068387a typofixes - https://github.com/vlajos/misspell_fixer
10 years ago
Ryan Uber dd4fadfc9e agent: persist CheckType with health checks
10 years ago
Ryan Uber b7587cac42 agent: allow config reload to modify checks/services persistence
10 years ago
Ryan Uber 9f9087badb agent: prefer config over persisted services/checks (#497)
10 years ago
Ryan Uber 2ebe85414f agent: pass error through when writing state files
10 years ago
Ryan Uber 79ba25b94d agent: default restored checks to critical status
10 years ago
Ryan Uber 46a5272a8a agent: first pass at local service and check persistence
10 years ago
Ryan Uber 8a652c6ffa agent: fix loading keyring on agent start
10 years ago
Ryan Uber 7a74f559b9 command: remove -init argument from keyring, auto-persist keyrings when using agent -encrypt
10 years ago
Ryan Uber 431b366d4f agent: split keyring functionality out of agent.go
10 years ago
Ryan Uber 2220ccdac2 command: various cleanup
10 years ago
Ryan Uber 353b67826a command: use separate key files for LAN/WAN
10 years ago
Ryan Uber 530f3ba747 command/keys: refactor, restrict key operations to server nodes
10 years ago
Ryan Uber 8a40f3888c agent: move keyring initialization out of agent, add -init option to keys command
10 years ago
Ryan Uber 0952535e33 agent: fix keyring loading when config is passed off
10 years ago
Ryan Uber b6037ef323 agent: clean up keyring file implementation
10 years ago
Ryan Uber fcb0961436 agent: refactor keyring loader
10 years ago
Ryan Uber 46ce9e936f command/keys: remove key command implemented
10 years ago
Ryan Uber 1ac6b10aed command/keys: use key command implemented
10 years ago
Ryan Uber 7b6f3d6dcc agent: install key command implemented
10 years ago
Ryan Uber 67b179ccc9 command: basic rpc works for keys command
10 years ago
Ryan Uber 4dd1b42477 consul: use rpc layer only for key management functions, add rpc commands
10 years ago
Ryan Uber 471ee9ce8f command: create serf dir if it doesn't exist, document -disable-keyring arg
10 years ago
Ryan Uber 0da6e08d9d consul: fix json marshaling
10 years ago
Ryan Uber e20a724999 consul: first pass at keyring integration
10 years ago
Ryan Uber df5859580f agent: pass notes field through for checks inside of service definitions. Fixes #449
10 years ago
Ryan Uber 2319460904 agent: initialize local consul service tags to fix service sync
10 years ago