Commit Graph

542 Commits (b86c018a19f317798bb277482f11b83ee081d4fc)

Author SHA1 Message Date
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
8 years ago
Frank Schroeder 0e931a713c agent: fix failing test from localState decoupling
8 years ago
Frank Schroeder 7bbfef7000 api: refactor: unify naming of API tests
8 years ago
Frank Schroeder 8edeabce9a api: refactor: prefix all API tests with API_
8 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
James Phillips 231f5a957f
Fixes a typo and adds an admonition about only being in Consul 0.7+.
8 years ago
James Phillips 4a3d7db24f
Adds ability to deregister a service based on critical check state longer than a timeout.
8 years ago
Hasyimi Bahrudin 105cea9bae Add api environment variables as constants for consistency
8 years ago
Hasyimi Bahrudin bb6bb19aad Remove redundant hardcoded environment variables
8 years ago
Jeff Mitchell f1a67836d8 Use header to send Consul token rather than query param.
8 years ago
Abhinav Dahiya 7c6c3b38bc Fixes #1775; Removes 'unknown' state
8 years ago
Ryan Uber 499537addf api: add query templates
9 years ago
Ryan Uber 72b43eba26 api: add Near parameter to PQ's
9 years ago
James Phillips 778b975e7a Adds a get-tree verb to KV transaction operations.
9 years ago
James Phillips a37bf9de56 Adds a read-only optimized path for transactions.
9 years ago
James Phillips 04d99cd702 Makes get fail a transaction if the key doesn't exist.
9 years ago
James Phillips 4882a9fe43 De-nests the KV output structure (removes DirEnt member).
9 years ago
James Phillips 960b9d6fb6 Switches to "KV" instead of "KV" for the KV operations.
9 years ago
James Phillips 38d0f6676f Refactors TxnRequest/TxnResponse into a form that will allow non-KV ops.
9 years ago
James Phillips 69f58ad04a Moves txn code into a new endpoint, not specific to KV.
9 years ago
James Phillips 44ab1aa418 Adds type for API ops and an example transaction.
9 years ago
James Phillips e491245062 Performs basic plumbing of KVS transactions through all the layers.
9 years ago
Sean Chittenden 4255a0826d Correct a small typo
9 years ago
Sean Chittenden f1873c21d7 consul/ uses structs.Health*, the api uses api.Health*
9 years ago
Sean Chittenden e63d3a1275 Update Check API to use constants
9 years ago
James Phillips 3340d7ccd7 Merge pull request #1876 from hashicorp/f-tls-helper
9 years ago
James Phillips 0eb6279c5e Improves the comment for the Address field.
9 years ago
Diptanu Choudhury 4811a72d80 Added some constants in the api for check health statuses
9 years ago
James Phillips 1cfed981b3 Adds TLS config helper to API client.
9 years ago
James Phillips abacccd6e5 Switches default for API client to pooled connections.
9 years ago
James Phillips 23247b3699 Adds support for new PUT API for checks.
9 years ago
James Phillips afdeb2f1fc Adds support for EnableTagOverride to the API client.
9 years ago
Seth Vargo cae0ff354a Use HTTPS + www. where appropriate
9 years ago
James Phillips 58fb27e70f Factors server error checking into a new function.
9 years ago
James Phillips c048c5aca6 Makes the API behave better with small wait values.
9 years ago
James Phillips 49342dc973 Makes the timeout behavior more intuitive.
9 years ago
James Phillips ca08ba3aee Adds the ability for semaphore monitors to ride out brief periods of 500 errors.
9 years ago
James Phillips 8caa9e4c7e Adds "try" support to locks and semaphores.
9 years ago
James Phillips ebff3fe0d0 Builds the insecure SSL transport off the clean default transport.
9 years ago
Jeff Mitchell 4604af6aa5 Revert "Adds client and transport pooling in the API so we don't leak connections."
9 years ago
James Phillips f6546a0e46 Makes the insecure transport work like the default one.
9 years ago
James Phillips d57e60a123 Adds client and transport pooling in the API so we don't leak connections.
9 years ago
James Phillips 380658f6f1 Adds a unit test for lock monitor retries.
9 years ago
James Phillips c2a8fee76c Adds custom retry time for lock monitors.
9 years ago
James Phillips 86e6230de6 Adds a retry capability to lock monitors in the API client.
9 years ago
James Phillips 87ccd1eb34 Updates API docs for version 0.6.0.
9 years ago
Craig Wickesser 7890a3dda8 Fix version support
9 years ago
James Phillips 95c708f65e Adds Docker checks support to client API.
9 years ago
James Phillips 1059a8b3a3 Removes a useless empty import and fixes some stale comments.
9 years ago
James Phillips 8fc6a6a986 Switches to helpers for prepared query API wrappers.
9 years ago
James Phillips 712a3dba2f Adds API client support for prepared queries.
9 years ago
James Phillips 787f946f8d Adds support for coordinates to client API.
9 years ago
Mikhail Dyakov 01aba571a1 Handle error in api README example
9 years ago
Jeff Mitchell 1e3840b044 Update cleanhttp repo location
9 years ago
Jeff Mitchell 9a5fd5424a Use cleanhttp to get rid of DefaultTransport
9 years ago
James Phillips 2c36c4f969 Fixes a typo.
9 years ago
James Phillips 181c216f53 Fixes index management for KVS.
9 years ago
Jeff Mitchell f49fc095ef Don't use http.DefaultClient
9 years ago
James Phillips c74355fec0 Merge pull request #1041 from rboyer/api-fix-session-renew
9 years ago
Dale Wijnand 5a28ebcaa3 Fix a bunch of typos.
9 years ago
R.B. Boyer 8b072467eb Correct the Session.Renew{,Periodic} to handle session expiration better
9 years ago
Anthony Scalisi 10e028d599 remove various typos
9 years ago
Peter Fern b023904298 Add TCP check type
9 years ago
Robert Gogolok 2b8d0c4785 api: run ACL tests by default
10 years ago
James Phillips de29cb4968 Fixes a broken unit test introduced by #834.
10 years ago
Armon Dadgar c2f8f954e2 Merge pull request #1008 from highlyunavailable/master
10 years ago
Ryan Uber 20a2d19198 Merge pull request #834 from apoydence/master
10 years ago
Tiru Srikantha 3d97ea0bae Check to see why a lock acquisition failed
10 years ago
highlyunavailable 16de0a909b Remove unused DefaultSemaphoreRetryTime
10 years ago
Armon Dadgar dc6795a55a api: improve test reliability
10 years ago
Ryan Uber 72ee584df3 Fix tests after merge
10 years ago
Armon Dadgar 8d86290ebf Fixing merge conflict
10 years ago
Armon Dadgar db134f6190 Merge pull request #912 from rojojo23/renew-periodic
10 years ago
Ryan Uber 565cac0340 api: run tests in parallel
10 years ago
Robert Johnson 379a69d7a4 modify RenewPeriodic to retry failed Renews until TTL elapses
10 years ago
Armon Dadgar 5921fcb29b api: Fixing test compilation issue
10 years ago
Armon Dadgar 0450854f12 Merge pull request #861 from fraenkel/reclaim_lock
10 years ago
Michael Fraenkel 0e25381494 Reclaim locks
10 years ago
Ryan Mills 275af975e8 Allow specifying a status field in the agent/service/register and agent/check/register endpoints.
10 years ago
Andrew Poydence b5f6451e74 Returns an error for a key with a '/'
10 years ago
Ryan Uber fa7414e276 testutil: Use HTTPAddr
10 years ago
Ryan Uber 78f9f53bf1 testutil: exposing the API address from the test server
10 years ago
Ryan Uber 37f6301856 testutil: initial pass at moving test server harness into testutil
10 years ago
Seth Vargo b4f8c98fbb Read select environment variables when generating the default configuration
10 years ago
Chris Grieger f70ccdb4d2 Add 'ServiceAddress' field to 'CatalogService's truct
10 years ago
Ryan Uber 33390779eb api: remove unneeded static config
10 years ago
Armon Dadgar 5f627fca1b api: Refactoring into shared write logic
10 years ago
Armon Dadgar c0c9fb58ce api: Refactoring into shared query logic
10 years ago
Ryan Uber 5c2a764cbe api: allow timeout field to be specified for checks
10 years ago
Nicholas Capo 8cbca78b29 api/agent: Support HTTP service checks in client api
10 years ago
Armon Dadgar 17d1c392e4 CHANGELOG update, gofmt
10 years ago
Armon Dadgar e1a5d537d4 Merge pull request #625 from hashicorp/f-maintcmd
10 years ago
Dr. Stefan Schimanski acd9efbc40 Add test case for service Address field
10 years ago
Dr. Stefan Schimanski a85575dcaa Add agent service Address field to the api
10 years ago
Ryan Uber 089c4396c4 api: support reason flag for maintenance mode
10 years ago
Ryan Uber e088240c95 api: finish up maintenance tests
10 years ago
Ryan Uber e47b64197e api: add node/service maintenance mode functions
10 years ago
Ryan Uber 197a5a9a9a api: support multiple checks during service/check registration
10 years ago
Armon Dadgar d998bb3d67 Fixing merge conflict
10 years ago
Armon Dadgar 2e281dc51f api: Fixing some comments
10 years ago
Armon Dadgar 7195de51a2 api: Refactor to share session renew code
10 years ago
Armon Dadgar 14691f7e29 api: Detect conflicting existing values for lock/semaphore
10 years ago
Armon Dadgar 4fef14163d api: Make channels receive only
10 years ago
Ryan Uber b30af9536d Merge pull request #608 from imkira/fixBodyLeak
10 years ago
Mário Freitas f45105383c fixed: requireOK should close Body on error
10 years ago
Mário Freitas f30237a92e Revert "fixed: body not closed for non HTTP 200 responses"
10 years ago
Ryan Uber 4b635738bf api: simple test for unix socket connectivity
10 years ago
Ryan Uber 4c3ec248a5 agent: fixing up tests
10 years ago
Mário Freitas dafa61ad10 fixed: body not closed for non HTTP 200 responses
10 years ago
Ryan Uber 4675cdf01c agent: beginning refactor
10 years ago
Jeff Mitchell 9fcea08dbb Ensure a socket is created for permissions adjustment tests and fix some
10 years ago
Jeff Mitchell 70dd5a1e81 Unix socket-based HTTP API test functionality. As a consequence this
10 years ago
Jeff Mitchell 11a3ce0bdd RPC and HTTP interfaces fully generically-sockified so Unix is supported.
10 years ago
Armon Dadgar 7ed1449b6c api: Adding Destroy to cleanup a semaphore
10 years ago
Armon Dadgar 9608108e64 api: Adding Destroy to cleanup a lock
10 years ago
Armon Dadgar 94d7022a88 api: Add support for DeleteCAS
10 years ago
Armon Dadgar f2e1594814 Merge pull request #600 from hashicorp/f-api-semaphore
10 years ago
Armon Dadgar ed6abe05fb api: Changing default semaphore key
10 years ago
Armon Dadgar 4a038927ee api: More reliable session check
10 years ago
Armon Dadgar c19b0e2ab2 api: Enable debug output from Consul for tests
10 years ago
Ryan Uber 78328ec149 api: make node health test more reliable
10 years ago
Armon Dadgar 5107f5d1f9 api: More semaphore tests
10 years ago
Armon Dadgar 8ad16ca390 api: Adding semaphore tests and fixes
10 years ago
Armon Dadgar b39374acae api: First pass at semaphore
10 years ago
Armon Dadgar c291acd96e api: Minor cleanups in lock
10 years ago
Armon Dadgar 3cba4df127 Merge pull request #594 from hashicorp/f-api-lock
10 years ago
Armon Dadgar 7225088c7d api: Fixing typo
10 years ago
Armon Dadgar e05ab983ab api: Fixing typos
10 years ago
Armon Dadgar 854aef82b0 api: Adding Lock helpers for leader election
10 years ago
Ryan Uber fab30406be api: test for a known leader as well as index > 0
10 years ago
Ryan Uber cb1b722813 api: improve reliability of catalog endpoint tests
10 years ago
Armon Dadgar bb3829c2d9 api: Adding constants for session behaviors
10 years ago
Ryan Uber 60ebd63760 Import HTTP basic auth patch from armon/consul-api#16
10 years ago
Ryan Uber 6c4ff58d2a api: improve test reliability
10 years ago
Ryan Uber 0c6c06cb0c api: use WaitForResult() to improve health tests
10 years ago
Ryan Uber f49189252e api: run consul instance on testing ports
10 years ago
Ryan Uber 8455077e5d api: add harnessing for tests
10 years ago
Ryan Uber 5555e0eb9b api: initial import from armon/consul-api
10 years ago