Commit Graph

3623 Commits (20d0bf81f731ea35302905562cd673720a030b72)

Author SHA1 Message Date
Daniel Nephin 8c575445da telemetry: add a metric for agent TLS cert expiry
3 years ago
Dhia Ayachi cfa9cf6d84
fix state index for `CAOpSetRootsAndConfig` op (#10675)
3 years ago
hc-github-team-consul-core 2f6c95011b auto-updated agent/uiserver/bindata_assetfs.go from commit 8ad1ab9c0
3 years ago
Evan Culver 710bd90ef7
checks: Add Interval and Timeout to API response (#10717)
3 years ago
Daniel Nephin 8cf1aa1bda acl: Remove the remaining authz == nil checks
3 years ago
Daniel Nephin dc50b36b0f acl: remove acl == nil checks
3 years ago
Daniel Nephin 4f1a36629a acl: remove authz == nil checks
3 years ago
Daniel Nephin f497d5ab30 acl: remove many instances of authz == nil
3 years ago
Daniel Nephin b8ae00c23b agent: remove unused agent methods
3 years ago
Daniel Nephin 9dd6d26d05 acl: remove rule == nil checks
3 years ago
hc-github-team-consul-core 323039dd06 auto-updated agent/uiserver/bindata_assetfs.go from commit 2ee501be8
3 years ago
Daniel Nephin 97fed47708
Merge pull request #10632 from hashicorp/pairing/acl-authorizer-when-acl-disabled
3 years ago
Evan Culver 727b81a757 Fix intention endpoint test
3 years ago
Daniel Nephin 84fac3ce0e acl: use acl.ManangeAll when ACLs are disabled
3 years ago
Blake Covarrubias 11f1f3fe34 Add OSS changes for specifying audit log permission mode
3 years ago
Daniel Nephin d2b58cd0d6
Merge pull request #10707 from hashicorp/dnephin/streaming-setup-default-timeout
3 years ago
Daniel Nephin 242b3a2dc5 streaming: set a default timeout
3 years ago
hc-github-team-consul-core 9c33505aef auto-updated agent/uiserver/bindata_assetfs.go from commit eb5512fb7
3 years ago
Chris S. Kim 9c3af1a429
sync enterprise files with oss (#10705)
3 years ago
Daniel Nephin 8cfbc8e7c9 http: don't log an error if the request is cancelled
3 years ago
Daniel Nephin a0b114968e
Merge pull request #10399 from hashicorp/dnephin/debug-stream-metrics
3 years ago
Daniel Nephin e58a074bde http: add tests for AgentMetricsStream
3 years ago
Daniel Nephin beea1c2218 http: emit indented JSON in the metrics stream endpoint
3 years ago
Daniel Nephin c3149ec0fd debug: use the new metrics stream in debug command
3 years ago
Freddy ff9700b068
Reset root prune interval after TestLeader_CARootPruning completes
3 years ago
Chris S. Kim 91c90a672a
agent: update proxy upstreams to inherit namespace from service (#10688)
3 years ago
Freddy 19f6e1ca31
Log the correlation ID when blocking queries fire (#10689)
3 years ago
R.B. Boyer 3343c7cb3a
state: refactor some node/coordinate state store functions to take an EnterpriseMeta (#10687)
3 years ago
R.B. Boyer 96b97d6554
replumbing a bunch of api and agent structs for partitions (#10681)
3 years ago
R.B. Boyer fc9b1a277d
sync changes to oss files made in enterprise (#10670)
3 years ago
R.B. Boyer 188e8dc51f
agent/structs: add a bunch more EnterpriseMeta helper functions to help with partitioning (#10669)
3 years ago
Dhia Ayachi c6859b3fb0
config raft apply silent error (#10657)
3 years ago
Freddy cf4821885d
Avoid panic on concurrent writes to cached service config map (#10647)
3 years ago
hc-github-team-consul-core 139717d3f8 auto-updated agent/uiserver/bindata_assetfs.go from commit 1eb7a83ee
3 years ago
Blake Covarrubias a0cd3dd88e
Add DNS recursor strategy option (#10611)
3 years ago
Daniel Nephin 499250cbf1
Merge pull request #10396 from hashicorp/dnephin/fix-more-data-races
3 years ago
Daniel Nephin 1c8ac9cd4b
Merge pull request #10009 from hashicorp/dnephin/trim-dns-response-with-edns
3 years ago
Daniel Nephin a77575e93e acl: use SetHash consistently in testPolicyForID
3 years ago
Daniel Nephin 4bf58d8e6a dns: improve naming of error to match DNS terminology
3 years ago
Dhia Ayachi f0cd1441a9 fix truncate when NS is set
3 years ago
Evan Culver 0527dcff57
acls: Show `AuthMethodNamespace` when reading/listing ACL token meta (#10598)
3 years ago
Daniel Nephin bb675139c1
Merge pull request #10567 from hashicorp/dnephin/config-unexport-build
3 years ago
Freddy 12b7e07d5c
Merge pull request #10621 from hashicorp/vuln/validate-sans
3 years ago
Daniel Nephin bb7fb21004
Fix godoc comment
3 years ago
R.B. Boyer 20feb42d3a
xds: ensure single L7 deny intention with default deny policy does not result in allow action (CVE-2021-36213) (#10619)
3 years ago
hc-github-team-consul-core 58807668bd auto-updated agent/uiserver/bindata_assetfs.go from commit 0762da3a6
3 years ago
Giulio Micheloni 814ef6b103 acl: fix error type into a string type for serialization issue
3 years ago
freddygv b4c5c58c9b Add TODOs about partition handling
3 years ago
freddygv 5a82656510 Update golden files
3 years ago
freddygv 47da00d3c7 Validate SANs for passthrough clusters and failovers
3 years ago
freddygv 5454147c09 Update golden files to account for SAN validation
3 years ago
freddygv a6d3fe90b1 Validate Subject Alternative Name for upstreams
3 years ago
Daniel Nephin fa47c04065 Fix a data race in TestACLResolver_Client
3 years ago
Daniel Nephin a0ca381037 agent: remove deprecated call in a test
3 years ago
Daniel Nephin 678014de1d agent: fix a data race in a test
3 years ago
Daniel Nephin 0acfc2c65b agent: fix a data race in DNS tests
3 years ago
Daniel Nephin 970f5d78ec agent: fix two data race in agent tests
3 years ago
Daniel Nephin baa2b8628e consul: fix data race in leader CA tests
3 years ago
Daniel Nephin 204bf2b345 dns: correct rcode for qtype not supported
3 years ago
Dhia Ayachi ad2065f2aa Check response len do not exceed max Buffer size
3 years ago
Dhia Ayachi f8f2756967 add missing test for truncate
3 years ago
Daniel Nephin d116bda958 dns: remove network parameter from two funcs
3 years ago
Daniel Nephin 42f7963252 dns: trim response immediately before the write
3 years ago
Daniel Nephin 436a02af31 dns: handle errors from dispatch
3 years ago
Daniel Nephin 9267b09c32 dns: error response from dispatch
3 years ago
Daniel Nephin 68d6f1315f dns: refactor dispatch to use an explicit return in each case
3 years ago
Daniel Nephin b96c8195a5 dns: small refactor to setEDNS to return early
3 years ago
Daniel Nephin 4beff900d1 dns: remove unused method
3 years ago
Daniel Nephin f31aa12cf1 dns: remove unnecessary function wrapping
3 years ago
Kyle Havlovitz 77a2f38677 http: add partition query param parsing
3 years ago
hc-github-team-consul-core 1169df0878 auto-updated agent/uiserver/bindata_assetfs.go from commit 3e80e637b
3 years ago
Giulio Micheloni 529fe737ef acl: acl replication routine to report the last error message
3 years ago
Daniel Nephin 74fb650b6b
Merge pull request #10588 from hashicorp/dnephin/config-fix-ports-grpc
3 years ago
Daniel Nephin b5cd2050b4 fix backwards compat for envoy command
3 years ago
Daniel Nephin 233d03dbbd Apply suggestions from code review
3 years ago
Daniel Nephin 4ad80ccee3 command/envoy: stop using the DebugConfig from Self endpoint
3 years ago
Daniel Nephin c48f26b0a6 config: update config settings and flags for ports.xds
3 years ago
Dhia Ayachi 58bd817336
check expiry date of the root/intermediate before using it to sign a leaf (#10500)
3 years ago
R.B. Boyer 6c47efd532
connect/ca: ensure edits to the key type/bits for the connect builtin CA will regenerate the roots (#10330)
3 years ago
R.B. Boyer 7bf9ea55cf
connect/ca: require new vault mount points when updating the key type/bits for the vault connect CA provider (#10331)
3 years ago
Daniel Nephin 0ccad1d6f7
Merge pull request #10479 from hashicorp/dnephin/ca-provider-explore-2
3 years ago
Daniel Nephin b89ec826c8
Merge pull request #10445 from hashicorp/dnephin/ca-provider-explore
3 years ago
Daniel Nephin bf292cbae4 ca: use provider constructors to be more consistent
3 years ago
Dhia Ayachi 5ed56fc786 check error when `raftApplyMsgpack`
3 years ago
Daniel Nephin 3091026e02 auto-config: move autoConfigBackend impl off of Server
3 years ago
Daniel Nephin 0512cb2813 ca: move SignCertificate to the file where it is used
3 years ago
Daniel Nephin dfebfe508e ca: move SignCertificate to CAManager
3 years ago
Daniel Nephin 570eac3167
Merge pull request #10590 from hashicorp/dnephin/tls-config-less-copy
3 years ago
hc-github-team-consul-core a9dcfc59bd auto-updated agent/uiserver/bindata_assetfs.go from commit a96e87aec
3 years ago
Dhia Ayachi 047537833d add missing state reset when stopping ca manager
3 years ago
Daniel Nephin 6228c4a53c ca: fix mockCAServerDelegate to work with the new interface
3 years ago
Daniel Nephin 7dae65cd56 ca: remove unused method
3 years ago
Daniel Nephin 1960c717af ca: remove raftApply from delegate interface
3 years ago
Daniel Nephin 1f4cdde9cc ca: move generateCASignRequest to the delegate
3 years ago
Daniel Nephin fc14f5ab14 ca: move provider creation into CAManager
3 years ago
Daniel Nephin b1877660d5 ca-manager: move provider shutdown into CAManager
3 years ago
Daniel Nephin be8c675942 config: remove misleading UseTLS field
3 years ago
Daniel Nephin 70770db345 config: remove duplicate TLSConfig fields from agent/consul.Config
3 years ago
Daniel Nephin 895bf9adec config: update GRPCPort and addr in runtime config
3 years ago
Daniel Nephin 7d73fd7ae5 rename GRPC->XDS where appropriate
3 years ago
Evan Culver 13bd86527b
Add support for returning ACL secret IDs for accessors with acl:write (#10546)
3 years ago
Daniel Nephin ec6da0859d
Merge pull request #10570 from hashicorp/copy-of-master
3 years ago
R.B. Boyer c94b8c6a39
config: add agent config flag for enterprise clients to indicate they wish to join a particular partition (#10572)
3 years ago
Dhia Ayachi 6390e91be5
Add ca certificate metrics (#10504)
3 years ago
hc-github-team-consul-core 97831bf3dc auto-updated agent/uiserver/bindata_assetfs.go from commit 6fbeea5de
3 years ago
Jared Kirschner e517e744af
Merge pull request #10559 from jkirschner-hashicorp/fix-autopilot-config-post-default-values
3 years ago
hc-github-team-consul-core 00f4d94139 auto-updated agent/uiserver/bindata_assetfs.go from commit 2c4f22a9f
3 years ago
Daniel Nephin 2c4f22a9f0
Merge pull request #10552 from hashicorp/dnephin/ca-remove-rotation-period
3 years ago
Daniel Nephin d1c9d9bc68 config: unexport the remaining builder methods
3 years ago
Jared Kirschner 14059c2653 Fix defaults for autopilot config update
3 years ago
hc-github-team-consul-core c47bcc0d4c auto-updated agent/uiserver/bindata_assetfs.go from commit 74070c095
3 years ago
hc-github-team-consul-core 98cc5aaa35 auto-updated agent/uiserver/bindata_assetfs.go from commit 5f73de6fb
3 years ago
jkirschner-hashicorp 5f73de6fbc
Merge pull request #10560 from jkirschner-hashicorp/change-sane-to-reasonable
3 years ago
Daniel Nephin 3a045cca8d ca: remove unused RotationPeriod field
3 years ago
Jared Kirschner bd536151e1 Replace use of 'sane' where appropriate
3 years ago
Dhia Ayachi 9b45107c1e
Format certificates properly (rfc7468) with a trailing new line (#10411)
3 years ago
Daniel Nephin 690dc41c55
Merge pull request #10515 from hashicorp/dnephin/fix-arm32-atomic-aligment
3 years ago
Daniel Nephin f34d3543b1 testing: fix a test for 32-bit
3 years ago
Daniel Nephin dce59d9277 fix 64-bit aligment for 32-bit platforms
3 years ago
Daniel Nephin bc4d349ccf streaming: support X-Cache-Hit header
3 years ago
Daniel Nephin c78391797d streaming: fix enable of streaming in the client
3 years ago
Daniel Nephin 8b365f8271 Remove a racy and failing test
3 years ago
Daniel Nephin 16b21b0864 http: add an X-Consul-Query-Backend header to responses
3 years ago
Daniel Nephin 2e1e80266a
Merge pull request #10506 from hashicorp/dnephin/docs-rpc-query-metrics
3 years ago
Daniel Nephin 7531a6681d docs: correct some misleading telemetry docs
3 years ago
R.B. Boyer ed8a901be7
connect: include optional partition prefixes in SPIFFE identifiers (#10507)
3 years ago
R.B. Boyer a2876453a5
connect/ca: cease including the common name field in generated certs (#10424)
3 years ago
hc-github-team-consul-core f24ee5d842 auto-updated agent/uiserver/bindata_assetfs.go from commit ace794d21
3 years ago
Dhia Ayachi a64c9a3e62
return an empty record when asked for an addr dns with type other then A, AAAA and ANY (#10401)
3 years ago
Daniel Nephin bb37c4dfe8
Merge pull request #10476 from hashicorp/dnephin/ca-primary-uses-intermediate
3 years ago
R.B. Boyer e3835ac6a1
structs: prohibit config entries from referencing more than one partition at a time (#10478)
3 years ago
R.B. Boyer 8344b7fe2e
structs: prevent service-defaults upstream configs from using wildcard names or namespaces (#10475)
3 years ago
Daniel Nephin f52d76f096 ca: replace ca.PrimaryIntermediateProviders
3 years ago
R.B. Boyer ac50db9087
structs: add some missing config entry validation and clean up tests (#10465)
3 years ago
hc-github-team-consul-core 1822b80ef3 auto-updated agent/uiserver/bindata_assetfs.go from commit c78f7ecb2
3 years ago
Daniel Nephin 17e210ed16
Merge pull request #10444 from hashicorp/dnephin/tls-cert-exploration-2
3 years ago
Daniel Nephin 2aad3f80fb tlsutil: reduce interface provided to auto-config
3 years ago
hc-github-team-consul-core f7455a3017 auto-updated agent/uiserver/bindata_assetfs.go from commit 043f631b7
3 years ago
hc-github-team-consul-core 58bf4adc02 auto-updated agent/uiserver/bindata_assetfs.go from commit 4bddd5210
3 years ago
Daniel Nephin 10051cf6d3 proxycfg: remove unused method
3 years ago
Daniel Nephin 6bc5255028 proxycfg: move each handler into a seprate file
3 years ago
hc-github-team-consul-core 62340a56b9 auto-updated agent/uiserver/bindata_assetfs.go from commit 5f17062b0
3 years ago
hc-github-team-consul-core 211525a4c4 auto-updated agent/uiserver/bindata_assetfs.go from commit 9eab71514
3 years ago
hc-github-team-consul-core 143c73268e auto-updated agent/uiserver/bindata_assetfs.go from commit ac424187f
3 years ago
Daniel Nephin d81f527be8
Merge pull request #9924 from hashicorp/dnephin/cert-expiration-metric
3 years ago
Daniel Nephin 19d3eeff3c
Merge pull request #9489 from hashicorp/dnephin/proxycfg-state-2
3 years ago
Daniel Nephin 345e979b4c
Merge pull request #10425 from hashicorp/dnephin/tls-cert-exploration
3 years ago
Daniel Nephin 0a14a3e17c inline assignment
3 years ago
Nitya Dhanushkodi 52043830b4 proxycfg: reference to entry in map should not panic
3 years ago
Daniel Nephin e738fa3b80 Replace type conversion with embedded structs
3 years ago
Daniel Nephin 32c15d9a88 proxycfg: split state into kind-specific types
4 years ago
Daniel Nephin cd05df7157 proxycfg: unmethod hostnameEndpoints
4 years ago
Daniel Nephin 97c6ee00d7 Remove duplicate import
4 years ago
Daniel Nephin 0547d0c046
Merge pull request #9466 from hashicorp/dnephin/proxycfg-state
4 years ago
R.B. Boyer 5b495ae8e0
xds: fix flaky protocol tests (#10410)
4 years ago
Freddy ae886136f1
Merge pull request #10404 from hashicorp/ingress-stats
4 years ago
R.B. Boyer 80c39f1083
xds: adding more delta protocol tests (#10398)
4 years ago
freddygv 924a5ba642 Regen golden files
4 years ago
Freddy 0a38c8fe10
Update agent/xds/listeners.go
4 years ago
Freddy 3ee66b2e9a
Omit empty tproxy config in JSON responses (#10402)
4 years ago
Nitya Dhanushkodi b8b44419a0
proxycfg: Ensure that endpoints for explicit upstreams in other datacenters are watched in transparent mode (#10391)
4 years ago
freddygv f3e4705923 Remove unused param
4 years ago
Dhia Ayachi c8ba2d40fd
improve monitor performance (#10368)
4 years ago
freddygv 0aec6761dc Update ingress gateway stats labeling
4 years ago
freddygv 6f8c6043b6 Update terminating gateway stats labeling
4 years ago
R.B. Boyer 848ad8535b
xds: ensure that dependent xDS resources are reconfigured during primary type warming (#10381)
4 years ago
Daniel Nephin aec7e798b0 Update metric name
4 years ago
Daniel Nephin 1c980e4700 connect: emit a metric for the number of seconds until root CA expiration
4 years ago
Freddy ffb13f35f1
Rename CatalogDestinationsOnly (#10397)
4 years ago
Freddy 33bd9b5be8
Relax validation for expose.paths config (#10394)
4 years ago
Daniel Nephin 016c5611d1 proxycfg: extract two types from state struct
4 years ago
Daniel Nephin 9c40aa729f proxycfg: pass context around where it is needed
4 years ago
Daniel Nephin 3726cb52c7 http: add PrimaryDatacenter to the /v1/agent/self response
4 years ago
Freddy 429f9d8bb8
Add flag for transparent proxies to dial individual instances (#10329)
4 years ago
Daniel Nephin 3d5ff8b5db submatview: add test cases for store.Get with timeout and no index
4 years ago
Daniel Nephin cf5cdf07a0
Merge pull request #10364 from hashicorp/dnephin/streaming-e2e-test
4 years ago
Freddy 7577f0e991
Revert "Avoid adding original_dst filter when not needed" (#10365)
4 years ago
Daniel Nephin c5f0cf9456 submatview: and Store integration test with stream backend
4 years ago
Daniel Nephin eb0c0d7740 stream: remove bufferItem.NextLink
4 years ago
Daniel Nephin 5ef8a045f3 stream: fix a bug with creating a snapshot
4 years ago
Daniel Nephin 59d201e148 submatview: fix a bug with Store.Get
4 years ago
Paul Ewing 42a51b1a2c
usagemetrics: add cluster members to metrics API (#10340)
4 years ago
Daniel Nephin 29e93f6338 grpc: fix a data race by using a static resolver
4 years ago
Daniel Nephin c94eaa4957 submatview: improve a couple comments
4 years ago
Dhia Ayachi 15dddc9edb
make tests use a dummy node_name to avoid environment related failures (#10262)
4 years ago
Daniel Nephin ba15f92a8a structs: fix cache keys
4 years ago
Daniel Nephin 920ae31598 structs: add two cache completeness tests types that implement cache.Request
4 years ago
Daniel Nephin 46dfdb611f structs: improve the interface of assertCacheInfoKeyIsComplete
4 years ago
Daniel Nephin 7c2957e24d structs: Add more cache key tests
4 years ago
Dhia Ayachi f785c5b332
RPC Timeout/Retries account for blocking requests (#8978)
4 years ago
hc-github-team-consul-core 8ab1013ed9 auto-updated agent/uiserver/bindata_assetfs.go from commit 18190fb07
4 years ago
Dhia Ayachi 4c7f5f31c7
debug: remove the CLI check for debug_enabled (#10273)
4 years ago
hc-github-team-consul-core c68a931e0b auto-updated agent/uiserver/bindata_assetfs.go from commit ddee7afbb
4 years ago
Freddy 353280660f
Ensure passthrough clusters can be created (#10301)
4 years ago
Freddy 19334e8abf
Avoid adding original_dst filter when not needed (#10302)
4 years ago
Matt Keeler da31e0449e Move some things around to allow for license updating via config reload
4 years ago
Dhia Ayachi f2eed912b2
upgrade golangci-lint to v1.40.1 (#10276)
4 years ago
Matt Keeler caafc02449 hcs-1936: Prepare for adding license auto-retrieval to auto-config in enterprise
4 years ago
Matt Keeler 234d0a3c2a Preparation for changing where license management is done.
4 years ago
hc-github-team-consul-core 57e6c8a9e5 auto-updated agent/uiserver/bindata_assetfs.go from commit 600f85753
4 years ago