Commit Graph

1593 Commits (9f58504f1c4e0dce5e43c72da6ae6dafa09f2849)

Author SHA1 Message Date
R.B. Boyer c6722fc43d
Merge pull request #5617 from hashicorp/f-acl-ux
6 years ago
Aestek 21a776e202 Fix: fail messages after a node rename replace the new node definition (#5520)
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 15e80e4e76
Implement bootstrapping proxy defaults from the config file (#5714)
6 years ago
Matt Keeler 5befe0f5d5
Implement config entry replication (#5706)
6 years ago
Matt Keeler 222afeae4c
Move the watch package into the api module (#5664)
6 years ago
Alvin Huang 8ceca2ace3
Add fmt and vet (#5671)
6 years ago
Kyle Havlovitz d8f8400fe1
Merge pull request #5700 from hashicorp/service-reg-manager
6 years ago
Kyle Havlovitz 43bfc20dc8 Test an index=0 value in cache.Notify
6 years ago
Freddy f2213f60e0
Update alias checks on local add and remove
6 years ago
Aestek f669bb7b0f Add support for DNS config hot-reload (#4875)
6 years ago
Kyle Havlovitz cba47aa0ca Fix a race in the ready logic
6 years ago
Kyle Havlovitz c269369760 Make central service config opt-in and rework the initial registration
6 years ago
Kyle Havlovitz b58572afbd Fix a race in the service updates
6 years ago
Kyle Havlovitz 88e1d8ce03 Fill out the service manager functionality and fix tests
6 years ago
Kyle Havlovitz 7c25869e67 Add the service registration manager to the agent
6 years ago
Kyle Havlovitz b186c3020c
Merge pull request #5615 from hashicorp/config-entry-rpc
6 years ago
Kyle Havlovitz fed7595d45 Rename config entry ACL methods
6 years ago
R.B. Boyer 6269d1f130
tests: actually have TestSessionTTLRenew sleep during execution (#5669)
6 years ago
kaitlincarter-hc 7dcc727b4d
[docs] Server Performance (#5627)
6 years ago
Freddy eebc788959
Filter non-passing nodes without modifying cache
6 years ago
Matt Keeler afa1cc98d1
Implement data filtering of some endpoints (#5579)
6 years ago
Freddy b2c12550d7
Remove old UI, option to use it, and its build processes
6 years ago
Kyle Havlovitz 690e9dd2c0 Move the ACL logic into the ConfigEntry interface
6 years ago
Kyle Havlovitz f2ed482680 Add RPC endpoints for config entry operations
6 years ago
Alvin Huang f45e495e38
Merge pull request #5376 from hashicorp/fix-tests
6 years ago
Kyle Havlovitz 5f569fb2ac
Merge pull request #5539 from hashicorp/service-config
6 years ago
Kyle Havlovitz a2fa9a0019 Cleaned up some error handling/comments around config entries
6 years ago
Kyle Havlovitz c2da314eeb
Merge pull request #5553 from hashicorp/txn-check-serialization
6 years ago
Hans Hasselberg ac45b17482
fix remaining CI failures after Go 1.12.1 Upgrade (#5576)
6 years ago
Kyle Havlovitz d16be2e269 Encode config entry FSM messages in a generic type
6 years ago
Kyle Havlovitz f6df5c9b3b Clean up service config state store methods
6 years ago
R.B. Boyer 0d1b496a52
acl: memdb filter of tokens-by-policy was inverted (#5575)
6 years ago
Jeff Mitchell 4243c3ae42
Move internal/ to sdk/ (#5568)
6 years ago
Jeff Mitchell 47c390025b
Convert to Go Modules (#5517)
6 years ago
Kyle Havlovitz 716a20d8a6
Re-add logic to handle the undocumented duration fields
6 years ago
Kyle Havlovitz 3f5e20452e http: use the correct check duration fields when converting txn ops
6 years ago
Paul Banks 89fa5ec3ba
Connect: Fix Envoy getting stuck during load (#5499)
6 years ago
Kyle Havlovitz e199c37ee4
Add some basic normalize/validation logic for config entries
6 years ago
Paul Banks d2e68a900a
Connect: Make Connect health queries unblock correctly (#5508)
6 years ago
Kyle Havlovitz d92577c16b Fix fsm serialization and add snapshot/restore
6 years ago
Hans Hasselberg ea5210a30e
Release v1.4.4
6 years ago
Kyle Havlovitz 17aa6a5a34 Fill out state store/FSM functions and add tests
6 years ago
R.B. Boyer 02b2cb1d15 agent: ensure the TLS hostname verification knows about the currently configured domain (#5513)
6 years ago
Kyle Havlovitz 9d07add047 Add config types and state store table
6 years ago
Kyle Havlovitz aa4e26d102 Condense some test logic and add a comment about renaming
6 years ago
Hans Hasselberg e7134a0dab
agent: only use TestAgent when appropriate (#5502)
6 years ago
Paul Banks 0b5a078b95
Optimize health watching to single chan/goroutine. (#5449)
6 years ago
Pierre Souchay 88d4383410 Ensure we remove Connect proxy before deregistering the service itself (#5482)
6 years ago
Valentin Fritz 21f149de8b Fix checks removal when removing service (#5457)
6 years ago
R.B. Boyer cd96af4fc0
acl: reduce complexity of token resolution process with alternative singleflighting (#5480)
6 years ago
Kyle Havlovitz 8ae6547934 Update state store test for changing node ID
6 years ago
Kyle Havlovitz 6932b06f97 Add a test for changing a failed node's ID
6 years ago
Hans Hasselberg 7e11dd82aa
agent: enable reloading of tls config (#5419)
6 years ago
R.B. Boyer 2e175be41b
acl: correctly extend the cache for acl identities during resolution (#5475)
6 years ago
Aestek 4bea29f15a [catalog] Update the node's services indexes on update (#5458)
6 years ago
Kyle Havlovitz 1e4523f55e Add logic to allow changing a failed node's ID
6 years ago
Alvin Huang 8cb8108b1b fix typos
6 years ago
R.B. Boyer f4a3b9d518
fix typos reported by golangci-lint:misspell (#5434)
6 years ago
R.B. Boyer 2ffbea41c8 improve flaky LANReap tests by expliciting configuring the tombstone timeout
6 years ago
R.B. Boyer 5bea49ecb0 tests: avoid leaking child processes from agent/proxyprocess package
6 years ago
Matt Keeler 567e41ff6b
Release v1.4.3
6 years ago
Matt Keeler 90040f8bff Fixes for CVE-2019-8336
6 years ago
Hans Hasselberg d35824b1fa default to tls 1.2 as promised. (#5340)
6 years ago
Aestek 2aac4d5168 Register and deregisters services and their checks atomically in the local state (#5012)
6 years ago
Matt Keeler 6e6910ea11
Dont modify memdb owned token data for get/list requests of tokens (#5412)
6 years ago
Aestek 02f991843f Fix race condition in DNS when using cache (#5398)
6 years ago
Matt Keeler 200c0fb3e9
Call RemoveServer for reap events (#5317)
6 years ago
R.B. Boyer 409c901f8e test: fix concurrent map access when setting up test vault
6 years ago
R.B. Boyer 6955186239 fix ignored errors in state store internals as reported by errcheck
6 years ago
R.B. Boyer c7067645dd fix a few leap-year related clock math inaccuracies and failing tests
6 years ago
Matt Keeler 118adbb123
ACL Token Persistence and Reloading (#5328)
6 years ago
Kyle Havlovitz f07e928afc
Merge pull request #5325 from hashicorp/consul-ca-panic
6 years ago
Hans Hasselberg 80e7d63fc2
Centralise tls configuration part 2 (#5374)
6 years ago
Hans Hasselberg 786b3b1095
Centralise tls configuration part 1 (#5366)
6 years ago
Aestek f1cdfbe40e Allow DNS interface to use agent cache (#5300)
6 years ago
Alvin Huang 77eecf1046 add wait to TestClient_JoinLAN
6 years ago
Alvin Huang 136df63e2c add retry to TestResetSessionTimerLocked
6 years ago
Alvin Huang a7180f715a add serf check to testDNSServiceLookupResponseLimits, checkDNSService
6 years ago
Alvin Huang d10b5a396b add wait to TestOperator_AutopilotCASConfiguration
6 years ago
Alvin Huang dc200daf21 add wait to TestSnapshot
6 years ago
Alvin Huang c2a19e5090 add wait to TestAgent_RPCPing
6 years ago
Alvin Huang c23eb91262 fix TestAgent_CheckCriticalTime and better error output
6 years ago
Alvin Huang 6c9b516a29 skip TestCheckTCPPassing on CircleCI
6 years ago
R.B. Boyer c2a30c5fdd fix incorrect body of TestACLEndpoint_PolicyBatchRead
6 years ago
R.B. Boyer b569f222f9 update agent/agent_endpoint_test.go to use V2 tokens with attached policies
6 years ago
Nicholas Jackson 99fe9dabce Envoy config cluster (#5308)
6 years ago
Kainoa Seto b2af8862c7 Deferred updating response meta with consul headers (#5355)
6 years ago
R.B. Boyer ef8258cd4e test: switch test file from assert -> require for consistency
6 years ago
Matt Keeler 766d771017
Pass a testing.T into NewTestAgent and TestAgent.Start (#5342)
6 years ago
R.B. Boyer adbe8ed370 correct some typos
6 years ago
R.B. Boyer 88bb53d001 ensure that we plumb our configured logger into all parts of the raft library
6 years ago
R.B. Boyer 2c983902be reduce the local scope of variable
6 years ago
R.B. Boyer de0f585583
agent: only enable TLS on gRPC if the HTTPS API port is enabled (#5287)
6 years ago
R.B. Boyer f2ed3a3777
clarify the ACL.PolicyDelete endpoint (#5337)
6 years ago
R.B. Boyer 324ba5df17
update TestStateStore_ACLBootstrap to not rely upon request mutation (#5335)
6 years ago
Matt Keeler 7073ba4ed2
Move autopilot initialization to prevent race (#5322)
6 years ago
Kyle Havlovitz 29e4c17b07
connect/ca: fix a potential panic in the Consul provider
6 years ago
Matt Keeler acfd87c673
Improve Connect with Prepared Queries (#5291)
6 years ago
R.B. Boyer e1e4249e90
testutil: redirect some test agent logs to testing.T.Logf (#5304)
6 years ago
R.B. Boyer db8a871309
Merge pull request #5237 from hashicorp/term-grpc-stream-on-token-failure
6 years ago
mkeeler c97c712e96
Release v1.4.2
6 years ago
Kyle Havlovitz 7118f42950
Fix failing TestAgent_PurgeCheckOnDuplicate after merge
6 years ago
Matt Keeler 1736e24fb3
Don't generate TXT records just to discard them (#5272)
6 years ago
Kyle Havlovitz 928b7ec60d
Merge branch 'healthcheck-duration-fix'
6 years ago
Kyle Havlovitz 1a4978fb94
Re-add ReadableDuration types to health check definition
6 years ago
R.B. Boyer e9a2eab316
speed up TestHTTPAPI_MethodNotAllowed_OSS from 11s -> 0.5s (#5268)
6 years ago
Hans Hasselberg 552e150536 correct name
6 years ago
Hans Hasselberg aebb50d47d simpler fix
6 years ago
Hans Hasselberg 5db185a7e4 do not export that type
6 years ago
Hans Hasselberg 7f44100101 fix marshalling
6 years ago
Hans Hasselberg d4790b2827 demo nomad problem
6 years ago
banks 65d2c9b51d
Release v1.4.1
6 years ago
Matt Keeler d5a3ba6cda
Disregard rules when set on a management token (#5261)
6 years ago
Kyle Havlovitz 88c044759f
connect: Forward intention RPCs if this isn't the primary
6 years ago
Kyle Havlovitz 6b28434f8a
Merge pull request #5249 from hashicorp/ca-fixes-oss
6 years ago
Kyle Havlovitz 5bdf130767
Merge pull request #4869 from hashicorp/txn-checks
6 years ago
Kyle Havlovitz a28ba4687d
connect/ca: return a better error message if the CA isn't fully initialized when signing
6 years ago
Matt Keeler 579a8b32ed
Fix several ACL token/policy resolution issues. (#5246)
6 years ago
Paul Banks ef9f27cbc8
connect: tame thundering herd of CSRs on CA rotation (#5228)
6 years ago
R.B. Boyer d3eb781384 Check ACLs more often for xDS endpoints.
6 years ago
Kyle Havlovitz ddc4a8d848
oss: add the enterprise server stub for intention replication check
6 years ago
R.B. Boyer 2dea3e2bd7 Fix some test typos.
6 years ago
Matt Keeler 7e6b3e6a0c
Implement prepared query upstreams watching for envoy (#5224)
6 years ago
Kyle Havlovitz 21380021af txn: update existing txn api docs with new operations
6 years ago
Matt Keeler 1ec5f2a27f
Store leaf cert indexes in raft and use for the ModifyIndex on the returned certs (#5211)
6 years ago
Aestek 4afbe792df Improve blocking queries on services that do not exist (#4810)
6 years ago
Matt Keeler baa8946ea6
cache: Pass through wait query param to the cache.Get (#5203)
6 years ago
Aestek c043de5381 [Security] Allow blocking Write endpoints on Agent using Network Addresses (#4719)
6 years ago
Matt Keeler 1048f3d5e7
acl: Prevent tokens from deleting themselves (#5210)
6 years ago
Paul Banks 0638e09b6e
connect: agent leaf cert caching improvements (#5091)
6 years ago
Kyle Havlovitz c07c5446a8 txn: clean up some state store/acl code
6 years ago
Hans Hasselberg 067027230b
connect: add tls config for vault connect ca provider (#5125)
6 years ago
Alejandro Guirao Rodríguez 9f33353c14 agent/config: Fix typo in comment (#5202)
6 years ago
Paul Banks bb7145f27d
agent: add default weights to service in local state to prevent AE churn (#5126)
6 years ago
Paul Banks 0589525ae9
agent: Don't leave old errors around in cache (#5094)
6 years ago
Pierre Souchay ae7f88f995 Avoid to have infinite recursion in DNS lookups when resolving CNAMEs (#4918)
6 years ago
Paul Banks b29bc906ee
bugfix: use ServiceTags to generate cache key hash (#4987)
6 years ago
Aestek 8709213d6e Prevent status flap when re-registering a check (#4904)
6 years ago
Mitchell Hashimoto f76022fa63 CA Provider Plugins (#4751)
6 years ago
Grégoire Seux 4f62a3b528 Implement /v1/agent/health/service/<service name> endpoint (#3551)
6 years ago
Aestek 5960974db1 [Fix] Services sometimes not being synced with acl_enforce_version_8 = false (#4771)
6 years ago
Hans Hasselberg 0b4a879203
ui: serve /robots.txt when UI is enabled. (#5089)
6 years ago
Kyle Havlovitz 995e728ea0 txn: fix an issue with querying nodes by name instead of ID
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 de4dbf583e txn: add tests for RPC endpoint
6 years ago
Kyle Havlovitz 6a512e5c0f txn: add ACL enforcement/validation to new txn ops
6 years ago
Kyle Havlovitz 9467067432 state: add tests for new txn ops
6 years ago
Kyle Havlovitz 7759e9ea8b txn: add service operations
6 years ago
Kyle Havlovitz ab58986ac3 txn: add node operations
6 years ago
Kyle Havlovitz 01e1b5b1df txn: add pre-check operations to txn endpoint
6 years ago
Kyle Havlovitz b371ea8783 Add check operations to transaction api
6 years ago
Kyle Havlovitz c7e0d3b919
Merge pull request #5061 from hashicorp/blank-ca-fix
6 years ago
Kyle Havlovitz 4f2715d4e2 connect/ca: prevent blank CA config in snapshot
6 years ago
Jack Pearkes b64e8b262f
Documentation and changes for `verify_server_hostname` (#5069)
6 years ago
R.B. Boyer c1eccfd1db
agent: remove some stray fmt.Print* calls (#5015)
6 years ago
Pierre Souchay c5ae9caa28 Fixed another list of unstable unit tests in travis (#4915)
6 years ago
banks 0bddfa23a2
Release v1.4.0
6 years ago
Kyle Havlovitz 76f102a1e0
Merge pull request #4952 from hashicorp/test-version
6 years ago
R.B. Boyer 934fae659f
acl: add stub hooks to support some plumbing in enterprise (#4951)
6 years ago
Kyle Havlovitz 269354c61d
oss: bump test server version to 1.4.0
6 years ago
Aestek 4942e66440 Fix catalog tag filter backward compat (#4944)
6 years ago
Jack Pearkes a90c29e60d Doc changes for 1.4 Final (#4870)
6 years ago
Paul Banks 54c2ff6aca
connect: remove additional trust-domain validation (#4934)
6 years ago
Kyle Havlovitz 4a73a59d70
Merge pull request #4917 from hashicorp/replication-token-cleanup
6 years ago
Kyle Havlovitz 972177071d update non-voting server test to fix enterprise diff
6 years ago
Kyle Havlovitz 643bd13aed oss: do a proper check-and-set on the CA roots/config fsm operation
6 years ago
R.B. Boyer e30cc73b1d
Update agent tests to wait a bit longer for the /v1/agent/self endpoint (#4937)
6 years ago
R.B. Boyer 2afc2a3c3b
acl: fixes ACL replication for legacy tokens without AccessorIDs (#4885)
6 years ago
Kyle Havlovitz e8dd89359a
agent: fix formatting
6 years ago
Kyle Havlovitz 62691ebc82
config: remote connect replication_token
6 years ago
R.B. Boyer 9211d2701d
fix comment typos (#4890)
6 years ago
Kyle Havlovitz 8337e3d8c0
Merge pull request #4872 from hashicorp/node-snapshot-fix
6 years ago
Matt Keeler db2cf01406 Adds documentation for the new ACL APIs (#4851)
6 years ago
Matt Keeler f9cf0eb36e Remaining ACL Unit Tests (#4852)
6 years ago
Kyle Havlovitz bd6d0e598f fsm: update snapshot/restore test to include ID and datacenter
6 years ago
Kyle Havlovitz 6483356329 fsm: add missing ID/datacenter to persistNodes
6 years ago
Matt Keeler d238cb181c
New ACL API Tests (#4848)
6 years ago
Matt Keeler 790cf90ee5
Fix the NonVoter Bootstrap test (#4786)
6 years ago
banks 1757fbc0aa
Release v1.4.0-rc1
6 years ago
Kyle Havlovitz 819566f6b7 fsm: add Intention operations to transactions for internal use
6 years ago
Matt Keeler 34b53e7099 A few misc fixes found by go vet
6 years ago
Matt Keeler 18b29c45c4
New ACLs (#4791)
6 years ago
Pierre Souchay fab55bee2b dns: implements prefix lookups for DNS TTL (#4605)
6 years ago
Jack Pearkes 8c684db488 New command: consul debug (#4754)
6 years ago
Kyle Havlovitz c617326470 re-add Connect multi-dc config changes
6 years ago
R.B. Boyer 307d91934c
fix some test hangs (#4785)
6 years ago
banks 469768ae39 Release v1.3.0
6 years ago
Jack Pearkes 8bcfbaffb6 Revert "Connect multi-dc config" (#4784)
6 years ago
Aestek 25f04fbd21 [Security] Add finer control over script checks (#4715)
6 years ago
Paul Banks 298af6dca7
Quick fix for cache age flakiness in CI
6 years ago
Rebecca Zanzig 34e5516834 Support multiple tags for health and catalog http api endpoints (#4717)
6 years ago
Pierre Souchay 51b33ef015 [Performance On Large clusters] Reduce updates on large services (#4720)
6 years ago
Paul Banks 51c0001aad
[WIP] Initial draft of Sidecar Service and Managed Proxy deprecation docs (#4752)
6 years ago
Pierre Souchay 251156eb68 Added SOA configuration for DNS settings. (#4714)
6 years ago