Commit Graph

4292 Commits (35371ad69788dedd64fc1caa9831f024d625bb7c)

Author SHA1 Message Date
Jared Kirschner 6c84083307
Merge pull request #11821 from hashicorp/error-if-get-request-has-body
3 years ago
Jared Kirschner c73267f318 http: WARN if GET request has non-empty body
3 years ago
Eric eea8300187 Remove the stdduration gogo extension
3 years ago
mrspanishviking 7180c99960
Revert "[Docs] Agent configuration hierarchy "
3 years ago
trujillo-adam 4151dc097a fixing merge conflicts part 3
3 years ago
Eric Haberkorn e92dd9dc9a
Merge pull request #12556 from hashicorp/wire-up-serverless-patcher
3 years ago
Eric Haberkorn fc3c0f312c
Merge pull request #12557 from hashicorp/remove-healthcheck-gogo-stdduration
3 years ago
Eric 4e6b34725d Remove gogo stdduration from the healthcheck protobufs
3 years ago
Eric cf3e517d0e Create and wire up the serverless patcher
3 years ago
trujillo-adam 76d55ac2b4 merging new hierarchy for agent configuration
3 years ago
Mark Anderson 676ea58bc4
Refactor config checks oss (#12550)
3 years ago
Eric Haberkorn d59364fa7f
Merge pull request #12536 from hashicorp/add-serverless-config
3 years ago
Eric Haberkorn 44609c0ca5
Merge pull request #12539 from hashicorp/make-xds-lib
3 years ago
Eric 3302b2eec2 Add the `connect.enable_serverless_plugin` configuration option.
3 years ago
Mark Anderson aaefe15613
Bulk acl message fixup oss (#12470)
3 years ago
Eric f5c9fa6fa6 Make an xdscommon package that will be shared between Consul and Envoy plugins
3 years ago
Eric Haberkorn abfcde1bc6
Merge pull request #12529 from hashicorp/add-meta-to-service-config-response
3 years ago
Eric Haberkorn 9d0ec2eec2 Code review changes
3 years ago
R.B. Boyer 2a56e0055b
proxycfg: change how various proxycfg test helpers for making ConfigSnapshot copies works to be more correct and less error prone (#12531)
3 years ago
Eric f7cc7ff5cd Add `Meta` to `ServiceConfigResponse`
3 years ago
R.B. Boyer 8307e40f2b
reduce flakiness/raciness of errNotFound and errNotChanged blocking query tests (#12518)
3 years ago
R.B. Boyer 9268715697
server: fix spurious blocking query suppression for discovery chains (#12512)
3 years ago
Daniel Nephin 5ba994a73f
Merge pull request #12298 from jorgemarey/b-persistnewrootandconfig
3 years ago
Daniel Nephin 161206e24d ca: make sure the test fails without the fix
3 years ago
R.B. Boyer 58e053c336
raft: upgrade to v1.3.6 (#12496)
3 years ago
Daniel Nephin 73c91ed80f
Merge pull request #12467 from hashicorp/dnephin/ci-vault-test-safer
3 years ago
R.B. Boyer 6666832077
test: parallelize more of TestLeader_ReapOrLeftMember_IgnoreSelf (#12468)
3 years ago
Jorge Marey f429c1a5d9 Fix vault test with suggested changes
3 years ago
Jorge Marey 1a0baf4024 Add test case to verify #12298
3 years ago
Jorge Marey 4375dd2409 Avoid raft change when no config is provided on CAmanager
3 years ago
Daniel Nephin d669226784 ca: fix a test
3 years ago
Daniel Nephin 1f00ede559 ca: require that tests that use Vault are named correctly
3 years ago
R.B. Boyer 7b0548dd8d
server: suppress spurious blocking query returns where multiple config entries are involved (#12362)
3 years ago
Chris S. Kim 25f4a425d1
Merge pull request #12442 from danieleva/12422-keyring
3 years ago
Evan Culver 522676ed8d
connect: Update supported Envoy versions to include 1.19.3 and 1.18.6
3 years ago
Evan Culver b95f010ac0
connect: Upgrade Envoy 1.20 to 1.20.2 (#12443)
3 years ago
R.B. Boyer ca112f8721
fix flaky test panic (#12446)
3 years ago
R.B. Boyer 957146401e
catalog: compare node names case insensitively in more places (#12444)
3 years ago
Daniele Vazzola e76ca318dc Allows keyring operations on client agents
3 years ago
R.B. Boyer 64271289ec
server: partly fix config entry replication issue that prevents replication in some circumstances (#12307)
3 years ago
Chris S. Kim ea47f066d7
Merge pull request #12430 from hashicorp/ci/main-assetfs-build
3 years ago
Daniel Nephin 771df290d7
Merge pull request #11910 from hashicorp/dnephin/ca-provider-interface-for-ica-in-primary
3 years ago
R.B. Boyer 8b987a4d59
configentry: make a new package to hold shared config entry structs that aren't used for RPC or the FSM (#12384)
3 years ago
Dhia Ayachi cd9d8d44a5
file watcher to be used for configuration auto-reload feature (#12301)
3 years ago
hc-github-team-consul-core ad14a2bffd auto-updated agent/uiserver/bindata_assetfs.go from commit 73b6687c5
3 years ago
Evan Culver 602e08ada7
checks: populate interval and timeout when registering services (#11138)
3 years ago
Kyle Havlovitz 362753cad7
Merge pull request #12385 from hashicorp/tproxy-http-upstream-fix
3 years ago
Daniel Nephin dc484ee09e rpc: set response to nil when not found
3 years ago
Daniel Nephin 6021105dfc ca: test that original certs from secondary still verify
3 years ago
Daniel Nephin 6b679aa9d4 Update TODOs to reference an issue with more details
3 years ago
Daniel Nephin 1853a32df6 ca: add test cases for rotating external trusted CA
3 years ago
Daniel Nephin 5e8ea2a039 ca: add a test for secondary with external CA
3 years ago
Daniel Nephin 42ec34d101 ca: examine the full chain in newCARoot
3 years ago
Daniel Nephin 71f3ae04e2 ca: small docs improvements
3 years ago
Daniel Nephin 86994812ed ca: cleanup validateSetIntermediate
3 years ago
Daniel Nephin c1c1580bf8 ca: only return the leaf cert from Sign in vault provider
3 years ago
Daniel Nephin 85ecbaf109
Merge pull request #12110 from hashicorp/dnephin/blocking-queries-not-found
3 years ago
Ashwin Venkatesh 6e6cd928a2
Parse datacenter from request (#12370)
3 years ago
Kyle Havlovitz 3fe358b831 xds: respect chain protocol on default discovery chain
3 years ago
Florian Apolloner f01f00fc84
Support for connect native services in topology view. (#12098)
3 years ago
Chris S. Kim 154b781bc8
Move IndexEntryName helpers to common files (#12365)
3 years ago
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