Commit Graph

2296 Commits (30112288c893a43e545ff7d446f05be15c037093)

Author SHA1 Message Date
Dhia Ayachi fe8b3dfccf
add partition flag to catalog commands (#10949)
3 years ago
R.B. Boyer 097e1645e3
agent: ensure that most agent behavior correctly respects partition configuration (#10880)
3 years ago
Daniel Nephin 797ee061e4 debug: use human readable dates for filenames
3 years ago
Daniel Nephin 2f8d0e12cf debug: small cleanup
3 years ago
Daniel Nephin 4359e38114 debug: restore cancel on SigInt
3 years ago
Daniel Nephin 31bcd80528 debug: improve a couple of the test cases
3 years ago
Daniel Nephin bbf6a94c9a debug: rename cluster target to members
3 years ago
Daniel Nephin 251026e374 debug: remove unused
3 years ago
Daniel Nephin 70c2cdc8f1 cli: remove a test case for updating a legacy token
3 years ago
Mark Anderson d3cebbd32c
Fixup to support unix domain socket via command line (#10758)
3 years ago
Blake Covarrubias 1ee8655bfc
cli: Fix broken KV import on Windows (#10820)
3 years ago
Blake Covarrubias e41d6ee60f
cli: Use admin bind address in self_admin cluster (#10757)
3 years ago
Blake Covarrubias 6a68bfc5e1
cli: Test API access using /status/leader in consul watch (#10795)
3 years ago
Daniel Nephin 9dd6d26d05 acl: remove rule == nil checks
3 years ago
Evan Culver 24db06f503 Fix maint test
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
Dhia Ayachi de124d0aa1
add http flag for admin partition (#10683)
3 years ago
R.B. Boyer b0657973f2
add partition cli flag to all cli commands that have namespace flag (#10668)
3 years ago
Blake Covarrubias 6c462d399b
cli: Document pass-through option for `consul connect envoy` (#10666)
3 years ago
Evan Culver 0527dcff57
acls: Show `AuthMethodNamespace` when reading/listing ACL token meta (#10598)
3 years ago
Daniel Nephin 74fb650b6b
Merge pull request #10588 from hashicorp/dnephin/config-fix-ports-grpc
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
Iryna Shustava 95305881ce
cli/sdk: Allow applying redirect-traffic rules in a provided Linux namespace (#10564)
3 years ago
Daniel Nephin 895bf9adec config: update GRPCPort and addr in runtime config
3 years ago
Evan Culver 13bd86527b
Add support for returning ACL secret IDs for accessors with acl:write (#10546)
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
Daniel Nephin 2c4f22a9f0
Merge pull request #10552 from hashicorp/dnephin/ca-remove-rotation-period
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
Daniel Nephin 690dc41c55
Merge pull request #10515 from hashicorp/dnephin/fix-arm32-atomic-aligment
3 years ago
Daniel Nephin 4d741531b4 Update references to the main branch
3 years ago
Daniel Nephin f34d3543b1 testing: fix a test for 32-bit
3 years ago
Kyle Nusbaum 07cec75be2 command/agent: change io.Discard to ioutil.Discard
3 years ago
Freddy ffb13f35f1
Rename CatalogDestinationsOnly (#10397)
4 years ago
Freddy 429f9d8bb8
Add flag for transparent proxies to dial individual instances (#10329)
4 years ago
Dhia Ayachi 005ad9e46d
generate a single debug file for a long duration capture (#10279)
4 years ago
Dhia Ayachi dda3e68791
fix monitor to only start the monitor in json format when requested (#10358)
4 years ago
Daniel Nephin cec8bc88a9 cmd: remove unnecessary GatedUi
4 years ago
Daniel Nephin 2261a469e3 cmd: move agent running message to logs
4 years ago
Daniel Nephin b4b85bd83a agent: fix agent logging
4 years ago
Daniel Nephin 2fc988d51d cmd: introduce a shim to expose Stdout/Stderr writers
4 years ago
Daniel Nephin e573641995 cmd: remove unnecessary args to agent.New
4 years ago
Daniel Nephin eb4f8b17e9
Merge pull request #10324 from hashicorp/dnephin/fix-envoy-bootstrap-exec
4 years ago
Dhia Ayachi 15dddc9edb
make tests use a dummy node_name to avoid environment related failures (#10262)
4 years ago
Daniel Nephin 2054402a53 envoy: improve comments
4 years ago
Daniel Nephin c9bc5f92b7 envoy: fix bootstrap deadlock caused by a full named pipe
4 years ago
Daniel Nephin e1b1ab7ef6 envoy: start timeout func after validation
4 years ago
Dhia Ayachi 4c7f5f31c7
debug: remove the CLI check for debug_enabled (#10273)
4 years ago
Daniel Nephin 5a7059f45c redirecttraffic: fix a flaky test
4 years ago
Iryna Shustava d7d44f6ae7
Save exposed ports in agent's store and expose them via API (#10173)
4 years ago
R.B. Boyer 3b50a55533
connect: update supported envoy versions to 1.18.3, 1.17.3, 1.16.4, and 1.15.5 (#10231)
4 years ago
Daniel Nephin 347f3d2128
Merge pull request #10155 from hashicorp/dnephin/config-entry-remove-fields
4 years ago
Mark Anderson 06f0f79218 Continue working through proxy and agent
4 years ago
Luke Kysow 8d6cbe7281
Give descriptive error if auth method not found (#10163)
4 years ago
Daniel Nephin a07a58a873 config-entry: use custom MarshalJSON for mesh type
4 years ago
Daniel Nephin 62efaaab21 config-entry: remove Kind and Name field from Mesh config entry
4 years ago
R.B. Boyer abc1dc0fe9
connect: update supported envoy versions to 1.18.2, 1.17.2, 1.16.3, and 1.15.4 (#10101)
4 years ago
R.B. Boyer 71d45a3460
Support Incremental xDS mode (#9855)
4 years ago
Iryna Shustava 8dffb89131
Implement traffic redirection exclusion based on proxy config and user-provided values (#10134)
4 years ago
Freddy 078c40425f
Rename "cluster" config entry to "mesh" (#10127)
4 years ago
Paul Banks c501468d78
Fix panic bug in snapshot inspect (#10091)
4 years ago
Paul Banks d717d2cdc4
CLI: Allow snapshot inspect to work on internal raft snapshots directly. (#10089)
4 years ago
R.B. Boyer 4db8b78854
connect: update centralized upstreams representation in service-defaults (#10015)
4 years ago
freddygv e1808af729 Fixup tests
4 years ago
freddygv 7cb3f32672 Convert new tproxy structs in api module into ptrs
4 years ago
freddygv 7bd51ff536 Replace TransparentProxy bool with ProxyMode
4 years ago
Iryna Shustava 5755c97bc7
cli: Add new `consul connect redirect-traffic` command for applying traffic redirection rules when Transparent Proxy is enabled. (#9910)
4 years ago
Freddy a02245b75a
Merge pull request #9976 from hashicorp/centralized-upstream-fixups
4 years ago
freddygv ab752c1c86 Avoid sending zero-value upstream defaults from api
4 years ago
R.B. Boyer 5bcfe930c6
command: when generating envoy bootstrap configs to stdout do not mix informational logs into the json (#9980)
4 years ago
R.B. Boyer 499fee73b3
connect: add toggle to globally disable wildcard outbound network access when transparent proxy is enabled (#9973)
4 years ago
Hans Hasselberg 53e9c134af
introduce certopts (#9606)
4 years ago
woz5999 39f448589d support env var expansion in envoy statsd urls
4 years ago
Freddy 8207b832df
Add TransparentProxy option to proxy definitions
4 years ago
Freddy c664938bae
Add per-upstream configuration to service-defaults
4 years ago
freddygv 8b46d8dcbb Restore old Envoy prefix on escape hatches
4 years ago
Kyle Havlovitz 1e87c7183a
Merge pull request #9672 from hashicorp/ca-force-skip-xc
4 years ago
freddygv 6fd30d0384 Add TransparentProxy opt to proxy definition
4 years ago
freddygv e3dc2a49df Turn Limits and PassiveHealthChecks into pointers
4 years ago
Kyle Havlovitz d62565f368
Merge pull request #9792 from dzeban/kv-import-prefix
4 years ago
freddygv 87cde19b4c Create new types for service-defaults upstream cfg
4 years ago
Nitya Dhanushkodi 15e8b13891
Add flags to consul connect envoy for metrics merging. (#9768)
4 years ago
R.B. Boyer 398b766532
xds: default to speaking xDS v3, but allow for v2 to be spoken upon request (#9658)
4 years ago
R.B. Boyer 3b6ffc447b
xds: remove deprecated usages of xDS (#9602)
4 years ago
Alex Dzyoba 098fd1797b command/kv: Add prefix option to kv import command
4 years ago
R.B. Boyer 6eeccc93ce
connect: update supported envoy point releases to 1.16.2, 1.15.3, 1.14.6, 1.13.7 (#9737)
4 years ago
Kyle Havlovitz 7dac583863 connect/ca: Allow ForceWithoutCrossSigning for all providers
4 years ago
Daniel Nephin 1dcafa51a4 config: make config.TestLoad_FullConfig use config.Load
4 years ago
Daniel Nephin 32d36d0dd4 config: replace calls to config.NewBuilder with config.Load
4 years ago
Daniel Nephin 97a577502d config: improve the interface of Load
4 years ago
Hans Hasselberg 444cdeb8fb
Add flags to support CA generation for Connect (#9585)
4 years ago
Daniel Nephin 3d39359bcb agent: move deprecated AddServiceFromSource to a test file
4 years ago
Daniel Nephin 6757231b82 agent: rename AddService->AddServiceFromSource
4 years ago
R.B. Boyer b5f9a293c9
chore: regenerate envoy golden files (#9634)
4 years ago
Matt Keeler 9215fc4e9d
Fix flaky CLI Intention Listing Test
4 years ago
Michael Hofer 3c3b67288d
cli: Add consul intention list command (based on PR #6825) (#9468)
4 years ago
Daniel Nephin b9e60c0775 testing: skip slow tests with -short
4 years ago
R.B. Boyer 7c7a3e5165
command: when generating envoy bootstrap configs use the datacenter returned from the agent services endpoint (#9229)
4 years ago
Freddy fe728855ed
Add DC and NS support for Envoy metrics (#9207)
4 years ago
Mike Morris 7af643ac37
ci: update to Go 1.15.4 and alpine:3.12 (#9036)
4 years ago
Matt Keeler 7ef9b04f90
Add a CLI command for retrieving the autopilot configuration. (#9142)
4 years ago
Joel Watson 81fb937e4f
Merge pull request #9098 from hashicorp/watsonian/kv-size-breakdown
4 years ago
Joel Watson 182333b645 Fix some minor wording issues
4 years ago
Joel Watson 94689b6ecd Back out implicit -kvdetails functionality
4 years ago
Joel Watson 0d48559416 Length check is required here
4 years ago
Joel Watson 48a358df1b Remove trailing tabs from output
4 years ago
Joel Watson 491f2f0a57 Add more func comments
4 years ago
Joel Watson 99ec1febcc Move kvDetails default logic
4 years ago
Joel Watson ea804e57b4 Check for nil rather than length
4 years ago
Joel Watson 7aebd179de Update tests for new flag names
4 years ago
Joel Watson 40a8681816 Allow omission of -kvdetails if another -kv* flag is set
4 years ago
Joel Watson 1ef259b093 Rename params to better reflect their purpose
4 years ago
Joel Watson 5ad0db73c8 Make docs for params clearer
4 years ago
Joel Watson fbe8503258 Break KV portion of enchance into separate func
4 years ago
Joel Watson 5dd703a62a Move KV stat gen to separate func
4 years ago
Matt Keeler c048e86bb2
Switch to using the external autopilot module
4 years ago
Mike Morris 6396042ba7
connect: switch the default gateway port from 443 to 8443 (#9116)
4 years ago
R.B. Boyer 8baf158ea8
Revert "Add namespace support for metrics (OSS) (#9117)" (#9124)
4 years ago
Freddy 06b3b017d3
Add namespace support for metrics (OSS) (#9117)
4 years ago
Joel Watson aabb537aed Pull sorting into separate function
4 years ago
Joel Watson 3ee20d500a Refactor to reduce how many vars are being passed around
4 years ago
Joel Watson 1a50aa023a Fallback to alphabetic sorting if size is equal
4 years ago
Joel Watson be2a212d75 Add tests for new snapshot inspect flags
4 years ago
Joel Watson 5f5b49955c Update snapshot inspect formatter test
4 years ago
Joel Watson eafc593d0f Make key breakdown total size accurate
4 years ago
Joel Watson 4bf70dd857 Cleanup formatter
4 years ago
Joel Watson 208d6ebd95 Get JSON formatting working
4 years ago
Joel Watson e7a88d4a30 This ended up not being used.
4 years ago
Joel Watson 262fb3a0c3 Add snapshot inspect filter param
4 years ago
Joel Watson 10f325dc81 Initial stab at snapshot inspect key breakdown
4 years ago
s-christoff 79ce24e9fc
cli: Add JSON and Pretty Print formatting for `consul snapshot inspect` (#9006)
4 years ago
R.B. Boyer a2c50d3303
connect: add support for envoy 1.16.0, drop support for 1.12.x, and bump point releases as well (#8944)
4 years ago
s-christoff 9bb348c6c7
Enhance the output of consul snapshot inspect (#8787)
4 years ago
Blake Covarrubias 4c83ad3e02
doc: Update acl-method command example (#8845)
4 years ago
R.B. Boyer 9fbcb2e68d
command: remove conditional envoy bootstrap generation for versions <=1.10.0 since those are not supported (#8855)
4 years ago
Ryan Ooi 852896b068 add tailing backtick
4 years ago
Ryan Ooi c80b048111 Update acl-method command example
4 years ago
R.B. Boyer 1b413b0444
connect: support defining intentions using layer 7 criteria (#8839)
4 years ago
R.B. Boyer a2a8e9c783
connect: intentions are now managed as a new config entry kind "service-intentions" (#8834)
4 years ago
Hans Hasselberg ad4e189354
add -list-primary to `consul keyring` command (#8692)
4 years ago
Juliano Martinez 5ce309a2f7 remove nodeName call when using -service
4 years ago
freddygv 7b9d1b41d5 Resolve conflicts against master
4 years ago
freddygv 768dbaa68d Add session flag to cookie config
4 years ago
freddygv eab90ea9fa Revert EnvoyConfig nesting
4 years ago
Tim Arenz a1fe711390
Add support for -ca-path option in the connect envoy command (#8606)
4 years ago
Daniel Nephin 6ca45e1a61 agent: add apiServers type for managing HTTP servers
4 years ago
freddygv cf018cb2e0 Fixup stray LB infix refs
4 years ago
freddygv f81fe6a1a1 Remove LB infix and move injection to xds
4 years ago
R.B. Boyer 119e945c3e
connect: all config entries pick up a meta field (#8596)
4 years ago
freddygv 63f79e5f9b Restructure structs and other PR comments
4 years ago
Daniel Nephin e16375216d config: use logging.Config in RuntimeConfig
4 years ago
Daniel Nephin 33c401a16e logging: Setup accept io.Writer instead of []io.Writer
4 years ago
Daniel Nephin 5d4df54296 agent: extract dependency creation from New
4 years ago
Daniel Nephin 16217fe9b9 testing: use t.Cleanup in testutil.TempFile
4 years ago
Daniel Nephin d68edcecf4 testing: Remove all the defer os.Removeall
4 years ago
R.B. Boyer 397019d970
xds: revert setting set_node_on_first_message_only to true when generating envoy bootstrap config (#8440)
4 years ago
Daniel Nephin 0420d91cdd Remove LogOutput from Agent
4 years ago
R.B. Boyer c599a2f5f4
xds: add support for envoy 1.15.0 and drop support for 1.11.x (#8424)
4 years ago
Marc Billow 6960afdfe3 Simple tls cert create help text typo
4 years ago
Chris Piraino 7c4cc71131
Fix envoy bootstrap logic to not append multiple self_admin clusters (#8371)
4 years ago
Alvin Huang dd9f5928fc
add v to version pretty formatter (#8341)
4 years ago
Kit Patella 0fe7e987f0 command/kv: remove error case in put and edit error message for delete
4 years ago
Kit Patella f530fe558f command: fix cas put when index=0 and better errors in put and delete
4 years ago
Hans Hasselberg 496fb5fc5b
add support for envoy 1.14.4, 1.13.4, 1.12.6 (#8216)
4 years ago
Matt Keeler fb9517bae8
Merge pull request #8268 from hashicorp/feature/improved-version-output
4 years ago
R.B. Boyer 1eef096dfe
xds: version sniff envoy and switch regular expressions from 'regex' to 'safe_regex' on newer envoy versions (#8222)
4 years ago
Matt Keeler 680ac0c1c6
Add Revision to version CLI output and add JSON support
4 years ago
Chris Piraino ea683ebb6c
cli: Output message on success when writing/deleting entries (#7806)
4 years ago
R.B. Boyer 462f0f37ed
connect: various changes to make namespaces for intentions work more like for other subsystems (#8194)
4 years ago
Matt Keeler e2cfa93f02
Don’t leak metrics go routines in tests (#8182)
4 years ago
freddygv c791fbc79c Update namespaces subject-verb agreement
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
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 068b43df90 Enable gofmt simplify
5 years ago
Matt Keeler d3881dd754
ACL Node Identities (#7970)
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
Hans Hasselberg e62a43c6cf
Support envoy 1.14.2, 1.13.2, 1.12.4 (#8057)
5 years ago
Kyle Havlovitz 6fd3b25313 Fix a CLI test failure with namespaces in enterprise
5 years ago
Kyle Havlovitz 0c8966220f
Merge pull request #8040 from hashicorp/ingress/expose-cli
5 years ago
Kyle Havlovitz e3a725c4e0 Always allow updating the exposed service and differentiate by namespace
5 years ago
Kyle Havlovitz edab5588d8 Add -host flag to expose command
5 years ago
Kyle Havlovitz 5958328552 Allow multiple listeners per service via expose command
5 years ago
Daniel Nephin 75cbbe2702 config: add HookWeakDecodeFromSlice
5 years ago
Kyle Havlovitz acae044df4 Document the namespace format for expose CLI command
5 years ago
Kyle Havlovitz b874c8ef0c Add connect expose CLI command
5 years ago
R.B. Boyer 4d083103e2
fix some flaky snapshot tests (#8015)
5 years ago
R.B. Boyer 833211c14c
acl: allow auth methods created in the primary datacenter to optionally create global tokens (#7899)
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
Daniel Nephin 6a2d7d77c0 config: use the new HookTranslateKeys instead of lib.TranslateKeys
5 years ago
Kyle Havlovitz b14696e32a
Standardize support for Tagged and BindAddresses in Ingress Gateways (#7924)
5 years ago
Daniel Nephin c662f0f0de Fix a number of problems found by staticcheck
5 years ago