Commit Graph

4231 Commits (de51780eb87bf060fcebc87a862af667c6acbefc)

Author SHA1 Message Date
Daniel Nephin 8a6e75ac81 rpc: add errNotFound to all Get queries
3 years ago
Daniel Nephin 4b33bdf396 Make blockingQuery efficient with 'not found' results.
3 years ago
Daniel Nephin 897b953f66 Add a test for blocking query on non-existent entry
3 years ago
Daniel Nephin 3301f94004 rpc: improve docs for blockingQuery
3 years ago
R.B. Boyer 115946da99
server: conditionally avoid writing a config entry to raft if it was already the same (#12321)
3 years ago
FFMMM 78264a8030
Vendor in rpc mono repo for net/rpc fork, go-msgpack, msgpackrpc. (#12311)
3 years ago
R.B. Boyer 52009ae86a
missed this test adjustment (#12331)
3 years ago
R.B. Boyer fa4577d1a9
local: fixes a data race in anti-entropy sync (#12324)
3 years ago
Dao Thanh Tung add15e12f7
URL-encode/decode resource names for HTTP API part 5 (#12297)
3 years ago
Mark Anderson 1a16f7ee70 Refactor to make ACL errors more structured. (#12308)
3 years ago
Freddy 9580f79f86
Merge pull request #12223 from hashicorp/proxycfg/passthrough-cleanup
3 years ago
freddygv ceb52d649a Account for upstream targets in another DC.
3 years ago
freddygv cbea3d203c Fix race of upstreams with same passthrough ip
3 years ago
freddygv 659ebc05a9 Ensure passthrough addresses get cleaned up
3 years ago
Freddy 378a7258e3
Prevent xDS tight loop on cfg errors (#12195)
3 years ago
Dhia Ayachi 4f0a71d7b4
fix race when starting a service while the agent `serviceManager` is … (#12302)
3 years ago
Daniel Nephin 01784470f3
Merge pull request #12277 from hashicorp/dnephin/panic-in-service-register
3 years ago
Daniel Nephin 82c264b2b3 config-entry: fix a panic when registering a service or ingress gateway
3 years ago
R.B. Boyer 89bd1f57b5
xds: allow only one outstanding delta request at a time (#12236)
3 years ago
Daniel Nephin 7ec658b7ac
Merge pull request #12265 from hashicorp/dnephin/logging-in-tests
3 years ago
Daniel Nephin 437f769916 A test to reproduce the issue
3 years ago
Daniel Nephin 51b0f82d0e Make test more readable
3 years ago
Daniel Nephin 608597c7b6 ca: relax and move private key type/bit validation for vault
3 years ago
Daniel Nephin d707173253 ca: small cleanup of TestConnectCAConfig_Vault_TriggerRotation_Fails
3 years ago
Daniel Nephin 3f590bb8a1 testing: fix test failures caused by new log level
3 years ago
Daniel Nephin b058845110 sdk: add TestLogLevel for setting log level in tests
3 years ago
Daniel Nephin 7839b2d7e0 ca: add a test that uses an intermediate CA as the primary CA
3 years ago
Daniel Nephin ac732ce82b acl: un-embed ACLIdentity
3 years ago
Daniel Nephin 9d80c1886a
Merge pull request #12167 from hashicorp/dnephin/acl-resolve-token-3
3 years ago
Daniel Nephin 997bf1e5a4
Merge pull request #12166 from hashicorp/dnephin/acl-resolve-token-2
3 years ago
Daniel Nephin 343b6deb79 acl: rename ResolveTokenToIdentityAndAuthorizer to ResolveToken
3 years ago
Daniel Nephin d363cc0f07 acl: remove unused methods on fakes, and add changelog
3 years ago
Daniel Nephin b2b84e7fc6
Merge pull request #12165 from hashicorp/dnephin/acl-resolve-token
3 years ago
Mathew Estafanous c5d2bea92c
Change error-handling across handlers. (#12225)
3 years ago
Fulvio 66f0173355
URL-encode/decode resource names for HTTP API part 4 (#12190)
3 years ago
Dan Upton fdfe079674
streaming: split event buffer by key (#12080)
3 years ago
freddygv c31c1158a6 Add failing test
3 years ago
Daniel Nephin 9b7468f99e ca/provider: remove ActiveRoot from Provider
3 years ago
Daniel Nephin c2b9c81a55 ca: update MockProvider for new interface
3 years ago
Daniel Nephin f05bad4a1d ca: update GenerateRoot godoc
3 years ago
Daniel Nephin 9a59733b7d
Merge pull request #11663 from hashicorp/dnephin/ca-remove-one-call-to-active-root-2
3 years ago
Daniel Nephin db0478265b
Merge pull request #12109 from hashicorp/dnephin/blocking-query-1
3 years ago
Daniel Nephin 7a6e03c19b acl: Remove a call to aclAccessorID
3 years ago
Daniel Nephin 7125fec346
Merge pull request #11221 from hashicorp/dnephin/acl-resolver-5
3 years ago
Dao Thanh Tung 759dd93544
URL-encode/decode resource names for HTTP API part 3 (#12103)
3 years ago
Daniel Nephin f9aef8018b Apply suggestions from code review
3 years ago
Daniel Nephin 737c0097e0 acl: extract a backend type for the ACLResolverBackend
3 years ago
R.B. Boyer d2c0945f52
xds: fix for delta xDS reconnect bug in LDS/CDS (#12174)
3 years ago
Daniel Nephin e134e43da6 acl: remove calls to ResolveIdentityFromToken
3 years ago
Daniel Nephin edca8d61a3 acl: remove ResolveTokenToIdentity
3 years ago
Daniel Nephin a5e8af79c3 acl: return a resposne from ResolveToken that includes the ACLIdentity
3 years ago
Daniel Nephin 8c9c48e219 acl: remove duplicate methods
3 years ago
Daniel Nephin 241663a046 acl: embed ACLResolver in Client and Server
3 years ago
Chris S. Kim bee18f4a1d
Generate bindata_assetfs.go (#12146)
3 years ago
R.B. Boyer b60d89e7ef bulk rewrite using this script
3 years ago
R.B. Boyer 31f6f55bbe test: normalize require.New and assert.New syntax
3 years ago
R.B. Boyer 424f3cdd2c
proxycfg: introduce explicit UpstreamID in lieu of bare string (#12125)
3 years ago
Dan Upton ca3aca92c4
[OSS] Remove remaining references to master (#11827)
3 years ago
VictorBac 31a39c9528
Add GRPC and GRPCUseTLS to api.HealthCheckDefinition (#12108)
3 years ago
Evan Culver e35dd08a63
connect: Upgrade Envoy 1.20 to 1.20.1 (#11895)
3 years ago
Daniel Nephin 71767f1b3e rpc: cleanup exit and blocking condition logic in blockingQuery
3 years ago
Daniel Nephin 72a733bed8 rpc: extract rpcQueryTimeout method
3 years ago
Daniel Nephin fd0a9fd4f3 rpc: move the index defaulting to setQueryMeta.
3 years ago
Daniel Nephin 4b67d6c18b rpc: add subtests to blockingQuery test
3 years ago
Daniel Nephin f92dc11002 rpc: refactor blocking query
3 years ago
Daniel Nephin f31e0b8b1a
Merge pull request #11661 from hashicorp/dnephin/ca-remove-one-call-to-active-root
3 years ago
Kyle Havlovitz 0db874c38b Add virtual IP generation for term gateway backed services
3 years ago
Chris S. Kim 98ea6d1cf1
Fix race with tags (#12041)
3 years ago
Chris S. Kim a0acf9978f
Fix races in anti-entropy tests (#12028)
3 years ago
Mike Morris 1b1a97e8f9
ingress: allow setting TLS min version and cipher suites in ingress gateway config entries (#11576)
3 years ago
Dao Thanh Tung 88c7cfa578
URL-encode/decode resource names for HTTP API part 2 (#11957)
3 years ago
Daniel Nephin d57dec5878 ca: remove unnecessary var, and slightly reduce cyclo complexity
3 years ago
Daniel Nephin 0de7efb316 ca: remove unused provider.ActiveRoot call
3 years ago
Daniel Nephin d0578c6dfc ca: extract the lookup of the active primary CA
3 years ago
Daniel Nephin 7121c78d34 ca: update godoc
3 years ago
Daniel Nephin abac8baa5d ca: remove one call to provider.ActiveRoot
3 years ago
Daniel Nephin eaa084fd41 ca: remove redundant append of an intermediate cert
3 years ago
Daniel Nephin 11f4cdaa49 ca: only generate a single private key for the whole test case
3 years ago
Daniel Nephin b3ffe7ac72 ca: cleanup a test
3 years ago
Daniel Nephin 1fd6b16399 ca: use the new leaf signing lookup func in leader metrics
3 years ago
Blake Covarrubias 4bd92921f4
api: Return 404 when deregistering a non-existent check (#11950)
3 years ago
Dhia Ayachi 1eac39ae9c
clone the service under lock to avoid a data race (#11940)
3 years ago
Daniel Nephin 065f6f89fb
Merge pull request #11918 from hashicorp/dnephin/tob-followup
3 years ago
Daniel Nephin abfc1e4840 snapshot: return the error from replyFn
3 years ago
Daniel Nephin 0166b0839c config: correctly capture all errors.
3 years ago
Chris S. Kim 4cd2542a3e
Fix test for ENT (#11946)
3 years ago
Chris S. Kim e4bcaac08c
Fix test for ENT (#11941)
3 years ago
Dhia Ayachi e653f81919
reset `coalesceTimer` to nil as soon as the event is consumed (#11924)
3 years ago
Mathew Estafanous 0fdd1318e9
Ensure consistency with error-handling across all handlers. (#11599)
3 years ago
Jared Kirschner b393c90ce7 Clarify service and check error messages (use ID)
3 years ago
Jared Kirschner a36ddc31c7
Merge pull request #11335 from littlestar642/url-encoded-args
3 years ago
Chris S. Kim 30550f2c63
testing: Revert assertion for virtual IP flag (#11932)
3 years ago
Jared Kirschner e0ddb9e4c5
Merge pull request #11820 from hashicorp/improve-ui-disabled-api-response
3 years ago
littlestar642 634c72d22f add path escape and unescape to path params
3 years ago
Daniel Nephin 1683da66b0
Merge pull request #11796 from hashicorp/dnephin/cleanup-test-server
3 years ago
freddygv 21f2c2e68d Purge chain if it shouldn't be there
3 years ago
freddygv fe85138453 additional test fixes
3 years ago
freddygv d26b4860fd Account for new upstreams constraint in tests
3 years ago
freddygv 2fe27b748d Check ingress upstreams when gating chain watches
3 years ago
freddygv 6814e84459 Use ptr receiver in all Upstream methods
3 years ago
freddygv 6af9a0d8cf Avoid storing chain without an upstream
3 years ago
freddygv ba12dc215b Clean up chains separately from their watches
3 years ago
freddygv c5c290c503 Validate chains are associated with upstreams
3 years ago
freddygv 70d6358426 Store intention upstreams in snapshot
3 years ago
R.B. Boyer 81ea8129d7
proxycfg: ensure all of the watches are canceled if they are cancelable (#11824)
3 years ago
Jared Kirschner f81dd817ff
Merge pull request #11818 from hashicorp/improve-url-not-found-response
3 years ago
R.B. Boyer 4aabbe529c
proxycfg: use external addresses in tproxy when crossing partition boundaries (#11823)
3 years ago
Jared Kirschner 2de79abc00 http: improve 404 Not Found response message
3 years ago
Freddy 85fe875d07
Use anonymousToken when querying by secret ID (#11813)
3 years ago
R.B. Boyer 631c649291
various partition related todos (#11822)
3 years ago
Jared Kirschner 34ea9ae8c9 http: improve UI not enabled response message
3 years ago
Kyle Havlovitz b50ef696c6
Merge pull request #11812 from hashicorp/metrics-ui-acls
3 years ago
Kyle Havlovitz 9dcaf0539c
Merge pull request #11798 from hashicorp/vip-goroutine-check
3 years ago
Kyle Havlovitz 018693b6ee acl: use wildcard partition in metrics proxy ui endpoint
3 years ago
Kyle Havlovitz 80a4489844 state: fix freed VIP table id index
3 years ago
Kyle Havlovitz ecbd3eb2a6 Exit before starting the vip check routine if possible
3 years ago
Daniel Nephin 0a9cb62859 testing: Deprecate functions for creating a server.
3 years ago
Daniel Nephin c9a992f5e8 testing: remove old config.Build version
3 years ago
Kyle Havlovitz 04ef1c3fa0 leader: move the virtual IP version check into a goroutine
3 years ago
FFMMM 74eb257b1c
[sync ent] increase segment max limit to 4*64, make configurable (#1424) (#11795)
3 years ago
Daniel Nephin f9647ece05
Merge pull request #11780 from hashicorp/dnephin/ca-test-vault-in-secondary
3 years ago
R.B. Boyer bb75e63eb4
agent: ensure service maintenance checks for matching partitions ahead of other errors (#11788)
3 years ago
Daniel Nephin 4116a143e0 fix misleading errors on vault shutdown
3 years ago
Daniel Nephin 968aeff1bb ca: prune some unnecessary lookups in the tests
3 years ago
Daniel Nephin 305655a8b1 ca: remove duplicate WaitFor function
3 years ago
Daniel Nephin 1dec6bb815 ca: fix flakes in RenewIntermediate tests
3 years ago
Daniel Nephin 2e4e8bd791 ca: improve RenewIntermediate tests
3 years ago
Daniel Nephin a4ba1f348d ca: add a test for Vault in secondary DC
3 years ago
Daniel Nephin a5d9b1d322 ca: Add CARoots.Active method
3 years ago
R.B. Boyer 5f5720837b
acl: ensure that the agent recovery token is properly partitioned (#11782)
3 years ago
Daniel Nephin f72e285fe8
Merge pull request #11721 from hashicorp/dnephin/ca-export-fsm-operation
3 years ago
Daniel Nephin 214dcf8d0d ca: use the real FSM operation in tests
3 years ago
R.B. Boyer 592ac8f96a
test: test server should auto cleanup (#11779)
3 years ago
Evan Culver 7a365fa0da
rpc: Unset partition before forwarding to remote datacenter (#11758)
3 years ago
Daniel Nephin dccd3f5806 Merge remote-tracking branch 'origin/main' into serve-panic-recovery
3 years ago
Dan Upton 7efab269c0
Rename `Master` and `AgentMaster` fields in config protobuf (#11764)
3 years ago
Chris S. Kim f8f8580ab2
Godocs updates for catalog endpoints (#11716)
3 years ago
Mathew Estafanous 0a9621ec7a
Transition all endpoint tests in agent_endpoint_test.go to go through ServeHTTP (#11499)
3 years ago
Dan Upton 205ce9a69d
Remove references to "master" ACL tokens in tests (#11751)
3 years ago
Dan Upton 7fe81171d9
Rename `ACLMasterToken` => `ACLInitialManagementToken` (#11746)
3 years ago
Dan Upton 3a91815169
agent/token: rename `agent_master` to `agent_recovery` (internally) (#11744)
3 years ago
R.B. Boyer 9315a9812f return the max
3 years ago
freddygv 60fe5f75bb Remove support for failover to partition
3 years ago
freddygv 5c1f7aa372 Allow cross-partition references in disco chain
3 years ago
R.B. Boyer b1605639fc
light refactors to support making partitions and serf-based wan federation are mutually exclusive (#11755)
3 years ago
R.B. Boyer e20e6348dd
areas: make the gRPC server tracker network area aware (#11748)
3 years ago
Freddy a725f06c83
Merge pull request #11739 from hashicorp/ap/exports-rename
3 years ago
freddygv e91509383f Clean up additional refs to partition exports
3 years ago
freddygv ed6076db26 Rename partition-exports to exported-services
3 years ago
freddygv f5b25401b3 Update intention topology to use new table
3 years ago
freddygv 55970c6ccd Avoid updating default decision from wildcard ixn
3 years ago
freddygv 497aab669f Add a new table to query service names by kind
3 years ago
freddygv e7a7042c69 Update listener generation to account for consul VIP
3 years ago
Freddy f032d6ef05
Merge pull request #11680 from hashicorp/ap/partition-exports-oss
3 years ago
Dan Upton 3b9dfca88d
internal: support `ResultsFilteredByACLs` flag/header (#11643)
3 years ago
Dan Upton c8204330ed
query: support `ResultsFilteredByACLs` in query list endpoint (#11620)
3 years ago
Dhia Ayachi ce326b6074
port oss changes (#11736)
3 years ago
Freddy e246defb6c
Merge pull request #11720 from hashicorp/bbolt
3 years ago
Dan Upton 047aa2ffb0
fedstate: support `ResultsFilteredByACLs` in `ListMeshGateways` endpoint (#11644)
3 years ago
Dan Upton 361d9c2862
catalog: support `ResultsFilteredByACLs` flag/header (#11594)
3 years ago
Dan Upton 4c0956c03a
coordinate: support `ResultsFilteredByACLs` flag/header (#11617)
3 years ago
Dan Upton bf1e2ca551
sessions: support `ResultsFilteredByACLs` flag/header (#11606)
3 years ago
Dan Upton d92f0d84c6
txn: support `ResultsFilteredByACLs` flag in `Read` endpoint (#11632)
3 years ago
Dan Upton 547aa219ea
agent: support `X-Consul-Results-Filtered-By-ACLs` header in agent-local endpoints (#11610)
3 years ago
Dhia Ayachi 86159c6ed8
sessions partitioning tests (#11734)
3 years ago
Dan Upton c314be2ff9
intention: support `ResultsFilteredByACLs` flag/header (#11612)
3 years ago
Mark Anderson a89ffba2d4
Cross port of ent #1383 (#11726)
3 years ago
Dan Upton 599a4d6619
config: support `ResultsFilteredByACLs` in list/list all endpoints (#11621)
3 years ago
Dan Upton c4c68915c9
event: support `X-Consul-Results-Filtered-By-ACLs` header in list (#11616)
3 years ago
Dan Upton 474ef7cc1f
kv: support `ResultsFilteredByACLs` in list/list keys (#11593)
3 years ago
Dan Upton cf1bd585f6
health: support `ResultsFilteredByACLs` flag/header (#11602)
3 years ago
Dan Upton 1e47e3c82b
Groundwork for exposing when queries are filtered by ACLs (#11569)
3 years ago
Kyle Havlovitz 0546bbe08a dns: add endpoint for querying service virtual IPs
3 years ago
Kyle Havlovitz 6f34a4f777
Merge pull request #11724 from hashicorp/service-virtual-ips
3 years ago
Kyle Havlovitz 4f2cfee4b0 consul: add virtual IP generation for connect services
3 years ago
R.B. Boyer c46f9f9f31
agent: add variation of force-leave that exclusively works on the WAN (#11722)
3 years ago
Matt Keeler c7a94843ee Emit raft-boltdb metrics
3 years ago
Daniel Nephin e47cecc653 config: add NoFreelistSync option
3 years ago
Matt Keeler 42a5635bc3 Use raft-boltdb/v2
3 years ago
Daniel Nephin 17a2d14d49 ca: set the correct SigningKeyID after config update with Vault provider
3 years ago
Daniel Nephin 96f95889db
Merge pull request #11713 from hashicorp/dnephin/ca-test-names
3 years ago
Daniel Nephin ff4581092e
Merge pull request #11671 from hashicorp/dnephin/ca-fix-storing-vault-intermediate
3 years ago
Daniel Nephin 81afb208ac
Merge pull request #11677 from hashicorp/dnephin/freeport-interface
3 years ago
Daniel Nephin 447097b166 ca: make test naming consistent
3 years ago
FFMMM 384d497f26
add MustRevalidate flag to connect_ca_leaf cache type; always use on non-blocking queries (#11693)
3 years ago
Daniel Nephin 28a8a64019 ca: make getLeafSigningCertFromRoot safer
3 years ago
Daniel Nephin b29faa3e50 ca: fix stored CARoot representation with Vault provider
3 years ago
Dan Upton bf56a2c495
Rename `agent_master` ACL token in the API and CLI (#11669)
3 years ago
Dan Upton d8afd2f6c8
Rename `master` and `agent_master` ACL tokens in the config file format (#11665)
3 years ago
Chris S. Kim 54e4d1b7b2
ENT to OSS sync (#11703)
3 years ago
R.B. Boyer db91cbf484
auto-config: ensure the feature works properly with partitions (#11699)
3 years ago
Daniel Nephin 32ef9c5d5c ca: add some godoc and func for finding leaf signing cert
3 years ago
Daniel Nephin 4185045a7f sdk/freeport: rename Port to GetOne
3 years ago
Chris S. Kim 56fab21582
Refactor test helper (#11689)
3 years ago
Chris S. Kim 36246c5791
acl: Fill authzContext from token in Coordinate endpoints (#11688)
3 years ago
freddygv dd662d7058 Move ent config test to ent file
3 years ago
freddygv 5e1f7b7c36 Prevent partition-exports entry from OSS usage
3 years ago
Daniel Nephin e8312d6b5a testing: remove unnecessary calls to freeport
3 years ago
Daniel Nephin d795a73f78 testing: use the new freeport interfaces
3 years ago
Daniel Nephin 56f9238d15 go-sso: remove returnFunc now that freeport handles return
3 years ago