Commit Graph

583 Commits (30903db4421530c5c18686e9768bb1e37feaa4d3)

Author SHA1 Message Date
Alvin Huang fe7b841e4a add serf check to TestAPI_SemaphoreConflict
6 years ago
Matt Keeler acfd87c673
Improve Connect with Prepared Queries (#5291)
6 years ago
Matt Keeler 1885cf78f6
Fall back to using old fields when marshaling
6 years ago
Kyle Havlovitz 1a4978fb94
Re-add ReadableDuration types to health check definition
6 years ago
Hans Hasselberg 174099593a
agent: display messages from serf in cli (#5236)
6 years ago
Kyle Havlovitz 5bdf130767
Merge pull request #4869 from hashicorp/txn-checks
6 years ago
Paul Banks ef9f27cbc8
connect: tame thundering herd of CSRs on CA rotation (#5228)
6 years ago
Kyle Havlovitz 21380021af txn: update existing txn api docs with new operations
6 years ago
Paul Banks bb7145f27d
agent: add default weights to service in local state to prevent AE churn (#5126)
6 years ago
Grégoire Seux 4f62a3b528 Implement /v1/agent/health/service/<service name> endpoint (#3551)
6 years ago
Pierre Souchay f4dc8b42e0 [Travis][UnstableTests] Fixed unstable tests in travis (#5013)
6 years ago
Kyle Havlovitz 67bac7a815 api: add support for new txn operations
6 years ago
Kyle Havlovitz ab58986ac3 txn: add node operations
6 years ago
Kyle Havlovitz b371ea8783 Add check operations to transaction api
6 years ago
Philipp Gillé 2de7fefedd Remove wrong space character (#4910)
6 years ago
Matt Keeler db2cf01406 Adds documentation for the new ACL APIs (#4851)
6 years ago
Rémi Lapeyre f8e56d5365 Add support for multiple checks in Consul Client (#4849)
6 years ago
Matt Keeler d238cb181c
New ACL API Tests (#4848)
6 years ago
Matt Keeler a02a6be6b9
Implement CLI token cloning & special ID handling (#4827)
6 years ago
Matt Keeler 18b29c45c4
New ACLs (#4791)
6 years ago
Jack Pearkes 8c684db488 New command: consul debug (#4754)
6 years ago
Rebecca Zanzig 34e5516834 Support multiple tags for health and catalog http api endpoints (#4717)
6 years ago
Pierre Souchay 251156eb68 Added SOA configuration for DNS settings. (#4714)
6 years ago
R.B. Boyer c310451b2b cli: avoid passing envoy bootstrap configuration as arguments (#4747)
6 years ago
Paul Banks 161482d2cd Fix up tests broken by master merge; add proxy tests to services command (and fix it!); actually run the proxycfg.Manager
6 years ago
Paul Banks dca1303d05 Connect Envoy Command (#4735)
6 years ago
Paul Banks e812f5516a Add -sidecar-for and new /agent/service/:service_id endpoint (#4691)
6 years ago
Paul Banks 1e7eace066 Add SidecarService Syntax sugar to Service Definition (#4686)
6 years ago
Paul Banks b83bbf248c Add Proxy Upstreams to Service Definition (#4639)
6 years ago
Paul Banks 88388d760d Support Agent Caching for Service Discovery Results (#4541)
6 years ago
Freddy 524192c919 Improve resilience of api pkg tests (#4676)
6 years ago
Pierre Souchay 22500f242e Fix unstable tests in agent, api, and command/watch
6 years ago
Pierre Souchay eddcf228ea Implementation of Weights Data structures (#4468)
6 years ago
Freddy 4c5758d891
Remove operator_area note from godoc overview (#4603)
6 years ago
Siva Prasad 771e0bafd2
Addresses the flakiness of CatalogNodes (#4530)
6 years ago
Pierre Souchay cec5d72396 BUGFIX: Unit test relying on WaitForLeader() did not work due to wrong test (#4472)
6 years ago
Geoffrey Grosenbach 827fbac3ab Copy-and-paste Go client example (#4448)
6 years ago
Kyle Havlovitz ed87949385
Merge pull request #4400 from hashicorp/leaf-cert-ttl
6 years ago
Paul Banks 8cbeb29e73
Fixes #4421: General solution to stop blocking queries with index 0 (#4437)
6 years ago
Kyle Havlovitz d6ca015a42
connect/ca: add configurable leaf cert TTL
6 years ago
Matt Keeler 7572ca0f37
Merge pull request #4374 from hashicorp/feature/proxy-env-vars
6 years ago
Matt Keeler 7dfd2ab316 Add some tests for GenerateEnv
6 years ago
Matt Keeler c54b43bef3 PR Updates
6 years ago
Matt Keeler 3b6eef8ec6 Pass around an API Config object and convert to env vars for the managed proxy
6 years ago
Hamish 9043966efd Fix lock and semaphore timeouts
6 years ago
Mitchell Hashimoto 1c3e9af316
agent: 400 error on invalid UUID format, api handles errors properly
7 years ago
Kyle Havlovitz 162daca4d7 revert go changes to hide rotation config
7 years ago
Kyle Havlovitz c20bbf8760 connect/ca: hide the RotationPeriod config field since it isn't used yet
7 years ago
Kyle Havlovitz bc997688e3 connect/ca: update Consul provider to use new cross-sign CSR method
7 years ago
Paul Banks b5f24a21cb Fix test broken by final telemetry PR change!
7 years ago
Paul Banks 597e55e8e2 Misc test fixes
7 years ago
Paul Banks 96c416012e Misc rebase and test fixes
7 years ago
Paul Banks 43b48bc06b Get agent cache tests passing without global hit count (which is racy).
7 years ago
Paul Banks 05a8097c5d Fix misc test failures (some from other PRs)
7 years ago
Kyle Havlovitz 82a4b3c13f connect: fix two CA tests that were broken in a previous PR (#60)
7 years ago
Paul Banks 0824d1df5f Misc comment cleanups
7 years ago
Mitchell Hashimoto 71216631d7 api: update intention struct for precedence
7 years ago
Mitchell Hashimoto 77a8003475 api: change Connect to a query option
7 years ago
Mitchell Hashimoto b55f0641e6 api: support ExecuteConnect
7 years ago
Mitchell Hashimoto 297e4f272e api: support native connect
7 years ago
Paul Banks df2cb30b01 Make tests pass and clean proxy persistence. No detached child changes yet.
7 years ago
Paul Banks cdc7cfaa36 Abandon daemonize for simpler solution (preserving history):
7 years ago
Paul Banks ba0fb58a72 Make daemoinze an option on test binary without hacks. Misc fixes for racey or broken tests. Still failing on several though.
7 years ago
Kyle Havlovitz 74f225fcd2
Add client api support for CA config endpoints
7 years ago
Mitchell Hashimoto 3a6a750972
api: IntentionUpdate API
7 years ago
Mitchell Hashimoto f27711a319
api: IntentionDelete + tests
7 years ago
Mitchell Hashimoto 272211e171
command/intention/get: the get command without tests
7 years ago
Mitchell Hashimoto 988d7d984a
command/intention/finder: package for finding based on src/dst
7 years ago
Mitchell Hashimoto 961e9c1eaf
command/intention/create
7 years ago
Mitchell Hashimoto a5ecdc5798
api: IntentionCheck
7 years ago
Paul Banks 7c7c858a9a
More test cleanup
7 years ago
Paul Banks 4aeab3897c
Fixed many tests after rebase. Some still failing and seem unrelated to any connect changes.
7 years ago
Mitchell Hashimoto aaa2431350
agent: change connect command paths to be slices, not strings
7 years ago
Paul Banks e0e12e165b
TLS watching integrated into Service with some basic tests.
7 years ago
Paul Banks cd88b2a351
Basic `watch` support for connect proxy config and certificate endpoints.
7 years ago
Paul Banks 36dbd878c9
Adds `api` client code and tests for new Proxy Config endpoint, registering with proxy and seeing proxy config in /agent/services list.
7 years ago
Paul Banks 88541bba17
Add tests all the way up through the endpoints to ensure duplicate src/destination is supported and so ultimately deny/allow nesting works.
7 years ago
Mitchell Hashimoto 97f5414d94
api: rename Authorize field to ClientCertURI
7 years ago
Mitchell Hashimoto 9638466b88
api: fix up some comments and rename IssuedCert to LeafCert
7 years ago
Mitchell Hashimoto 4689d8373a
api: IntentionMatch
7 years ago
Mitchell Hashimoto 663a12d96b
api: starting intention endpoints, reorganize files slightly
7 years ago
Mitchell Hashimoto 263e2c7cf7
api: endpoints for working with CA roots, agent authorize, etc.
7 years ago
Paul Banks 125555e1aa
require -> assert until rebase
7 years ago
Paul Banks 9309422fd9
Add Connect agent, catalog and health endpoints to api Client
7 years ago
Kyle Havlovitz b73323aa42
Remove the script field from checks in favor of args
7 years ago
Pierre Souchay c152cb7bdf Added Missing Service Meta synchronization and field
7 years ago
Paul Banks 0d8993e338
Allow ignoring checks by ID when defining a PreparedQuery. Fixes #3727.
7 years ago
Preetha Appan c7581d68c6
Renames agent API layer for service metadata to "meta" for consistency
7 years ago
Preetha daa61c5803
Merge pull request #3881 from pierresouchay/service_metadata
7 years ago
Josh Soref 94835a2715 Spelling (#3958)
7 years ago
Anubhav Mishra 0813175340
fix typo
7 years ago
Pierre Souchay b259b1609c Merge remote-tracking branch 'origin/master' into service_metadata
7 years ago
Kyle Havlovitz c3e94970a0
Add gRPC fields to client api and agent check endpoint docs
7 years ago
Pierre Souchay 80dde5465b Added support for Service Metadata
7 years ago
Veselkov Konstantin 7de57ba4de remove golint warnings
7 years ago
James Hartig ac225b2e7d Added CheckID and Name to AgentServiceCheck struct
7 years ago
James Phillips 53a881becc
Tightens up the API test verification.
7 years ago
James Phillips ca3f9024ac
Works around mapstructure behavior to enable sessions with no checks.
7 years ago
James Phillips 3177c2b450
Opens up the timing on the metrics test so it's less flaky.
7 years ago
James Phillips 93f68555d0
Adds enable_agent_tls_for_checks configuration option which allows (#3661)
7 years ago
James Phillips 4a2cafe525
Adds HTTP/2 support to Consul's HTTPS server. (#3657)
7 years ago
James Phillips 172d5c0c40
Fetches metrics in the retry loop so there's some hope.
7 years ago
Kyle Havlovitz c9c083d843
Update AgentCheck struct in api
7 years ago
Kyle Havlovitz d3dd2b1402
Move check definition to a sub-struct
7 years ago
Kyle Havlovitz dbab3cd5f6
Merge branch 'master' into esm-changes
7 years ago
Kyle Havlovitz 021b2849c5
Remove redundant lines from coordinate test
7 years ago
Kyle Havlovitz b0536a96cc
Fill out the tests around coordinate/node functionality
7 years ago
Kyle Havlovitz a1d14019dd
Add tests around coordinate update endpoint
7 years ago
Kyle Havlovitz 2392545adc
Merge branch 'coordinate-node-endpoint' of github.com:hashicorp/consul into esm-changes
7 years ago
Kyle Havlovitz 5589eadcf5
Added Coordinate.Node rpc endpoint and client api method
7 years ago
Kyle Havlovitz ce4e8c46fa
Add deregister critical service field and refactor duration parsing
7 years ago
James Phillips 21f38bff6f
Adds retry to API metrics test (flaky test).
7 years ago
Kyle Havlovitz 291455f475
Added coordinate update http endpoint
7 years ago
Kyle Havlovitz d56936e27a
Added remaining HTTP health check fields to structs
7 years ago
Kyle Havlovitz a7c42a6c2a
Expose SkipNodeUpdate field and some health check info in the http api
7 years ago
Ryan Slade dcb392df46 Simplify string(buf.Bytes()) to buf.String() (#3590)
7 years ago
James Phillips 53f67c3993 Fixes API client for ScriptArgs and updates documentation. (#3589)
7 years ago
Ryan Slade 85e4aea9d1 Replace time.Now().Sub(x) with time.Since(x)
7 years ago
James Phillips 575d70aaa7
Cleans up some drift between the OSS and Enterprise trees.
7 years ago
James Bardin fea32fb7d7 retry locks on network errors (#3553)
7 years ago
Artiom Diomin 2e229617ce Fix example code formatting in godoc
7 years ago
Frank Schröder ce887a0c45 Provide stable config for agent/self (#3532)
7 years ago
Frank Schröder 21118cafeb Recursive sanitize (#3505)
7 years ago
Preetha Appan 3c4a108769 Move Raft protocol version for list peers end point to server side, fix unit tests. This fixes #3449
7 years ago
Preetha Appan 00840929ea Fix import order
7 years ago
preetapan 73951d8319 Merge pull request #3494 from hashicorp/enforce_json_extension
7 years ago
James Phillips 45646ac3f4 Bumps default Raft protocol to version 3. (#3477)
7 years ago
Preetha Appan a4331a480c Fix one more unit test that created a config file
7 years ago
Frank Schröder 12216583a1 New config parser, HCL support, multiple bind addrs (#3480)
7 years ago
James Phillips 00605c0214
Shows the segment name in the keyring API and command output.
7 years ago
James Phillips 1a117ba0a8
Makes the all segments query explict, and the default for `consul members`.
7 years ago
Kyle Havlovitz 20296d4a89
Change segment list endpoint in docs/client api
7 years ago
Kyle Havlovitz 62102a537e
Organize segments for a cleaner split between enterprise and OSS
7 years ago
Kyle Havlovitz 21513b0393
Update coord display in ui to account for segments
7 years ago
Kyle Havlovitz 2ada0439d4
Add rpc_listener option to segment config
7 years ago
James Phillips b1a15e0c3d
Adds open source side of network segments (feature is Enterprise-only).
7 years ago
Illirgway e0cc1ce679 Fix bug with unused (replaced with "") CONSUL_HTTP_AUTH in some places
7 years ago
James Phillips 6ccf724c0c
Adds a guard to make sure that empty log lines don't close consul monitor.
7 years ago
Kyle Havlovitz 5b998cacb1
Update api structs for metrics endpoint
7 years ago
Kyle Havlovitz d5634fe2a8
Add support for labels/filters from go-metrics
7 years ago
James Phillips 4bee2e49f5 Adds secure introduction for the ACL replication token. (#3357)
7 years ago
James Phillips c0a5ad7903 Adds a new /v1/acl/bootstrap API (#3349)
7 years ago
James Phillips 496b0bcf07 Adds support for agent-side ACL token management via API instead of config files. (#3324)
7 years ago
Kyle Havlovitz 19eae3d14b
Add UpgradeVersionTag to autopilot config
7 years ago
James Phillips 1791d99a10 Adds new config to make script checks opt-in, updates documentation. (#3284)
7 years ago
James Phillips 8d0a048408 Expands and rework context support in the API client. (#3273)
7 years ago
James Bardin deb43fea6b accept recv-only channels for cancellations (#3271)
7 years ago
Frank Schroeder 9c54f30c94 api: fix TestAPI_CatalogNodes test
7 years ago
Frank Schroeder 0e931a713c agent: fix failing test from localState decoupling
7 years ago
Frank Schroeder 7bbfef7000 api: refactor: unify naming of API tests
7 years ago
Frank Schroeder 8edeabce9a api: refactor: prefix all API tests with API_
7 years ago
Preetha Appan 9eaf56bfe3 Fix socket file handle leaks from old blocking queries upon consul reload. This fixes issue #3018
8 years ago
Frank Schröder 825f72f5ef agent: support custom header and method for http checks (#3106)
8 years ago
James Phillips 3baa703d02 Merge pull request #3077 from jwasinger/issue-2850
8 years ago
Jared Wasinger d2ef61d079 Prevent Session.Destroy from leaving open TCP connections
8 years ago
Kyle Havlovitz 4e44db87e3
Don't overwrite Transport's TLS config if it's been set
8 years ago
Kyle Havlovitz 04f1ff78f8 Remove superfluous default HttpClient check in NewClient
8 years ago
Frank Schroeder 96c677fdba test: make test less flaky
8 years ago
Frank Schroeder 65b5c51ec7 test: add helper for ioutil.TempDir/TempFile
8 years ago
Frank Schroeder 3522a41bad test: include test name in temp file/dir
8 years ago
James Phillips c1d196152f
Fixes vet errors.
8 years ago
James Phillips ddfa57765c
retry: Removes the description parameter.
8 years ago
Frank Schroeder 21a82a0a16
test: Refactor WaitForResult tests with retry
8 years ago
Kyle Havlovitz cd56a5ebdd Add separate option for verifying incoming HTTPS traffic (#2974)
8 years ago
Frank Schroeder 9685bdcd0b api: Add ServiceTags to Health state endpoint (#153)
8 years ago
James Phillips 05b1cabba9 Merge pull request #2947 from bogdanov1609/added_ACLReplication
8 years ago
James Phillips 36725cef11 Tweaks ACL replication struct name.
8 years ago
James Phillips 138abeb5f7 Tweaks ACL replication status struct name.
8 years ago
Frank Schroeder 3e00e36f41 golint: Untangle if blocks with return in else
8 years ago
Ivan Bogdanov 1ebd6402fd API: Add ACLReplication
8 years ago
Frank Schröder 6dd2804d09 Issue #2905: Add check-not-exists to TXN endpoint
8 years ago
Kyle Havlovitz c6d0b4cf90 Make the API client's httpClient more pluggable (#2926)
8 years ago
Frank Schröder c40621ae10 Add datacenter to catalog node API (#2917)
8 years ago
Kyle Havlovitz ae6bf56ee1
Add tls client options to api/cli
8 years ago
Brian Shumate f499584c38
API: Add struct fields, fixes #2882
8 years ago
James Phillips 08f81ebddb
Moves operator sub-functions into their own files.
8 years ago
Kyle Havlovitz da9c825592
Add CLI/API endpoints for removing peer by ID
8 years ago
Seth Vargo 0170a28ec9
Use new APIs
8 years ago
Kyle Havlovitz 390f41d8d5
Add advanced autopilot features
8 years ago
James Phillips 3f3889022e
Tweaks the agent leave test to patch an occasional local failure.
8 years ago
James Phillips 7d011d7d77
Adds missing area API.
8 years ago
James Phillips e91377fa26
Cleans up based on review feedback.
8 years ago
James Phillips 3a0739cdfc
Tweaks the join response to be more useful.
8 years ago
James Phillips 79e192fd07
Adds public API for the network area endpoints.
8 years ago
James Phillips 472f1bd63e
Adds router into RPC paths with work in progress on coordinates.
8 years ago
Kyle Havlovitz 5353221666
Reorganized cluster health check loop and logic
8 years ago
Kyle Havlovitz 51b11cd344
Fix an issue with changing server IDs and add a few UX enhancements around autopilot features
8 years ago
Kyle Havlovitz 9b4497de09
Cleaned up and reorganized some autopilot-related code
8 years ago
Kyle Havlovitz 2eefe3ca5b
Add autopilot server health tracking
8 years ago
Kyle Havlovitz 92c8b9c3a0
Rename DeadServerCleanup and make wording adjustments
8 years ago
Kyle Havlovitz c1f776c78b
Added operator autopilot subcommands
8 years ago
Kyle Havlovitz c2e7f45002
Add CAS capability to autopilot config endpoint
8 years ago
Kyle Havlovitz 1c24c5d8d6
Add docs and api client methods for autopilot config
8 years ago
Jeff Mitchell 44733caf5c Update unix dial functions to use DialContext with new go-cleanhttp
8 years ago
Kyle Havlovitz c9abafab92
Update docs and give better error for unknown client scheme
8 years ago
Kyle Havlovitz a7a6ee9f4c
Allow prefixing -http-addr with http/https schemes
8 years ago
Kyle Havlovitz bad037fb58
Cleanup and formatting adjustments
8 years ago
Kyle Havlovitz abdf1fbab3
Convert keyring command to use base.Command
8 years ago
James Phillips 585958746a
Lets the leave unit test proceed even after an EOF.
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 6ca0173907
Adds catalog support for node IDs.
8 years ago
James Phillips bd605e330c
Adds basic support for node IDs.
8 years ago
Kyle Havlovitz 5acd69b4fc
Add node metadata filtering to remaining health/catalog endpoints
8 years ago
Kyle Havlovitz 023b6533e0
Fix formatting
8 years ago
Kyle Havlovitz 87c0283bb1
Update client api and docs for node metadata
8 years ago
James Phillips 0ed6b1bb18
Bans anonymous queries that aren't tied to a session.
8 years ago
James Phillips 0282dd908a Merge pull request #2531 from alicebob/txntypes
8 years ago
Kyle Havlovitz bd69c6d871 Add reload/leave http endpoints (#2516)
8 years ago
Seth Vargo f7958983e4
Return the correct type
8 years ago
Seth Vargo 7520ce2d49 Merge pull request #2544 from hashicorp/sethvargo/best_status
8 years ago
James Phillips d079e62d57 Merge pull request #2530 from coffeehc/master
8 years ago
Seth Vargo 190249424b
Do not log
8 years ago
Seth Vargo 4179aacf11
Add an API method for determining the best status
8 years ago
Kyle Havlovitz 8079c49c0a Add QueryOptions to api package's monitor
8 years ago
Kyle Havlovitz 124f907063 Add monitor http endpoint
8 years ago
Harmen 92b2369f82 fix KVOp types
8 years ago
James Phillips a5baa091c8
Runs `go fmt`.
8 years ago
Kyle Havlovitz dcdadd012f Fix keyring doc method wording
8 years ago
Kyle Havlovitz 6bd65c668b Combine keyring endpoints into one
8 years ago
Kyle Havlovitz dd3368c19e Add keyring http endpoints
8 years ago
coffee a5e08845c2 adapt to server's checker field TLSSkipVerify type
8 years ago
James Phillips 6ce295e0de Merge pull request #2366 from aksentyev/master
8 years ago
James Phillips ad25acaf6a Moves index fields to the bottom of the structure.
8 years ago
James Phillips 9a81d402b7
Adds notes field to API.
8 years ago
James Phillips c744792fc4 Merge pull request #2238 from hasyimibhar/master
8 years ago
Kyle Havlovitz 8c3db1c5c6 Trim leading slash on key to avoid redirect (golang/go#4800) (#2476)
8 years ago
Kyle McCullough 73b281a27c Add setting to skip ssl certificate verification for HTTP checks (#1984)
8 years ago
Mike Cowgill cbf2874464 Delete prepared query using WriteOptions (#2417)
8 years ago
Kyle Havlovitz dce6702268 More flaky unit test fixes (#2449)
8 years ago
James Phillips c01a3871c9 Adds support for snapshots and restores. (#2396)
8 years ago
Kyle Havlovitz f6c971f46c Fix race condition in TestClient_WatchList and TestClient_WatchGet
8 years ago
James Phillips 554c898338 Merge pull request #2382 from zaunerc/master
8 years ago
James Phillips 556ffc588b Adds comment about SessionOpts.
8 years ago
James Phillips 25455c97c3 Merge pull request #2372 from HotelsDotCom/flexible-lock-sessions
8 years ago
Christoph Zauner faf85f602b Add info about return values for function Get().
8 years ago
Maxim Ivanov 2ed58a2747 More flexible Session configuration when using api.Lock
8 years ago
aksentyev 4f96fa0aea CreateIndex, ModifyIndex added for CatalogService
8 years ago
Seth Vargo 40de5858d3
Fix typo
8 years ago
Seth Vargo 55f1b4ac44
Rename session name to session ID
8 years ago
Seth Vargo 12e46503f7
Update ModifyIndex comment
8 years ago
Seth Vargo 227019ec59
Add documentation to KVPair
8 years ago
James Phillips 84e8fc5848
Removes Raft types from public API interface.
8 years ago
James Phillips 3c9188c38b
Makes the Raft configuration API easier to consume.
8 years ago
James Phillips 0558b9c44b
Fixes a stale comment.
8 years ago
James Phillips e5850d8a26
Adds new consul operator endpoint, CLI, and ACL and some basic Raft commands.
8 years ago
James Phillips defa2a6180 Merge pull request #2226 from abhinavdahiya/rm-health-unknown
8 years ago
James Phillips 4c7a0ed3b0
Merge branch 'master' into f-deregister-critical
8 years ago
James Phillips 9f7a973ace
Adds an `X-Consul-Translate-Addresses` to signal translation is enabled.
8 years ago
James Phillips 1d5eb36689
Adds missing TaggedAddress structures to API client.
8 years ago