Commit Graph

649 Commits (2f44d0b197c0c710034566aa20d4f9da57f41548)

Author SHA1 Message Date
Daniel Nephin 6b860c926f
Merge pull request #7608 from hashicorp/dnephin/grpc-default-scheme
5 years ago
Freddy 9eb1867fbb
Terminating gateway discovery (#7571)
5 years ago
Daniel Nephin 0888c6575b Step 3: fix a bug in api.NewClient and fix the tests
5 years ago
Pierre Souchay 4d35816bee
tests: fixed unstable test TestAPI_AgentMonitor (#7561)
5 years ago
Freddy 90576060bc
Add config entry for terminating gateways (#7545)
5 years ago
Kyle Havlovitz c911174327
Add config entry/state for Ingress Gateways (#7483)
5 years ago
Pierre Souchay f1f778ffcc
FIX flaky test: TestAPI_AgentMonitorJSON
5 years ago
Freddy 18d356899c
Enable CLI to register terminating gateways (#7500)
5 years ago
Alejandro Baez bafa69bb69
Add PolicyReadByName for API (#6615)
5 years ago
Daniel Nephin 3f8578f1e1 ci: Use golangci-lint for linting
5 years ago
R.B. Boyer 6adad71125
wan federation via mesh gateways (#6884)
5 years ago
Matt Keeler 80ed304e04
Run make update-vendor and fixup various go.sum files
5 years ago
Matt Keeler 77074be9b8
Bump sdk module version to 0.4.0
5 years ago
Akshay Ganeshen 8beb716414
feat: support sending body in HTTP checks (#6602)
5 years ago
Matt Keeler d0cd092e3b
Catalog + Namespace OSS changes. (#7219)
5 years ago
Fouad Zaryouh ef6399928d
api: add replace-existing-checks param to the api package (#7136)
5 years ago
Matt Keeler 6855a778c2
Updates to the Txn API for namespaces (#7172)
5 years ago
Chris Piraino 401221de58
Allow users to configure either unstructured or JSON logging (#7130)
5 years ago
Michel Vocks 6681be918a api: add option to set TLS options in-memory for API client (#7093)
5 years ago
Matt Keeler b57c2b78fd
Unflake the TestAPI_AgentConnectCALeaf test (#7142)
5 years ago
Matt Keeler c09693e545
Updates to Config Entries and Connect for Namespaces (#7116)
5 years ago
Matt Keeler bbc2eb1951
Add the v1/catalog/node-services/:node endpoint (#7115)
5 years ago
R.B. Boyer 4af5c2d6dd
fix the submodule go.mod and go.sum files (#7098)
5 years ago
Paul Banks 1807af552e
Fix TestAPI_DiscoveryChain_Get flake (#7082)
5 years ago
Hans Hasselberg 804eb17094
connect: check if intermediate cert needs to be renewed. (#6835)
5 years ago
Aestek ba8fd8296f Add support for dual stack IPv4/IPv6 network (#6640)
5 years ago
neillyt a2ab9b4aee Fix Namespace Typo (#7030)
5 years ago
Matt Keeler 34e6e23d43
Change how namespaces are specified for the CLI (#6960)
5 years ago
Freddy 37dfe6d112
Add kv meta to namespaces api module (#6958)
5 years ago
R.B. Boyer 7ac47d6f61
build: fix makefile and CI 'fmt' and 'vet' tasks (#6937)
5 years ago
ogidow dfa8d919f7 agent: fix watch event behavior (#5265)
5 years ago
Matt Keeler 5934f803bf
Sync of OSS changes to support namespaces (#6909)
5 years ago
Matt Keeler 2343413bf0
Fix the TestAPI_CatalogRegistration test
5 years ago
Matt Keeler a704ebe639
Add Namespace support to the API module and the CLI commands (#6874)
5 years ago
Mike Morris 7484b42b93
test: wait for Serf check in TestServicesWatch (#6867)
5 years ago
Sarah Adams aed5cb7669
give feedback to CLI user on forceleave command if node does not exist (#6841)
5 years ago
Matt Keeler b069d6777b
OSS KV Modifications to Support Namespaces
5 years ago
Paul Banks cd1b613352
connect: Add AWS PCA provider (#6795)
5 years ago
Matt Keeler f6af75ae74
Refactor the Read Namespace requests to not use the query funct… (#6720)
5 years ago
Blake Covarrubias 0aa025df1c
docs: Miscellaneous docs cleanup (#6742)
5 years ago
Sarah Adams 78ad8203a4
Use encoding/json as JSON decoder instead of mapstructure (#6680)
5 years ago
Sarah Christoff 5e1c6e907b
Set MinQuorum variable in Autopilot (#6654)
5 years ago
Freddy 60f6ec0c2f
Store check type in catalog (#6561)
5 years ago
Matt Keeler 4a5ebb57b0
Add support for the Namespace HTTP API in the API Client (#6581)
5 years ago
Sarah Christoff 5e26971864
Prune Unhealthy Agents (#6571)
5 years ago
Freddy 2274f64cab
Add Namespace as an api query/write option (#6551)
5 years ago
Freddy fdd10dd8b8
Expose HTTP-based paths through Connect proxy (#6446)
5 years ago
R.B. Boyer 92fd596d32
api/watch: try to avoid more flakes in this package (#6538)
5 years ago
R.B. Boyer af01d397a5
connect: don't colon-hex-encode the AuthorityKeyId and SubjectKeyId fields in connect certs (#6492)
5 years ago
R.B. Boyer f74244dde8 api/watch: reduce timing dependence on tests of watch behavior
5 years ago
R.B. Boyer ea6231ce35 api: bump to sdk v0.2.0
5 years ago
R.B. Boyer fd1c62ee8b
connect: ensure time.Duration fields retain their human readable forms in the API (#6348)
5 years ago
R.B. Boyer 561b2fe606
connect: generate the full SNI names for discovery targets in the compiler rather than in the xds package (#6340)
5 years ago
R.B. Boyer ae79cdab1b
connect: introduce ExternalSNI field on service-defaults (#6324)
5 years ago
hashicorp-ci 5919c7c184 Merge Consul OSS branch 'master' at commit 8f7586b339
5 years ago
Matt Keeler 69c7d64701
Add missing LicenseReset API function (#6311)
5 years ago
Sarah Adams 8ff1f481fe
add flag to allow /operator/keyring requests to only hit local servers (#6279)
5 years ago
Matt Keeler 6a1e0dfed8
Update the v1/agent/service/:service endpoint to output tagged… (#6304)
5 years ago
Mike Morris 65be58703c
connect: remove managed proxies (#6220)
5 years ago
R.B. Boyer 9753c77a79
api: un-deprecate api.DecodeConfigEntry (#6278)
5 years ago
R.B. Boyer c395affc93
connect: expose an API endpoint to compile the discovery chain (#6248)
5 years ago
Matt Keeler 5ce6bfa292
Add license management functions to API client (#6268)
5 years ago
R.B. Boyer ad9e7b6ae9
connect: allow L7 routers to match on http methods (#6164)
5 years ago
R.B. Boyer 85cf2706e6
connect: change router syntax for matching query parameters to resemble the syntax for matching paths and headers for consistency. (#6163)
5 years ago
Alvin Huang 6f1953d96d Merge branch 'master' into release/1-6
5 years ago
Freddy 59dbd070d7
More flaky test fixes (#6151)
5 years ago
hashicorp-ci fa20c7db97 Merge Consul OSS branch 'master' at commit 95dbb7f2f1
5 years ago
Freddy d219e31db8
Update retries that weren't using retry.R (#6146)
5 years ago
Jack Pearkes 338aed32af Merge branch 'master' into release/1-6
5 years ago
Freddy 97ecc0517c
Fix some retries in api pkg (#6124)
5 years ago
Freddy 5873c56a03
Flaky test overhaul (#6100)
5 years ago
Freddy 0b9111714b
Update TestServer creation in sdk/testutil (#6084)
5 years ago
Matt Keeler bdebe62fd0
Fix some tests that I broke when refactoring the ConfigSnapshot (#6051)
5 years ago
Matt Keeler 8d953f5840 Implement Mesh Gateways
5 years ago
R.B. Boyer 2ad516aeaf
do some initial config entry graph validation during writes (#6047)
5 years ago
R.B. Boyer 38d76c624e
Allow for both snake_case and CamelCase for config entries written with 'consul config write'. (#6044)
6 years ago
R.B. Boyer ceef44bbc9
adding new config entries for L7 discovery chain (unused) (#5987)
6 years ago
hashicorp-ci 4d185baf55 Merge Consul OSS branch 'master' at commit 88b15d84f9
6 years ago
Matt Keeler 6cc1451895
Update some tests to fix ContentHash broken by the tagged service addresses (#5996)
6 years ago
Aestek b839f52195 kv: do not trigger watches when setting the same value (#5885)
6 years ago
Matt Keeler f3d9b999ee
Add tagged addresses for services (#5965)
6 years ago
Pavel Drankov b3a0b273ed api: update link to agent caching in comments (#5935)
6 years ago
R.B. Boyer b2478036d8 api: go mod tidy
6 years ago
R.B. Boyer cc9bcccc73 api: bump sdk version to v0.1.1
6 years ago
Paul Banks 0cfb6051ea Add integration test for central config; fix central config WIP (#5752)
6 years ago
Matt Keeler 3145bf5230 Centralized Config CLI (#5731)
6 years ago
Matt Keeler 4daa1585b0
ACL Token ID Initialization (#5307)
6 years ago
Kyle Havlovitz aba54cec55 Add HTTP endpoints for config entry management (#5718)
6 years ago
Matt Keeler f67e12eb6f
Enabling "service" watch handler to accept a slice of tags
6 years ago
R.B. Boyer e47d7eeddb acl: adding support for kubernetes auth provider login (#5600)
6 years ago
R.B. Boyer cc1aa3f973 acl: adding Roles to Tokens (#5514)
6 years ago
R.B. Boyer 7928305279 making ACLToken.ExpirationTime a *time.Time value instead of time.Time (#5663)
6 years ago
R.B. Boyer db43fc3a20 acl: ACL Tokens can now be assigned an optional set of service identities (#5390)
6 years ago
R.B. Boyer 2144bd7fbd acl: tokens can be created with an optional expiration time (#5353)
6 years ago
Matt Keeler 222afeae4c
Move the watch package into the api module (#5664)
6 years ago
Matt Keeler afa1cc98d1
Implement data filtering of some endpoints (#5579)
6 years ago
Alvin Huang f45e495e38
Merge pull request #5376 from hashicorp/fix-tests
6 years ago
Hans Hasselberg ac45b17482
fix remaining CI failures after Go 1.12.1 Upgrade (#5576)
6 years ago
Jeff Mitchell f1fe406aa8
Update SDK version (#5572)
6 years ago
Jeff Mitchell 4243c3ae42
Move internal/ to sdk/ (#5568)
6 years ago
Jeff Mitchell 6327d3fd6f
Update internal dep (#5564)
6 years ago
Jeff Mitchell 47c390025b
Convert to Go Modules (#5517)
6 years ago
R.B. Boyer f8bcfcfa46
api: fix panic in 'consul acl set-agent-token' (#5533)
6 years ago
R.B. Boyer f4a3b9d518
fix typos reported by golangci-lint:misspell (#5434)
6 years ago
Matt Keeler 118adbb123
ACL Token Persistence and Reloading (#5328)
6 years ago
Alvin Huang e999e404da add serf check to TestAPI_ACLToken_List
6 years ago
Alvin Huang aed9d123fa add serf check to various api/agent tests
6 years ago
Alvin Huang 8124f5889c add serf check to TestAPI_CatalogNodes
6 years ago
Alvin Huang 9780892ebe add serf check to TestAPI_ConnectCARoots_empty, TestAPI_ConnectCAConfig_get_set
6 years ago
Alvin Huang 7b4fb32545 add serf check to TestAPI_CoordinateUpdate
6 years ago
Alvin Huang a2eb3c204d add serf check to TestAPI_HealthChecks_NodeMetaFilter, TestAPI_HealthConnect
6 years ago
Alvin Huang 7252679232 add serf check to TestAPI_ClientPutGetDelete, TestAPI_ClientWatchGet
6 years ago
Alvin Huang d93c82e966 add serf check to TestAPI_SemaphoreConflict
6 years ago
Alvin Huang f98512f1a3 add serf check to TestAPI_Snapshot
6 years ago
Alvin Huang a5bd6d7c00 add serf check to TestAPI_AgentServices_ManagedConnectProxyDeprecatedUpstreams
6 years ago
Alvin Huang 5f2e709c3f remove serf check
6 years ago
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