Commit Graph

2363 Commits (b67a9f1b124c5067d3afd4a1141a843595b37087)

Author SHA1 Message Date
DanStough 817449041d chore(test): Update bats version
3 years ago
Mark Anderson 2fcac5224e
Merge pull request #12878 from hashicorp/ma/x-forwarded-client-cert
3 years ago
Dan Upton a668c36930
acl: gRPC login and logout endpoints (#12935)
3 years ago
Mark Anderson 6430af1c0e Update mesh config tests
3 years ago
R.B. Boyer 1a491886fa
structs: ensure exported-services PeerName field can be addressed as peer_name (#12862)
3 years ago
Evan Culver 000d0621b4
connect: Add Envoy 1.22 to integration tests, remove Envoy 1.18 (#12805)
3 years ago
Kyle Havlovitz 3e88f579fc
Fix namespace default field names in expanded token output
3 years ago
Mark Anderson 98a2e282be Fixup acl.EnterpriseMeta
3 years ago
R.B. Boyer d06183ba7f
syncing changes back from enterprise (#12701)
3 years ago
Kyle Havlovitz 059bd0a92e
Merge pull request #12670 from hashicorp/token-read-expanded
3 years ago
Dhia Ayachi 16b19dd82d
auto-reload configuration when config files change (#12329)
3 years ago
Kyle Havlovitz b21b4346b4 Add expanded token read flag and endpoint option
3 years ago
Paul Glass 706c844423
Add IAM Auth Method (#12583)
3 years ago
R.B. Boyer e79ce8ab03
xds: adding control of the mesh-wide min/max TLS versions and cipher suites from the mesh config entry (#12601)
3 years ago
Dan Upton b36d4e16b6
Support per-listener TLS configuration ⚙️ (#12504)
3 years ago
R.B. Boyer 957146401e
catalog: compare node names case insensitively in more places (#12444)
3 years ago
Daniel Nephin 53ae4b3e2c debug: update CLI docs
3 years ago
Daniel Nephin cc2c005fad debug: limit the size of the trace
3 years ago
FFMMM 78264a8030
Vendor in rpc mono repo for net/rpc fork, go-msgpack, msgpackrpc. (#12311)
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
Mike Morris 1b1a97e8f9
ingress: allow setting TLS min version and cipher suites in ingress gateway config entries (#11576)
3 years ago
Daniel Nephin ff7f3a9737 cli: use file mode 0600 when saving a snapshot
3 years ago
Blake Covarrubias e898cf1d41
cli: Show node identities in acl token list output (#11926)
3 years ago
Daniel Nephin da95a0e449
Merge pull request #11884 from assareh/patch-1
3 years ago
Daniel Nephin 1eb3178468
Merge pull request #11781 from marco-m/private-key-0600-permission
3 years ago
Andy Assareh fab47eb70f usage example given uses outdated arguments
3 years ago
freddygv 6bbf109bdd Update golden files
3 years ago
freddygv 68424b318a Get partition label from upstream metrics
3 years ago
Evan Culver a0c754d44f
connect: update SNI label extraction to support new taxonomy for partitions (#11786)
3 years ago
Chris S. Kim 71bad67a4d
Add partitions to prettyformatters (#11789)
3 years ago
Marco Molteni 8a4b92c176 cli: consul tls: create private keys with mode 0600
3 years ago
Dan Upton 205ce9a69d
Remove references to "master" ACL tokens in tests (#11751)
3 years ago
freddygv 9b44861ce4 Update api module and decoding tests
3 years ago
freddygv ed6076db26 Rename partition-exports to exported-services
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 81afb208ac
Merge pull request #11677 from hashicorp/dnephin/freeport-interface
3 years ago
Dan Upton bf56a2c495
Rename `agent_master` ACL token in the API and CLI (#11669)
3 years ago
Daniel Nephin e8312d6b5a testing: remove unnecessary calls to freeport
3 years ago
Daniel Nephin 5a61893642 testing: use httptest with freeport
3 years ago
Daniel Nephin 56f9238d15 go-sso: remove returnFunc now that freeport handles return
3 years ago
R.B. Boyer 1e02460bd1
re-run gofmt on 1.17 (#11579)
3 years ago
R.B. Boyer eb21649f82
partitions: various refactors to support partitioning the serf LAN pool (#11568)
3 years ago
freddygv 5bc4aa49bd Fix test
3 years ago
freddygv 4c9c1b52ce Support partitions in connect expose cmd
3 years ago
freddygv a6d985040f Fixup shared oss/ent tests
3 years ago
Nitya Dhanushkodi 139c4eb844
command/redirect_traffic: Redirect DNS requests to Consul if -consul-dns-ip is passed in (#11480)
3 years ago
Dhia Ayachi 98735a6d12
KV refactoring, part 2 (#11512)
3 years ago
Daniel Upton d47b7311b8
Support Check-And-Set deletion of config entries (#11419)
3 years ago
R.B. Boyer 61361c2e5d
cli: update consul members output to display partitions and sort the results usefully (#11446)
3 years ago
R.B. Boyer c8cafb7654
agent: for various /v1/agent endpoints parse the partition parameter on the request (#11444)
3 years ago
Freddy b1b6f682e1
Merge pull request #11416 from hashicorp/ap/exports-update
3 years ago
R.B. Boyer ef559dfdd4
agent: refactor the agent delegate interface to be partition friendly (#11429)
3 years ago
freddygv 5c24ed61a8 Rename service-exports to partition-exports
3 years ago
Kyle Havlovitz 04cd2c983e Add new service-exports config entry
3 years ago
Oleg Butuzov f9c290890f refactor: replace (*bytes.Buffer).WriteString with (*bytes.Buffer).Write
3 years ago
Evan Culver be667e280f
connect: Remove envoy_version from bootstrap template (#11215)
3 years ago
Evan Culver c7747212c3
Merge pull request #11115 from hashicorp/eculver/envoy-1.19.1
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
Evan Culver 9b73e7319d
Merge branch 'main' into eculver/envoy-1.19.1
3 years ago
Bisakh 981ef464d6
acl: update GetPolicyByName method implementation (#11055)
3 years ago
Evan Culver 1709309cc7
regenerate more envoy golden files
3 years ago
freddygv e0a7900f52 Fixup api config and Envoy test
3 years ago
freddygv cecf5b18f8 Bring back entmeta args defaulting
3 years ago
freddygv 7ecbac9228 Ensure Envoy can subscribe to non-default partition
3 years ago
Freddy 8d83d27674
connect: update envoy supported versions to latest patch release
3 years ago
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)
3 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