Commit Graph

451 Commits (add-patches)

Author SHA1 Message Date
Daniel Nephin 4297a8ba07 auto-config: Avoid the marshal/unmarshal cycle in auto-config
4 years ago
Daniel Nephin 38980ebb4c config: Make Source an interface
4 years ago
Matt Keeler 67dec3b609
Require token replication to be enabled in secondary dcs when ACLs are enabled with AutoConfig (#8451)
4 years ago
Hans Hasselberg d316cd06c1
auto_config implies connect (#8433)
4 years ago
Matt Keeler dbb461a5d3
Allow setting verify_incoming* when using auto_encrypt or auto_config (#8394)
4 years ago
Matt Keeler 34034b76f5
Agent Auto Config: Implement Certificate Generation (#8360)
4 years ago
Matt Keeler be01c4241d
Default Cache rate limiting options in New
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
Paul Coignet 1d75a8fb50
Fix tests
4 years ago
Paul Coignet a4e39c840b
Add default prefix_filter
4 years ago
André 3bc27df844
minor: fix docstring of DNSOnlyPassing (#8318)
4 years ago
Matt Keeler 4a5b352c18
Require enabling TLS to enable Auto Config (#8159)
5 years ago
Matt Keeler d6e05482ab
Allow cancelling startup when performing auto-config (#8157)
5 years ago
Matt Keeler b0fcf86140 Change auto config authorizer to allow for future extension
5 years ago
Matt Keeler 3dbbd2d37d
Implement Client Agent Auto Config
5 years ago
Daniel Nephin 692a4a8fc8
Merge pull request #7762 from hashicorp/dnephin/warn-on-unknown-service-file
5 years ago
Daniel Nephin be29d6bf75 config: warn when a config file is skipped
5 years ago
Daniel Nephin a9851e1812
Merge pull request #8070 from hashicorp/dnephin/add-gofmt-simplify
5 years ago
Matt Keeler 9f7b22a5eb
Agent Auto Configuration: Configuration Syntax Updates (#8003)
5 years ago
Daniel Nephin 068b43df90 Enable gofmt simplify
5 years ago
Daniel Nephin 476b57fe22 config: refactor to consolidate all File->Source loading
5 years ago
Daniel Nephin 219790ca49 config: Make ConfigFormat not a pointer
5 years ago
Daniel Nephin 77101eee82 config: rename Flags to BuilderOpts
5 years ago
Daniel Nephin 85e0338136 config: remove Args field from Flags
5 years ago
Daniel Nephin 8ec029ae6a Update comments that reference PatchSliceOfMaps
5 years ago
Daniel Nephin c66c533d73
Merge pull request #7964 from hashicorp/dnephin/remove-patch-slice-of-maps-forward-compat
5 years ago
Daniel Nephin 75cbbe2702 config: add HookWeakDecodeFromSlice
5 years ago
Hans Hasselberg 72f92ae7ca
agent: add option to disable agent cache for HTTP endpoints (#8023)
5 years ago
Daniel Nephin 99eb583ebc
Replace goe/verify.Values with testify/require.Equal (#7993)
5 years ago
R.B. Boyer ffb9c7d6f7
acl: remove the deprecated `acl_enforce_version_8` option (#7991)
5 years ago
Daniel Nephin c88fae0aac ci: Add staticcheck and fix most errors
5 years ago
Daniel Nephin 6a2d7d77c0 config: use the new HookTranslateKeys instead of lib.TranslateKeys
5 years ago
Daniel Nephin 8ced4300c8 Add alias struct tags for new decode hook
5 years ago
Pierre Souchay e9d176db2a
Allow to restrict servers that can join a given Serf Consul cluster. (#7628)
5 years ago
Daniel Nephin 600645b5f9 Add unconvert linter
5 years ago
Kit Patella 10b3478a4d agent/config: include Audit struct as a pointer on Config, fix tests
5 years ago
Kit Patella f5030957d0 agent/config: add auditing config to OSS and add to enterpriseConfigMap exclusions
5 years ago
Matt Keeler cbe3a70f56
Update enterprise configurations to be in OSS
5 years ago
Matt Keeler bec3fb7c18
Some boilerplate to allow for ACL Bootstrap disabling configurability
5 years ago
Hans Hasselberg 1194fe441f
auto_encrypt: add validations for auto_encrypt.{tls,allow_tls} (#7704)
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
Kit Patella 4a86cb12c1 config/runtime: fix an extra field in config sanitize
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
Pierre Souchay 4a6569a4e3
tests: change default http_max_conns_per_client to 250 to ease tests (#7625)
5 years ago
Pierre Souchay be1c5c4b48
config: validate system limits against limits.http_max_conns_per_client (#7434)
5 years ago
Emre Savcı 2083b7b04d
agent: add len, cap while initializing arrays
5 years ago
Pierre Souchay 54b22c638d
config: allow running `consul agent -dev -ui-dir=some_path` (#7525)
5 years ago
Freddy 18d356899c
Enable CLI to register terminating gateways (#7500)
5 years ago
Hans Hasselberg 7777891aa6
tls: remove old ciphers (#7282)
5 years ago
R.B. Boyer 6adad71125
wan federation via mesh gateways (#6884)
5 years ago
Kim Ngo a8f4123d37
agent/txn_endpoint: configure max txn request length (#7388)
5 years ago
Hans Hasselberg e05ac57e8f
tls: support tls 1.3 (#7325)
5 years ago
Hans Hasselberg 315d57bfb1
agent: sensible keyring error (#7272)
5 years ago
Hans Hasselberg cb0f94487c
config: increase http_max_conns_per_client default to 200 (#7289)
5 years ago
Akshay Ganeshen 8beb716414
feat: support sending body in HTTP checks (#6602)
5 years ago
Matt Keeler 9e5fd7f925
OSS Changes for various config entry namespacing bugs (#7226)
5 years ago
Freddy cb77fc6d01
Add managed service provider token (#7218)
5 years ago
Hans Hasselberg 5531678e9e
Security fixes (#7182)
5 years ago
Chris Piraino 401221de58
Allow users to configure either unstructured or JSON logging (#7130)
5 years ago
Anthony Scalisi beb928f8de fix spelling errors (#7135)
5 years ago
R.B. Boyer 0f44bcd3d8
agent: default the primary_datacenter to the datacenter if not configured (#7111)
5 years ago
Hans Hasselberg 11a571de95
agent: setup grpc server with auto_encrypt certs and add -https-port (#7086)
5 years ago
Hans Hasselberg 804eb17094
connect: check if intermediate cert needs to be renewed. (#6835)
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 3faee222f2
OSS changes to allow for parsing the enterprise DNS config prop… (#6959)
5 years ago
Matt Keeler 5934f803bf
Sync of OSS changes to support namespaces (#6909)
5 years ago
Hans Hasselberg 9ff69194a2
tls: auto_encrypt and verify_incoming (#6811) (#6899)
5 years ago
Paul Banks cd1b613352
connect: Add AWS PCA provider (#6795)
5 years ago
Sarah Christoff 5e1c6e907b
Set MinQuorum variable in Autopilot (#6654)
5 years ago
rerorero 86c8e48dd9 fix: incorrect struct tag and WaitGroup usage (#6649)
5 years ago
PHBourquin 039615641e Checks to passing/critical only after reaching a consecutive success/failure threshold (#5739)
5 years ago
Sarah Christoff 194f5740ce
ui_content_path config option fix (#6601)
5 years ago
Freddy fdd10dd8b8
Expose HTTP-based paths through Connect proxy (#6446)
5 years ago
Hans Hasselberg faa54ab989
auto_encrypt: verify_incoming_rpc is good enough for auto_encrypt.allow_tls (#6376)
5 years ago
R.B. Boyer ae79cdab1b
connect: introduce ExternalSNI field on service-defaults (#6324)
5 years ago
Mike Morris 65be58703c
connect: remove managed proxies (#6220)
5 years ago
Paul Banks e87cef2bb8 Revert "connect: support AWS PCA as a CA provider" (#6251)
5 years ago
Todd Radel 3497b7c00d
connect: support AWS PCA as a CA provider (#6189)
5 years ago
Todd Radel 2552f4a11a
connect: Support RSA keys in addition to ECDSA (#6055)
5 years ago
freddygv 1a14b94441 Update default gossip encryption key size to 32 bytes
5 years ago
R.B. Boyer c6c4a2251a Merge Consul OSS branch master at commit b3541c4f34
5 years ago
Jack Pearkes 4e0a16ab2d
config: correct limit to limits in config example (#6219)
5 years ago
Jeff Mitchell 94c73d0c92 Chunking support (#6172)
5 years ago
Matt Keeler 3053342198
Envoy Mesh Gateway integration tests (#6187)
5 years ago
R.B. Boyer ad9e7b6ae9
connect: allow L7 routers to match on http methods (#6164)
5 years ago
R.B. Boyer 85cf2706e6
connect: change router syntax for matching query parameters to resemble the syntax for matching paths and headers for consistency. (#6163)
5 years ago
R.B. Boyer 1dbd92e091
connect: validate and test more of the L7 config entries (#6156)
5 years ago
Alvin Huang ef6b80bab2 resolve circleci config conflicts
5 years ago
Pierre Souchay b4590fb8e8 Display nicely Networks (CIDR) in runtime configuration (#6029)
5 years ago
Paul Banks f38da47c55
Allow raft TrailingLogs to be configured. (#6186)
5 years ago
hashicorp-ci a4431da1cc Merge Consul OSS branch 'master' at commit ef257b084d
5 years ago
javicrespo b006060d4c log rotation: limit count of rotated log files (#5831)
5 years ago
R.B. Boyer 67a36e3452
handle structs.ConfigEntry decoding similarly to api.ConfigEntry decoding (#6106)
5 years ago
Jack Pearkes e6f1b78efb Make cluster names SNI always (#6081)
5 years ago
Matt Keeler 8d953f5840 Implement Mesh Gateways
5 years ago
hashicorp-ci 43bda6fb76 Merge Consul OSS branch 'master' at commit e91f73f592
5 years ago
R.B. Boyer 38d76c624e
Allow for both snake_case and CamelCase for config entries written with 'consul config write'. (#6044)
5 years ago
Hans Hasselberg 33a7df3330
tls: auto_encrypt enables automatic RPC cert provisioning for consul clients (#5597)
5 years ago
Akshay Ganeshen 98a35fbe69 dns: support alt domains for dns resolution (#5940)
5 years ago
hashicorp-ci f4304e2e5b Merge Consul OSS branch 'master' at commit 4eb73973b6
5 years ago
Sarah Christoff d3d92d76f3
ui: modify content path (#5950)
5 years ago
Pierre Souchay 0e907f5aa8 Support for maximum size for Output of checks (#5233)
5 years ago
Matt Keeler f3d9b999ee
Add tagged addresses for services (#5965)
6 years ago
Matt Keeler 69f902608c
Update to use a consulent build tag instead of just ent (#5759)
6 years ago
Matt Keeler d0f410cd84
Make a few config entry endpoints return 404s and allow for snake_case and lowercase key names. (#5748)
6 years ago
Freddy 44e3dd79ff
go fmt runtime_test.go
6 years ago
Freddy d19eb36085
Restrict config file extensions read
6 years ago
Paul Banks a12810664f
Modify ConfigEntry bootstrapping syntax more generic (#5744)
6 years ago
R.B. Boyer cc1aa3f973 acl: adding Roles to Tokens (#5514)
6 years ago
Matt Keeler 15e80e4e76
Implement bootstrapping proxy defaults from the config file (#5714)
6 years ago
Kyle Havlovitz 43bfc20dc8 Test an index=0 value in cache.Notify
6 years ago
Kyle Havlovitz c269369760 Make central service config opt-in and rework the initial registration
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
R.B. Boyer 02b2cb1d15 agent: ensure the TLS hostname verification knows about the currently configured domain (#5513)
6 years ago
Hans Hasselberg 7e11dd82aa
agent: enable reloading of tls config (#5419)
6 years ago
R.B. Boyer f4a3b9d518
fix typos reported by golangci-lint:misspell (#5434)
6 years ago
Hans Hasselberg d35824b1fa default to tls 1.2 as promised. (#5340)
6 years ago
Matt Keeler 118adbb123
ACL Token Persistence and Reloading (#5328)
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
Paul Banks ef9f27cbc8
connect: tame thundering herd of CSRs on CA rotation (#5228)
6 years ago
Aestek c043de5381 [Security] Allow blocking Write endpoints on Agent using Network Addresses (#4719)
6 years ago
Paul Banks 0638e09b6e
connect: agent leaf cert caching improvements (#5091)
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
Jack Pearkes b64e8b262f
Documentation and changes for `verify_server_hostname` (#5069)
6 years ago
Kyle Havlovitz 62691ebc82
config: remote connect replication_token
6 years ago
Matt Keeler 18b29c45c4
New ACLs (#4791)
6 years ago
Kyle Havlovitz c617326470 re-add Connect multi-dc config changes
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
Pierre Souchay 251156eb68 Added SOA configuration for DNS settings. (#4714)
6 years ago
Kyle Havlovitz 56dc426227 agent: add primary_datacenter and connect replication config options
6 years ago
Paul Banks c9217c958e merge feedback: fix typos; actually use deliverLatest added previously but not plumbed in
6 years ago
Paul Banks 161482d2cd Fix up tests broken by master merge; add proxy tests to services command (and fix it!); actually run the proxycfg.Manager
6 years ago
Paul Banks 8336b5e6b9 XDS Server Config (#4730)
6 years ago
Paul Banks 1e7eace066 Add SidecarService Syntax sugar to Service Definition (#4686)
6 years ago
Paul Banks b83bbf248c Add Proxy Upstreams to Service Definition (#4639)
6 years ago
Igal Shprincis e1fe3af37f watch: don't set TLSConfig.Address explicitly (#4727)
6 years ago
Pierre Souchay eddcf228ea Implementation of Weights Data structures (#4468)
6 years ago
Siva Prasad ca35d04472
Adds a new command line flag -log-file for file based logging. (#4581)
6 years ago
Matt Keeler 0e0227792b
Gossip tuneables (#4444)
6 years ago
Paul Banks 8dd50d5b2d
Add config option to disable HTTP printable char path check (#4442)
6 years ago
Kyle Havlovitz ed87949385
Merge pull request #4400 from hashicorp/leaf-cert-ttl
6 years ago
Paul Banks 5635227fa6
Allow config-file based Service Definitions for unmanaged proxies and Connect-natice apps. (#4443)
6 years ago
Paul Banks d5e934f9ff
Ooops that was meant to be to a branch no master... EMORECOFFEE
6 years ago
Paul Banks eebe45a47b
Add config option to disable HTTP printable char path check
6 years ago
Paul Banks e954450dec
Merge pull request #4353 from azam/add-serf-lan-wan-port-args
6 years ago
Mitchell Hashimoto 7fa6bb022f
Merge pull request #4320 from hashicorp/f-alias-check
6 years ago
azam 342bcb1c24 Make Serf LAN & WAN port configurable from CLI
6 years ago
Kyle Havlovitz d6ca015a42
connect/ca: add configurable leaf cert TTL
6 years ago
Matt Keeler c891e264ca Fix issue with choosing a client addr that is 0.0.0.0 or ::
6 years ago
Mitchell Hashimoto f0658a0ede
agent/config: support configuring alias check
6 years ago
Matt Keeler 7572ca0f37
Merge pull request #4374 from hashicorp/feature/proxy-env-vars
6 years ago
Matt Keeler 0f56ed2d01 Set api.Config’s InsecureSkipVerify to the value of !RuntimeConfig.VerifyOutgoing
6 years ago
Matt Keeler 22e4058893 Use type switch instead of .Network for more reliably detecting UnixAddrs
6 years ago
Matt Keeler 700a275ddf Look specifically for tcp instead of unix
6 years ago
Matt Keeler c54b43bef3 PR Updates
6 years ago
Matt Keeler bd76a34002
Merge pull request #4365 from pierresouchay/fix_test_warning
6 years ago
Matt Keeler 3b6eef8ec6 Pass around an API Config object and convert to env vars for the managed proxy
6 years ago
Pierre Souchay 7d2e4b77ec Use %q, not %s as it used to
6 years ago
Pierre Souchay b112bdd52d Fixed compilation warning about wrong type
6 years ago
Pierre Souchay abde81a3e7 Added async-cache with similar behaviour as extend-cache but asynchronously
6 years ago
Mitchell Hashimoto 6ef28dece0
agent/config: parse upstreams with multiple service definitions
7 years ago
mkeeler 6813a99081 Merge remote-tracking branch 'connect/f-connect'
7 years ago
Kyle Havlovitz bc997688e3 connect/ca: update Consul provider to use new cross-sign CSR method
7 years ago
Kyle Havlovitz 6a2fc00997 connect/ca: add URI SAN support to the Vault provider
7 years ago
Kyle Havlovitz 1a8ac686b2 connect/ca: add the Vault CA provider
7 years ago
Paul Banks 597e55e8e2 Misc test fixes
7 years ago
Paul Banks c6ef6a61c9 Refactor to use embedded struct.
7 years ago
Paul Banks 9f559da913 Revert telemetry config changes ready for cleaner approach
7 years ago
Paul Banks d83f2e8e21 Expose telemetry config from RuntimeConfig to proxy config endpoint
7 years ago
Paul Banks 8aeb7bd206 Disable TestAgent proxy execution properly
7 years ago
Mitchell Hashimoto f7fc026e18 agent/config: AllowManagedAPIRegistration
7 years ago
Mitchell Hashimoto 4897ca6545 agent/config: add AllowManagedRoot
7 years ago
Kyle Havlovitz edbeeeb23c agent: update accepted CA config fields and defaults
7 years ago
Paul Banks 0824d1df5f Misc comment cleanups
7 years ago
Mitchell Hashimoto 927b45bf91 agent/config: move ports to `ports` structure, update docs
7 years ago
Mitchell Hashimoto 1830c6b308 agent: switch ConnectNative to an embedded struct
7 years ago
Paul Banks cdc7cfaa36 Abandon daemonize for simpler solution (preserving history):
7 years ago
Paul Banks 8cf4b3a6eb Sanity check that we are never trying to self-exec a test binary. Add daemonize bypass for TestAgent so that we don't have to jump through ridiculous self-execution hooks for every package that might possibly invoke a managed proxy
7 years ago
Matt Keeler 7f7c703118 Update the runtime tests
7 years ago
Matt Keeler 8216816e3f Make filtering out TXT RRs only apply when they would end up in Additional section
7 years ago
Mitchell Hashimoto 37dde6d64a
agent/config: add managed proxy upstreams config to skip
7 years ago
Mitchell Hashimoto 965a902474
agent/structs: validate service definitions, port required for proxy
7 years ago
Mitchell Hashimoto 9a62bce03b
agent/config: default connect enabled in dev mode
7 years ago
Mitchell Hashimoto aaa2431350
agent: change connect command paths to be slices, not strings
7 years ago
Paul Banks e0e12e165b
TLS watching integrated into Service with some basic tests.
7 years ago
Kyle Havlovitz b081c34255
Fix config tests
7 years ago
Kyle Havlovitz daa8dd1779
Add CA config to connect section of agent config
7 years ago
Paul Banks 3e3f0e1f31
HTTP agent registration allows proxy to be defined.
7 years ago
Paul Banks e6071051cf
Added connect proxy config and local agent state setup on boot.
7 years ago
Matt Keeler 6cc0422408 Add configuration entry to control including TXT records for node meta in DNS responses
7 years ago
Preetha Appan 3ff5fd6ec5
More docs and removed SnapShotInterval from raft timing struct stanza
7 years ago