Commit Graph

655 Commits (6f0b1a3b46b62f3d94d065dad3714345245f7015)

Author SHA1 Message Date
Armon Dadgar f2e1065246 agent: Testing reverse lookup with custom TLD
10 years ago
dankennedy 63af8d08e1 replaced consul domain with configured domain. Fixes #582
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
Ryan Uber d97305e376 command: check LastIndex is not zero while waiting for leader
10 years ago
Armon Dadgar 7b7c1afe1b command/exec: Use TTL for local and foreign
10 years ago
Armon Dadgar ce83322e16 command/exec: Support foreign datacenters
10 years ago
Ryan Uber c2177c0ed5 Merge pull request #581 from hashicorp/f-consulapi
10 years ago
Ryan Uber 5555e0eb9b api: initial import from armon/consul-api
10 years ago
Ryan Uber db3c502dcc Merge pull request #576 from hashicorp/f-verify-config
10 years ago
Daniel Malon bd65cbb7d7 use the service specific address in SRV response
10 years ago
Ryan Uber 42ace3a6b5 agent: use mapstructure's Metadata.Unused to detect extraneous config
10 years ago
Ryan Uber b8740b62da agent: reject config with invalid options
10 years ago
Armon Dadgar f86d7c3a09 Merge pull request #558 from ceh/http-api-response-headers
10 years ago
Daniel Malon 051ac8eb0b advertise specific address for a service
10 years ago
Thordur Bjornsson a12ffef8b6 Test both ?pretty both bare and with value.
10 years ago
Thordur Bjornsson 1435818792 handle ?pretty similarly to ?stale, ?consistent etc.
10 years ago
Ryan Uber e9615c50e6 agent: test pretty printed json
10 years ago
Emil Hessman cb764c35e5 add ability to specify response headers on the HTTP API
10 years ago
Ryan Breen f2bd641402 Clean up log line and reduce test time.
10 years ago
Ryan Breen d82ef7bb8c Test that staggered checks run within the defined interval.
10 years ago
Ryan Breen 2e58f54a26 Well, that sure is cleaner.
10 years ago
Ryan Breen 60dacecb39 Add a randomized start before running CheckMonitors.
10 years ago
lalyos 89f271a9da Add default rpc address configuration option as CONSUL_RPC_ADDR env variable
10 years ago
Armon Dadgar a5a9f051cd consul: Ignore zero ttl on session
10 years ago
Armon Dadgar 29afa881f4 Merge pull request #524 from amalaviy/session_ttl
10 years ago
Atin Malaviya ac54010027 Fixed clearSessionTimer, created invalidateSession, added invalid TTL test
10 years ago
Atin Malaviya 60915629f6 Took out usage of snapshot SessionListTTL
10 years ago
Atin Malaviya 0f9723e6f8 Remove hardcoded wait time in session TTL tests
10 years ago
Atin Malaviya 5229f3b44d Clean up code based on feedback from armon
10 years ago
Atin Malaviya 624c465e2b Added more tests. Also added return of 404 if the session id to renew is not found
10 years ago
Atin Malaviya 4732c36d88 Consul Session TTLs
10 years ago
Ali Abbas d73e1cae85 since dns.TXT is an external dependency, it is safer to add keys to the fields to avoid some potential ordering issues if changes in this field occur with upstream
10 years ago
Ali Abbas a84a88b3f5 remove control flow on errExit by switching from bool to int
10 years ago
Chavez de0d2d7b78 agent: agent test fixes
10 years ago
Veres Lajos 3b1068387a typofixes - https://github.com/vlajos/misspell_fixer
10 years ago
Armon Dadgar 5887242db2 agent: Handle service ACLs when doing anti-entropy
10 years ago
Ryan Uber 81d4e5cfd4 agent: fixup all check definitions from json config
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
Ali Abbas a4656f1ecf fix Sprintf formatting
10 years ago
Ali Abbas e395420af6 cleanup unreachable code
10 years ago
Ryan Uber 9f9087badb agent: prefer config over persisted services/checks (#497)
10 years ago
Armon Dadgar f74d3dbd92 Merge pull request #497 from hashicorp/f-persist
10 years ago
Armon Dadgar 50e21b071c agent: Adding TODO for future optimization
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
lalyos 8f04401648 agent: implementing reverse dns lookup for ipv4 and ipv6
10 years ago
Armon Dadgar f57efbc778 Merge pull request #487 from amalaviy/ephemeral_keys
10 years ago
Ryan Uber dbd420fc4b agent: make event buffer test non-sequential
10 years ago
Ryan Uber da96fb5499 agent: Test event order preservation for watches
10 years ago
Ryan Uber 96619b7f88 agent: Preserve ordering of event buffer. Fixes #479
10 years ago
Atin Malaviya 6ef03a806c Clean up tests, use switch to default session.Behavior value if unspecified, unrecognized
10 years ago
Atin Malaviya 47241fc1c8 Ephemeral Nodes for via Session behavior settings.
10 years ago
Ryan Uber 28bd9810a7 agent: remove unused config variable
10 years ago
Ryan Uber c283754381 Rebase against upstream
10 years ago
Ryan Uber bc0eb4c16d agent: fix gossip encryption detection
10 years ago
Ryan Uber 8a652c6ffa agent: fix loading keyring on agent start
10 years ago
Ryan Uber ab5fbe4094 agent: ignore -encrypt if provided when keyring exists
10 years ago
Ryan Uber 4203e7ab6d consul: clean up comments, fix globalRPC tests
10 years ago
Ryan Uber 0cafb129ee consul: more tests, remove unused KeyManager() method
10 years ago
Ryan Uber 648c7cdc8e consul: simplify keyring operations
10 years ago
Ryan Uber 1398538ae2 command/keyring: adjust command help
10 years ago
Ryan Uber e60c909276 command/keyring: clean up tests
10 years ago
Ryan Uber 0b8fe6cc83 agent: fix test cases
10 years ago
Ryan Uber c945311baf agent: make rpc tests more reliable
10 years ago
Ryan Uber bc2b2120fa agent: -encrypt appends to keyring if one exists
10 years ago
Ryan Uber 22b2c63304 command/agent: fix up gossip encryption indicator
10 years ago
Ryan Uber 7a74f559b9 command: remove -init argument from keyring, auto-persist keyrings when using agent -encrypt
10 years ago
Ryan Uber 1f9d13dc73 agent: squash some more common keyring semantics
10 years ago
Ryan Uber 59a7938d1f agent: guard against empty keyring files
10 years ago
Ryan Uber 7b4b87ccf1 consul: use keyring operation type to cut out duplicated logic
10 years ago
Ryan Uber c11f6b5152 agent: fix install key test
10 years ago
Ryan Uber daf77c3f5b command/keyring: cleanup
10 years ago
Ryan Uber 6a3271980e command/keyring: refactor, adjust tests
10 years ago
Ryan Uber 91ad3461f4 command: fix panic when client RPC is asked for a keyring operation
10 years ago
Ryan Uber 9d01174521 consul: kill unused struct fields
10 years ago
Ryan Uber a163db2269 command/keyring: remove unneeded -wan arg, fix tests
10 years ago
Ryan Uber f86904ee59 agent: adjust rpc client tests for keyring
10 years ago
Ryan Uber fcba072246 command: fixing test cases for keyring
10 years ago
Ryan Uber e9f8f7f2d7 command/keyring: clean up output
10 years ago
Ryan Uber 9056e617cb consul: cross-dc key rotation works
10 years ago
Ryan Uber 2bdeaa0c6a consul: restructuring
10 years ago
Ryan Uber 8dec2744da consul: refactor keyring, repeat RPC calls to all DC's
10 years ago
Ryan Uber cfbf2b4f94 command: allow wan ring to be modified separately from lan pools
10 years ago
Ryan Uber 431b366d4f agent: split keyring functionality out of agent.go
10 years ago
Ryan Uber 5ab4a590d7 command: test generated keyring file content and conflicting args for agent
10 years ago
Ryan Uber 621aafa9b4 agent: test loading keyring files for client and server
10 years ago
Ryan Uber 2220ccdac2 command: various cleanup
10 years ago
Ryan Uber d906d16d15 agent: add tests for keyring presence checks
10 years ago
Ryan Uber 77519a5439 command/keyring: add tests for init
10 years ago
Ryan Uber 353b67826a command: use separate key files for LAN/WAN
10 years ago
Ryan Uber 67d78628a3 command: renamed keys to keyring to disambiguate usage
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 df68820645 agent: install/use/remove key tests
10 years ago
Ryan Uber 2280434e16 agent: add rpc tests for listing lan/wan gossip keys
10 years ago
Ryan Uber e78c235dcf command/keys: test network connection failure
10 years ago
Ryan Uber 5bf70bc605 command/keys: adding more tests
10 years ago
Ryan Uber 90de483871 command/keys: begin tests
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 222adc92a0 command/keys: customize info message when listing keys
10 years ago
Ryan Uber 7b6f3d6dcc agent: install key command implemented
10 years ago
Ryan Uber 3a68d9e506 command/keys: use PrefixedUi for keys command
10 years ago
Ryan Uber 0f611572cc command/keys: fail fast if no actionable args were passed
10 years ago
Ryan Uber e4251a3372 agent: fix inversed lan/wan key listing
10 years ago
Ryan Uber 9b4707a329 command/keys: list keys working end-to-end
10 years ago
Ryan Uber f771f2ef92 command: add option for -wan to keys command
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 ed3562b809 command: add skeletons for keys command
10 years ago
Ryan Uber b1c0bb60ce command: warn when passing -encrypt when keyring already exists
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
Armon Dadgar 6c83ef119a agent: Fixing wan join tests
10 years ago
Armon Dadgar c449f07b38 agent: Fixing config merge test
10 years ago
Armon Dadgar 666cf3c483 agent: Fixing UiDir in test
10 years ago
Armon Dadgar 485f0a0c93 agent: Fixing port collision in tests
10 years ago
Armon Dadgar 6be29e17c2 Merge pull request #478 from amalaviy/https
10 years ago
Atin Malaviya 61f1d24f39 consul.Config() helper to generate the tlsutil.Config{} struct, 30 second keepalive, use keepalive for HTTP and HTTPS
10 years ago
Janne Paenkaelae e6b6f18172 Make the 'consul version' to return value that is from 'git describe --tags'
10 years ago
Atin Malaviya f1f8c88228 Moved TLS Config stuff to tlsutil package
10 years ago
Atin Malaviya 0904c651a8 Change names to StartJoinWan, RetryJoinWan etc
10 years ago
Atin Malaviya f4fd8453ed Added HTTPS support via a new HTTPS Port configuration option similar to the HTTP Port.
10 years ago
Atin Malaviya 5b41170f47 Add start-wan-join, retry-wan-join and related configuration options and commandline options
10 years ago
Ryan Uber 1b63cbf21e Merge pull request #458 from hashicorp/h-notes
10 years ago
Ryan Uber df5859580f agent: pass notes field through for checks inside of service definitions. Fixes #449
10 years ago
Armon Dadgar cf7e9e40d5 Fixing unit tests
10 years ago
Armon Dadgar cd936793ad Support old recursor config for backwards compatibility
10 years ago
foostan 35b006d884 Add multiple recursor definition support
10 years ago
Ryan Uber 28f31a8dd8 agent: add support for multiple checks and config mixing
10 years ago
Ryan Uber c1dfa55859 agent: test config as a whole in services test
10 years ago
Alexander Simmerl 461c1e18a5 Add multiple service definition support
10 years ago
Armon Dadgar 541b98a926 Gofmt
10 years ago
Armon Dadgar ce4aa7beb5 Switching to the pinned version of msgpack
10 years ago
Ryan Uber cc613a90fd agent: test services are in sync when added from the API
10 years ago
Ryan Uber 525d74aebc agent: add test for consul service sync state
10 years ago
Ryan Uber 2319460904 agent: initialize local consul service tags to fix service sync
10 years ago
Armon Dadgar e4dc15b9e3 agent: skip syslog test on windows
10 years ago
Ryan Uber b2ae3434b1 agent: optimize rpc monitor test
10 years ago
Ryan Uber 35157659a3 agent: fix failing monitor test
10 years ago
Armon Dadgar 4f1fa3a4ce Merge pull request #401 from hashicorp/f-healthcheck
10 years ago
Armon Dadgar e720a09aa4 Merge pull request #400 from hashicorp/f-service-filter
10 years ago
Ryan Uber 149656951d agent: fix tests after default status change
10 years ago
Ryan Uber 10610d3d26 agent: fix failing test
10 years ago
Ryan Uber cfca160cd5 formatting
10 years ago
Ryan Uber aa6ffc90f0 agent: remove special case of consul service, adjust tests
10 years ago
Ryan Uber 2f93e13da8 consul: kill remaining use of HealthUnknown
10 years ago
Ryan Uber f311ada60e agent: Default health checks to critical. Fixes #341
10 years ago
Ryan Uber e2246b9f6c agent: account for consul service in anti-entropy tests
10 years ago
Ryan Uber cc999e339b agent: fix node name in cli test
10 years ago
Ryan Uber b1e8d351ab agent: re-use ConsulServiceID from consul package
10 years ago
Ryan Uber 4576b4eb29 agent: auto-register the consul service on server nodes
10 years ago
Ryan Uber b804e1ab52 agent: Allow 'consul' service to be targeted for events. Fixes #344
10 years ago
Armon Dadgar 6ffcdbc183 Merge pull request #397 from hashicorp/f-syslog
10 years ago
Ryan Uber b9977338fd agent: Filter messages logged to syslog. Fixes #272
10 years ago
Armon Dadgar 84649b5423 agent: Fixing multiple headers for /v1/event/list endpoint. Fixes #361
10 years ago
Armon Dadgar 3e32e906d1 agent: Fixing tests
10 years ago
Armon Dadgar bee5fe280c Merge pull request #396 from ryanuber/f-retry-join
10 years ago
Ryan Uber b35578a917 command: formatting
10 years ago
Ryan Uber 599d0558e7 agent: test max retries in config
10 years ago
Ryan Uber 62b4752804 command/agent: add help for retry join
10 years ago
Ryan Uber 67e1f363e1 agent: add retry join tests
10 years ago
Ryan Uber 4bc4ba2d09 agent: test retry join config
10 years ago
Ryan Uber 6d75fc8fb2 agent: merge RetryInterval in config merger
10 years ago
Ryan Uber 7c91c08457 agent: first pass at join retry
10 years ago
Armon Dadgar 77436a15fd agent: tests for DNS truncate config
10 years ago
Alex Wheeler 6cac440a8d Adding support for enabling the DNS truncate flag for UDP queries.
10 years ago
Anton Lindström b8ae4b7d92 Remove redundant assignment
10 years ago
William Tisäter c061eec101 Go format fix
10 years ago
Soren Hansen caedef5cc1 Also change the call sites. *sigh*
10 years ago
Soren Hansen 8605488598 Fix style issue in remote_exec_test
10 years ago
Soren Hansen 8f5089a661 Remove test code duplication
10 years ago
Soren Hansen 264d619457 Pass exitCode by reference
10 years ago
Armon Dadgar 36fd5f76c2 agent: Fixing issue with multiple watches. Fixes #337
10 years ago
foostan 525c0f508a Fix indent space
10 years ago
Armon Dadgar a8b66666f5 agent: Fixing config merge issue
10 years ago
Armon Dadgar d04880cc60 agent: Support for checkpoint
10 years ago
Armon Dadgar e86c5b2627 agent: Address overrides. Fixes #301 and #253
10 years ago
Armon Dadgar cc728a1345 agent: Adding address configurations
10 years ago
Armon Dadgar 98acc0a908 agent: statsd support. Fixes #247
10 years ago
Armon Dadgar a6f5e40eac command/exec: Improving output
10 years ago
Armon Dadgar 6ef4f9fdc4 command/exec: Tuning constants
10 years ago
Armon Dadgar 3286074758 agent: Handle cancel for idle wait
10 years ago
Armon Dadgar bfb2b93d75 command/exec: Fixing verbose flag
10 years ago
Armon Dadgar 5b619eec96 command/exec: Testing exec
10 years ago
Armon Dadgar de4adc4f66 command/exec: High level tests
10 years ago
Armon Dadgar 9b74b86709 agent: Testing remote exec
10 years ago
Armon Dadgar 9ba4f31fde agent: Refactor remote exec write code
10 years ago
Armon Dadgar a0c6dbfe2a agent: testing remote exec writer
10 years ago
Armon Dadgar 61a2170b7d command/exec: Fixing use of shutdown ch
10 years ago
Armon Dadgar 53777527e0 agent: First pass at remote exec support
10 years ago