Commit Graph

12526 Commits

Author SHA1 Message Date
Daniel Nephin 5e7b9bffdb grpc: restore integration tests for grpc client conn pool
Add a fake rpc Listener
2020-09-24 12:53:14 -04:00
Daniel Nephin e160475fba router: remove grpcServerTracker from managers
It only needs to be refereced from the Router, because there is only 1 instance, and the
Router can call AddServer/RemoveServer like it does on the Manager.
2020-09-24 12:53:14 -04:00
Daniel Nephin 4b041a018d grpc: redeuce dependencies, unexport, and add godoc
Rename GRPCClient to ClientConnPool. This type appears to be more of a
conn pool than a client. The clients receive the connections from this
pool.

Reduce some dependencies by adjusting the interface baoundaries.

Remove the need to create a second slice of Servers, just to pick one and throw the rest away.

Unexport serverResolver, it is not used outside the package.

Use a RWMutex for ServerResolverBuilder, some locking is read-only.

Add more godoc.
2020-09-24 12:53:10 -04:00
Daniel Nephin 4b24470887 grpc: move client conn pool to grpc package 2020-09-24 12:48:12 -04:00
Daniel Nephin fad15171ec grpc: client conn pool and resolver
Extracted from 936522a13c07e8b732b6fde61bba23d05f7b9a70

