Commit Graph

615 Commits (6662e48363905f32cc3e1bc7dddda31307038de2)

Author SHA1 Message Date
Dan Upton 7298967070
Restructure gRPC server setup (#12586)
3 years ago
Dan Upton b36d4e16b6
Support per-listener TLS configuration ⚙️ (#12504)
3 years ago
Eric cf3e517d0e Create and wire up the serverless patcher
3 years ago
Evan Culver 602e08ada7
checks: populate interval and timeout when registering services (#11138)
3 years ago
Dhia Ayachi 4f0a71d7b4
fix race when starting a service while the agent `serviceManager` is … (#12302)
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
Dan Upton ca3aca92c4
[OSS] Remove remaining references to master (#11827)
3 years ago
Dan Upton 7fe81171d9
Rename `ACLMasterToken` => `ACLInitialManagementToken` (#11746)
3 years ago
Freddy e246defb6c
Merge pull request #11720 from hashicorp/bbolt
3 years ago
R.B. Boyer c46f9f9f31
agent: add variation of force-leave that exclusively works on the WAN (#11722)
3 years ago
Daniel Nephin e47cecc653 config: add NoFreelistSync option
3 years ago
R.B. Boyer dd4a59db8e
agent: purge service/check registration files for incorrect partitions on reload (#11607)
3 years ago
R.B. Boyer eb21649f82
partitions: various refactors to support partitioning the serf LAN pool (#11568)
3 years ago
R.B. Boyer 44c023a302
segments: ensure that the serf_lan_allowed_cidrs applies to network segments (#11495)
3 years ago
Mark Anderson 7e8228a20b
Remove some usage of md5 from the system (#11491)
3 years ago
Daniel Nephin 51d8417545
Merge pull request #10690 from tarat44/h2c-support-in-ping-checks
3 years ago
Daniel Nephin b57cae94de
Merge pull request #10771 from hashicorp/dnephin/emit-telemetry-metrics-immediately
3 years ago
R.B. Boyer af9ffc214d
agent: add a clone function for duplicating the serf lan configuration (#11443)
3 years ago
Daniel Nephin a8e2e1c365 agent: move agent tls metric monitor to a more appropriate place
3 years ago
Daniel Nephin c92513ec16 telemetry: set cert expiry metrics to NaN on start
3 years ago
freddygv 954d21c6ba Register the ExportingPartitions cache type
3 years ago
R.B. Boyer ef559dfdd4
agent: refactor the agent delegate interface to be partition friendly (#11429)
3 years ago
Chris S. Kim fa293362be
agent: Ensure partition is considered in agent endpoints (#11427)
3 years ago
tarat44 c1ed3a9a94 change config option to H2PingUseTLS
3 years ago
tarat44 3c9f5a73d9 add support for h2c in h2 ping health checks
3 years ago
Daniel Nephin d12dd48c61 acl: remove ACL upgrading from Clients
3 years ago
Daniel Nephin cc310224aa command/envoy: stop using the DebugConfig from Self endpoint
3 years ago
Daniel Nephin 1502547e38 Revert "Merge pull request #10588 from hashicorp/dnephin/config-fix-ports-grpc"
3 years ago
Chris S. Kim e3248c20c9
agent: Clean up unused built-in proxy config (#11165)
3 years ago
Daniel Nephin 1f9479603c
Add failures_before_warning to checks (#10969)
3 years ago
R.B. Boyer 097e1645e3
agent: ensure that most agent behavior correctly respects partition configuration (#10880)
3 years ago
Daniel Nephin 17841248dd config: remove ACLResolver settings from RuntimeConfig
3 years ago
Daniel Nephin 31e034215f acl: remove ACLResolver config fields from consul.Config
3 years ago
Daniel Nephin c85c62dffb
Merge pull request #10807 from hashicorp/dnephin/remove-acl-datacenter
3 years ago
Daniel Nephin 0575498d0d proxycfg: Lookup the agent token as a default
3 years ago
Daniel Nephin 7160f7a614 acl: remove ACLDatacenter
3 years ago
Daniel Nephin 8c575445da telemetry: add a metric for agent TLS cert expiry
3 years ago
Daniel Nephin 242b3a2dc5 streaming: set a default timeout
3 years ago
R.B. Boyer 188e8dc51f
agent/structs: add a bunch more EnterpriseMeta helper functions to help with partitioning (#10669)
3 years ago
Daniel Nephin 74fb650b6b
Merge pull request #10588 from hashicorp/dnephin/config-fix-ports-grpc
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
Daniel Nephin c78391797d streaming: fix enable of streaming in the client
3 years ago
Matt Keeler da31e0449e Move some things around to allow for license updating via config reload
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
Iryna Shustava d7d44f6ae7
Save exposed ports in agent's store and expose them via API (#10173)
4 years ago
Paul Banks 3ad754ca7b
Make Raft trailing logs and snapshot timing reloadable (#10129)
4 years ago
R.B. Boyer 71d45a3460
Support Incremental xDS mode (#9855)
4 years ago
Daniel Nephin 10ec9c2be3 rpcclient: close the grpc.ClientConn on shutdown
4 years ago
Daniel Nephin e229b877d8 health: create health.Client in Agent.New
4 years ago
Daniel Nephin 0558586dbd health: use blocking queries for near query parameter
4 years ago
Daniel Nephin 2a26085b2c connect: do not set QuerySource.Node
4 years ago
Matt Keeler bbf5993534
Move static token resolution into the ACLResolver (#10013)
4 years ago
Tara Tufano 9deb52e868
add http2 ping health checks (#8431)
4 years ago
R.B. Boyer e494313e7b
api: ensure v1/health/ingress/:service endpoint works properly when streaming is enabled (#9967)
4 years ago
freddygv f4f45af6d0 Merge master and fix upstream config protocol defaulting
4 years ago
freddygv a54d6a9010 Update proxycfg for transparent proxy
4 years ago
Christopher Broglie f0307c73e5 Add support for configuring TLS ServerName for health checks
4 years ago
Daniel Nephin f40b76af2d proxycfg: use rpcclient/health.Client instead of passing around cache name
4 years ago
Daniel Nephin 906834ce8e proxycfg: Use streaming in connect state
4 years ago
Daniel Nephin 1a764553c0 rpcclient: use streaming for connect health
4 years ago
freddygv acec711a6a Update server-side config resolution and client-side merging
4 years ago
Daniel Nephin 8c45f2c1fe agent: use the new lib/mutex for stateLock
4 years ago
Daniel Nephin 4e42b8f1d4 agent: remove ServiceManager goroutine
4 years ago
Daniel Nephin 8b67231e8c agent: update godoc for AddServiceRequest
4 years ago
Daniel Nephin f34703fc63 agent: move checkStateSnapshot
4 years ago
Daniel Nephin 1495291054 agent: move two fields off of AddServiceRequest
4 years ago
Daniel Nephin 60c6a1c220 agent: Replace two fields on AddServiceRequest with a func field
4 years ago
Daniel Nephin 5f9930a9be agent: remove an a branch in the AddService flow
4 years ago
Daniel Nephin 4da0718c57 agent: use fields directly, not temp variables
4 years ago
Daniel Nephin 5b6f806f4f agent: addServiceIternalRequest
4 years ago
Daniel Nephin 3d39359bcb agent: move deprecated AddServiceFromSource to a test file
4 years ago
Daniel Nephin e44fd1cb92 agent: use a single method for Agent.AddService
4 years ago
Daniel Nephin 6757231b82 agent: rename AddService->AddServiceFromSource
4 years ago
Daniel Nephin e66af1a559 agent/consuk: Rename RPCRate -> RPCRateLimit
4 years ago
Daniel Nephin 5684223e36 agent/consul: make Client/Server config reloading more obvious
4 years ago
Daniel Nephin a04cefaa28 Remove an unnecessary else
4 years ago
Daniel Nephin 4b8b2a4291 xds: remove Server.Initialize
4 years ago
Daniel Nephin 375aed5ed6 xds: Pass in logger
4 years ago
Daniel Nephin d64425d2e4
Merge pull request #9213 from hashicorp/dnephin/resolve-tokens-take-2
4 years ago
Michael Montgomery e4f603dfae Merge branch 'master' into 6074-allow-config-MaxHeaderBytes
4 years ago
Kenia 27f6899ec8
Create consul version metric with version label (#9350)
4 years ago
Michael Montgomery 585c84e9ff Merge branch 'master' into 6074-allow-config-MaxHeaderBytes
4 years ago
Daniel Nephin 738bf9efdc agent: fix bug with multiple listeners
4 years ago
Daniel Nephin 0ee86935f0 Remove two unused delegate methods
4 years ago
Matt Keeler 66fd23d67f
Refactor to call non-voting servers read replicas (#9191)
4 years ago
Michael Montgomery 5b6ac035ff Resolves #6074. Adds new option to configure HTTP Server's MaxHeaderBytes with option `-http-max-header-bytes`
4 years ago
Daniel Nephin bd44952c2e streaming: disable streaming when requesting connect events
4 years ago
Daniel Nephin 853667e7d8 health: change the name of UseStreamingBackend config
4 years ago
Daniel Nephin 3a55c30a05
Merge pull request #8924 from ShimmerGlass/fix-sidecar-deregister-after-restart
4 years ago
Mathilde Gilles 1c8369b3c3 Fix: service LocallyRegisteredAsSidecar property is not persisted
4 years ago
Daniel Nephin ea77eccb14
Merge pull request #8825 from hashicorp/streaming/add-config
4 years ago
Daniel Nephin e7d505dc33 config: add field for enabling streaming in the client
4 years ago
Kit Patella adeabf2399
Merge pull request #8877 from hashicorp/mkcp/telemetry/consul.api.http
4 years ago
Matt Keeler 38f5ddce2a
Add per-agent reconnect timeouts (#8781)
4 years ago
Daniel Nephin b93577c94f config: add field for enabling streaming RPC endpoint
4 years ago
Kit Patella 7fe2f80b4b add config flag to disable 1.9 metrics backwards compatibility. Add warnings on start and reload on default value
4 years ago
Daniel Nephin 529f252d5c rpcclient: Add health.Client and use it in http and dns
4 years ago
Paul Banks e4db845246
Refactor uiserver to separate package, cleaner Reloading
4 years ago
Paul Banks f6d55e1d25
Fix reload test; address other PR feedback
4 years ago
Paul Banks 526bab6164
Add config changes for UI metrics
4 years ago
R.B. Boyer 7eef25daf5
agent: when enable_central_service_config is enabled ensure agent reload doesn't revert check state to critical (#8747)
4 years ago
Daniel Nephin c18516ad7d
Merge pull request #8680 from hashicorp/dnephin/replace-consul-opts-with-base-deps
4 years ago
Daniel Nephin 282fbdfa75 api: rename HTTPServer to HTTPHandlers
4 years ago
Daniel Nephin cdd392d77f agent/consul: pass dependencies directly from agent
4 years ago
Daniel Nephin 4c9ed41eab
Merge pull request #8554 from hashicorp/dnephin/agent-setup-persisted-tokens
4 years ago
Daniel Nephin 6ca45e1a61 agent: add apiServers type for managing HTTP servers
4 years ago
Daniel Nephin 330be5b740 agent/token: Move token persistence out of agent
4 years ago
Matt Keeler 91d680b830
Merge of auto-config and auto-encrypt code (#8523)
4 years ago
Daniel Nephin 72bf350069
Merge pull request #8552 from pierresouchay/reload_cache_throttling_config
4 years ago
R.B. Boyer 74d5df7c7a
xds: use envoy's rbac filter to handle intentions entirely within envoy (#8569)
4 years ago
Matt Keeler f97cc0445a
Move RPC router from Client/Server and into BaseDeps (#8559)
4 years ago
Pierre Souchay d2be9d38da Ensure that Cache options are reloaded when `consul reload` is performed.
4 years ago
Daniel Nephin e16375216d config: use logging.Config in RuntimeConfig
4 years ago
Daniel Nephin f2373a5575 logging: move init of grpclog
4 years ago
Daniel Nephin 63bad36de7 testing: disable global metrics sink in tests
4 years ago
Daniel Nephin 5d4df54296 agent: extract dependency creation from New
4 years ago
Daniel Nephin 35f1ecee0b config: Move remote-script-checks warning to config
4 years ago
Daniel Nephin 27b36bfc4e config: move NodeName validation to config validation
4 years ago
Daniel Nephin 399c77dfb6 agent: rename vars in newConsulConfig
4 years ago
Daniel Nephin 7b5b170a0d agent: Move setupKeyring functions to keyring.go
4 years ago
Daniel Nephin 9919e5dfa5 agent: unmethod consulConfig
4 years ago
Daniel Nephin 8f596f5551 Fix conflict in merged PRs
4 years ago
Daniel Nephin 190fcc14a3
Merge pull request #8463 from hashicorp/dnephin/unmethod-make-node-id
4 years ago
Daniel Nephin 37eacf8192 auto-config: reduce awareness of config
4 years ago
Daniel Nephin 875d8bde42 agent: convert NodeID methods to functions
4 years ago
Daniel Nephin 0738eb8596 Extract nodeID functions to a different file
4 years ago
Daniel Nephin 38980ebb4c config: Make Source an interface
4 years ago
Daniel Nephin 3b82ad0955 Rename NewClient/NewServer
4 years ago
Daniel Nephin 0420d91cdd Remove LogOutput from Agent
4 years ago
Daniel Nephin 5acf01ceeb Remove LogOutput from Server
4 years ago
Daniel Nephin e8ee2cf2f7 Pass a logger to ConnPool and yamux, instead of an io.Writer
4 years ago
Daniel Nephin ed8210fe4d api: Use a Logger instead of an io.Writer in api.Watch
4 years ago
Daniel Nephin 1e17a0c3e1 config: Remove unused field
4 years ago
Matt Keeler 1a78cf9b4c
Ensure certificates retrieved through the cache get persisted with auto-config (#8409)
4 years ago
Matt Keeler 34034b76f5
Agent Auto Config: Implement Certificate Generation (#8360)
4 years ago
Pierre Souchay 505de6dc29
Added ratelimit to handle throtling cache (#8226)
4 years ago
Matt Keeler 2ee9fe0a4d
Move generation of the CA Configuration from the agent code into a method on the RuntimeConfig (#8363)
4 years ago
Matt Keeler 9da8c51ac5
Fix issue with changing the agent token causing failure to renew the auto-encrypt certificate
4 years ago
Daniel Nephin 653c938edc watch: extract makeWatchPlan to facilitate testing
4 years ago
Daniel Nephin f22f3d300d
Merge pull request #8231 from hashicorp/dnephin/unembed-HTTPServer-Server
4 years ago
Daniel Nephin df4088291c agent/http: Update TestSetupHTTPServer_HTTP2
4 years ago
Daniel Nephin 5247ef4c70 Remove ACLsEnabled from delegate interface
4 years ago
Pierre Souchay 20d1ea7d2d
Upgrade go-connlimit to v0.3.0 / return http 429 on too many connections (#8221)
4 years ago
Daniel Nephin a5e45defb1 agent/http: un-embed the HTTPServer
4 years ago
Matt Keeler a5a9560bbd
Initialize the agent leaf cert cache result with a state to prevent unnecessary second certificate signing
4 years ago
Matt Keeler 39b567a55a
Fix auto_encrypt IP/DNS SANs
4 years ago
Daniel Nephin a891ee8428
Merge pull request #8176 from hashicorp/dnephin/add-linter-unparam-1
4 years ago
Matt Keeler 25a4f3c83b
Allow cancelling blocking queries in response to shutting down.
4 years ago
Daniel Nephin 010a609912 Fix a bunch of unparam lint issues
4 years ago
Matt Keeler e2cfa93f02
Don’t leak metrics go routines in tests (#8182)
4 years ago
Matt Keeler d6e05482ab
Allow cancelling startup when performing auto-config (#8157)
5 years ago
Matt Keeler 3dbbd2d37d
Implement Client Agent Auto Config
5 years ago
Matt Keeler 8b7d669a27
Allow the Agent its its child Client/Server to share a connection pool
5 years ago
Matt Keeler 51c3a605ad
Merge pull request #8035 from hashicorp/feature/auto-config/server-rpc
5 years ago
Matt Keeler 9b01f9423c
Implement the insecure version of the Cluster.AutoConfig RPC endpoint
5 years ago
Daniel Nephin d345cd8d30 ci: Add ineffsign linter
5 years ago
R.B. Boyer ffb9c7d6f7
acl: remove the deprecated `acl_enforce_version_8` option (#7991)
5 years ago
Jono Sosulska c554ba9e10
Replace whitelist/blacklist terminology with allowlist/denylist (#7971)
5 years ago
Daniel Nephin c88fae0aac ci: Add staticcheck and fix most errors
5 years ago
Pierre Souchay d6649e42af
Stop all watches before shuting down anything dring shutdown. (#7526)
5 years ago
Pierre Souchay e9d176db2a
Allow to restrict servers that can join a given Serf Consul cluster. (#7628)
5 years ago
Matt Keeler acccdbe45c
Fix identity resolution on clients and in secondary dcs (#7862)
5 years ago
Kyle Havlovitz f14c54e25e Add TLS option and DNS SAN support to ingress config
5 years ago
Matt Keeler 7a4c73acaf
Updates to allow for using an enterprise specific token as the agents token
5 years ago
Matt Keeler bec3fb7c18
Some boilerplate to allow for ACL Bootstrap disabling configurability
5 years ago
Kit Patella e2467f4b2c
Merge pull request #7656 from hashicorp/feature/audit/oss-merge
5 years ago
Kit Patella 3b105435b8 agent,config: port enterprise only fields to embedded enterprise structs
5 years ago
Daniel Nephin 5fe7043439 agent/cache: Make all cache options RegisterOptions
5 years ago
Kit Patella 927f584761 agent: stub out auditing functionality in OSS
5 years ago
Kyle Havlovitz e9e8c0e730
Ingress Gateways for TCP services (#7509)
5 years ago
Daniel Nephin f46d1b5c94 agent/structs: Remove ServiceID.Init and CheckID.Init
5 years ago
Daniel Nephin 329d76fd0e Remove SnapshotRPC passthrough
5 years ago
Pierre Souchay 2a8bf45e38
agent: show warning when enable_script_checks is enabled without safty net (#7437)
5 years ago
Andy Lindeman fb0a990e4d
agent: rewrite checks with proxy address, not local service address (#7518)
5 years ago
Shaker Islam ac309d55f4
docs: document exported functions in agent.go (closes #7101) (#7366)
5 years ago
Daniel Nephin 231c99f7b4 Document Agent.LogOutput
5 years ago
Daniel Nephin bb8833a2d5 agent: Remove unused Encrypted from interface
5 years ago
Daniel Nephin 266bdf7465 agent: Remove xdsServer field
5 years ago
R.B. Boyer 6adad71125
wan federation via mesh gateways (#6884)
5 years ago
Pierre Souchay 864f7efffa
agent: configuration reload preserves check's statuses for services (#7345)
5 years ago
Hans Hasselberg 315d57bfb1
agent: sensible keyring error (#7272)
5 years ago
Akshay Ganeshen 8beb716414
feat: support sending body in HTTP checks (#6602)
5 years ago
Freddy cb77fc6d01
Add managed service provider token (#7218)
5 years ago
Hans Hasselberg 5531678e9e
Security fixes (#7182)
5 years ago
R.B. Boyer d78b5008ce
various tweaks on top of the hclog work (#7165)
5 years ago
Chris Piraino 401221de58
Allow users to configure either unstructured or JSON logging (#7130)
5 years ago
Kit Patella 0d336edb65
Add accessorID of token when ops are denied by ACL system (#7117)
5 years ago
Matt Keeler c09693e545
Updates to Config Entries and Connect for Namespaces (#7116)
5 years ago
Hans Hasselberg 11a571de95
agent: setup grpc server with auto_encrypt certs and add -https-port (#7086)
5 years ago
Aestek 8fc736038a agent: remove service sidecars in Agent.cleanupRegistration (#7022)
5 years ago
Hans Hasselberg 87f32c8ba6
auto_encrypt: set dns and ip san for k8s and provide configuration (#6944)
5 years ago
Aestek ba8fd8296f Add support for dual stack IPv4/IPv6 network (#6640)
5 years ago
Matej Urbas ce023359fe agent: configurable MaxQueryTime and DefaultQueryTime. (#3777)
5 years ago
Matt Keeler a78f7d7a34
OSS changes for implementing token based namespace inferencing
5 years ago
Matt Keeler 5934f803bf
Sync of OSS changes to support namespaces (#6909)
5 years ago