Co-authored-by: Paul Banks <banks@banksco.de>
2020-09-24 12:46:22 -04:00
Daniel Nephin e0119a6e92
Merge pull request #8680 from hashicorp/dnephin/replace-consul-opts-with-base-deps
agent: Repalce ConsulOptions with a new struct from agent.BaseDeps
2020-09-24 12:45:54 -04:00
John Cowen 4a76042989
ui: Correct readonly L7 Intentions API calls (#8725)
* Disable ability to select destination if not creating

* Add a LegacyID for intentions that don't have them

* Use `/exact/` endpoint for reading single intentions

* Fix up test for new API interaction

* Upgrade consul-api-double

* Comment out tests using destination for the moment

Also, removed any intention related things from the old page-navigation
tests
2020-09-24 16:07:13 +01:00
Paul Banks 0594667c3a
Fix bad int -> string conversions caught by go vet changes in 1.15 (#8739) 2020-09-24 11:14:07 +01:00
danielehc c140c810f2
Add alias-node option info (#8706) 2020-09-23 18:11:09 +02:00
Alvin Huang 93645e7a2d
fix command in cherry-picker script (#8738) 2020-09-23 09:59:17 -04:00
John Cowen f6fafe0ed1
ui: Go back to expecting falsey values during config env tests (#8710) 2020-09-23 09:19:04 +01:00
Prabodh 4432a39462
Update index.mdx (#8727)
Fixed a gramatical mistake.
2020-09-22 17:57:46 -04:00
Michael Ethridge 2f8fa3a444
Adding Vault ACL examples for Connect CA (#8536) 2020-09-22 16:02:06 -04:00
Alexander Mykolaichuk e4f9c19772
added permission denied error message (#8044) 2020-09-22 20:36:07 +02:00
Hans Hasselberg d48d2bf550
use service datacenter for dns name (#8704)
* Use args.Datacenter instead of configured datacenter
2020-09-22 20:34:09 +02:00
Luke Kysow cacc7a1d68
Reword docs to make k8s arch clear (#8723)
* Reword docs to make k8s arch clear

Co-authored-by: Iryna Shustava <ishustava@users.noreply.github.com>
2020-09-22 10:31:29 -07:00
John Cowen d8fb480ca1
ui: Various CSS amends (#8708)
* ui: Various CSS amends

1. Split out %icon-definition from %composite-row
2. Add hover effect to node listing
3. Fix up proxy level list components
4. Rename our various pills to use a 100-900 scale
5. Reogranize other icon related things (consul-kind and
consul-external-source)

* Fix up upstream test
2020-09-22 18:20:44 +01:00
Nicole Forrester d97fb3f35c
Add Using in Production Question (#8718)
* website: add using in prod question

* adjust padding
2020-09-21 20:08:44 -04:00
Alvin Huang 6b05ecf488
cherrypick docs to latest release branch (#8719) 2020-09-21 17:31:21 -04:00
Daniel Kimsey fbf01fca67
Clarify consul maint enable/disable scope (#8615)
Try to make it more clear to an operator that toggling off a node-level
maintenance is independent of toggling service level maintenance.
2020-09-21 12:32:10 -04:00
Lowe Schmidt c4c85ee106
docs: Fix typo in tutorial URL (#8716) 2020-09-21 07:08:00 -07:00
Daniel Nephin 1de9712a7a
Merge pull request #8619 from hashicorp/dnephin/http-server-rename
http: rename HTTPServer to HTTPHandlers
2020-09-18 18:36:35 -04:00
Daniel Nephin b3ec7df80f api: rename HTTPServer to HTTPHandlers
Resolves a TODO about naming. This type is a set of handlers for an http.Server, it is not
itself a Server. It provides http.Handler functions.
2020-09-18 17:38:23 -04:00
Blake Covarrubias 684675e6b2
docs: Add go-sockaddr examples for bind_addr (#8677)
Add examples of using a go-sockaddr template with `bind_addr` within
HCL or JSON configuration.

Resolves #8633
2020-09-18 08:15:30 -07:00
Blake Covarrubias 305f985c70
docs: Add missing options for consul connect envoy (#8670)
Document missing CLI options for the `consul connect envoy` command.

Resolves #8041
2020-09-18 08:11:48 -07:00
John Cowen 65f2cd891b
ui: Read-only CRD/Centralized Config Intentions (#8659) 2020-09-18 11:14:06 +01:00
Hans Hasselberg c6fa758d6f
fix TestLeader_SecondaryCA_IntermediateRenew (#8702)
* fix lessThanHalfTime
* get lock for CAProvider()
* make a var to relate both vars
* rename to getCAProviderWithLock
* move CertificateTimeDriftBuffer to agent/connect/ca
2020-09-18 10:13:29 +02:00
Preetha 8e974bdf3c
Merge pull request #8638 from eckdanny/docs/clarify-kv-keys-url-safe
docs: clarify KV url-safe key names
2020-09-17 15:51:15 -05:00
Mike Wickett faea397d5d
Merge pull request #8701 from hashicorp/mw.adjust-alert-banner-language
website: change sku to tier
2020-09-17 13:01:14 -04:00
Mike Wickett 765c1128aa website: change sku to tier 2020-09-17 12:56:31 -04:00
Mike Wickett 891593bd05
Merge pull request #8700 from hashicorp/mw.add-hcs-azure-alert-bar
website: update alert bar for HCS prod sku
2020-09-17 12:40:40 -04:00
R.B. Boyer f8e77aa8c9 fix typo in 1.8.4 changelog line 2020-09-17 11:30:52 -05:00
Mike Wickett bee9a7225f website: update alert bar for HCS prod sku 2020-09-17 12:19:26 -04:00
Daniel Nephin 2d3540d6b5
Merge pull request #8620 from hashicorp/dnephin/better-impl-of-TestAgent.HTTPAddr
http: fix tests incorrectly using HTTPAddr to get the address of the https server
2020-09-17 11:48:57 -04:00
Mike Morris fe984b3ee3
test: update tags for database service registrations and queries (#8693) 2020-09-16 14:05:01 -04:00
Kenia 667ddad7c3
ui: Add services count to node listings (#8690) 2020-09-16 11:39:57 -04:00
Sabeen Syed 86e9b34e33
Merge pull request #8668 from hashicorp/BeenzSyed-consulesm
Add Consul ESM to Consul Tools page
2020-09-16 10:26:52 -05:00
Kyle Havlovitz 8f83f7ac13
Merge pull request #8560 from hashicorp/vault-ca-renew-token
Automatically renew the token used by the Vault CA provider
2020-09-16 07:30:30 -07:00
Sabeen Syed 238353406a Add Consul ESM to Consul Tools page 2020-09-16 09:18:15 -04:00
Blake Covarrubias 6bc5f24ed9
Add path-based routing example to Ingress docs (#8672)
Add configuration example for HTTP path-based routing with virtual
services to Ingress gateway configuration entry documentation.

Resolves #8018
2020-09-15 15:37:47 -07:00
Daniel Nephin 9f83eb3dc9
Merge pull request #8685 from pierresouchay/do_not_flood_logs_with_Non-server_in_server-only_area
[BUGFIX] Avoid GetDatacenter* methods to flood Consul servers logs
2020-09-15 17:57:05 -04:00
Daniel Nephin 7b81104357
Update .changelog/8685.txt 2020-09-15 17:56:06 -04:00
Kyle Havlovitz c8fd61abc7 Merge branch 'master' into vault-ca-renew-token 2020-09-15 14:39:04 -07:00
Daniel Nephin c621b4a420 agent/consul: pass dependencies directly from agent
In an upcoming change we will need to pass a grpc.ClientConnPool from
BaseDeps into Server. While looking at that change I noticed all of the
existing consulOption fields are already on BaseDeps.

Instead of duplicating the fields, we can create a struct used by
agent/consul, and use that struct in BaseDeps. This allows us to pass
along dependencies without translating them into different
representations.

I also looked at moving all of BaseDeps in agent/consul, however that
created some circular imports. Resolving those cycles wouldn't be too
bad (it was only an error in agent/consul being imported from
cache-types), however this change seems a little better by starting to
introduce some structure to BaseDeps.

This change is also a small step in reducing the scope of Agent.

Also remove some constants that were only used by tests, and move the
relevant comment to where the live configuration is set.

Removed some validation from NewServer and NewClient, as these are not
really runtime errors. They would be code errors, which will cause a
panic anyway, so no reason to handle them specially here.
2020-09-15 17:29:32 -04:00
Daniel Nephin 0536b2047e agent/consul: make router required 2020-09-15 17:26:26 -04:00
Daniel Nephin 49086dd5ae
Merge pull request #8679 from hashicorp/streaming/fix-TestHandler_EmitsStats
streaming: Fix TestHandler_EmitsStats
2020-09-15 17:04:55 -04:00
Kyle Havlovitz 316600a685 Update vault CA for latest api client 2020-09-15 13:33:55 -07:00
Paul Banks 0062106c46
Update UI Config passing to not use an inline script (#8645)
* Update UI Config passing to not use an inline script

* Update agent/http.go

* Fix incorrect placeholder name
2020-09-15 20:57:37 +01:00
Kyle Havlovitz c3bd917650 vendor: Update vault api package 2020-09-15 12:45:29 -07:00
Hans Hasselberg 296340e13f
Update API docs for GET /operator/keyring (#8691)
The response includes a new field: PrimaryKeys that lists the installed
primary keys.
2020-09-15 21:35:02 +02:00