Mike Morris
fe984b3ee3
test: update tags for database service registrations and queries ( #8693 )
2020-09-16 14:05:01 -04: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
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
Kyle Havlovitz
c8fd61abc7
Merge branch 'master' into vault-ca-renew-token
2020-09-15 14:39:04 -07: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
63d3a5fc1f
Clean up CA shutdown logic and error
2020-09-15 12:28:58 -07:00
Kyle Havlovitz
6f1dd25139
Merge pull request #8646 from hashicorp/common-intermediate-ttl
...
Move IntermediateCertTTL to common CA config
2020-09-15 12:03:29 -07:00
Pierre Souchay
617e0d2364
[BUGFIX] Avoid GetDatacenter* methods to flood Consul servers logs
...
When calling `GetDatacentersByDistance()` or `GetDatacentersMap()`, an
incorrect condition was used to diplay log message, thus flooding
Consul's logs.
Example of message:
```
[WARN] agent.router: Non-server in server-only area: non_server=myClientNode area=lan
```
This message is only valid for WAN areas, filter to avoid creating
hundreds of logs/s on our clusters, each time someone is calling this
method.
Our logs were flooded by such messages when migrating our Consul servers
from 1.7.7 to 1.8.4.
This will issue fix #8663
2020-09-15 11:54:59 +02:00
Daniel Nephin
1e40f00567
agent/grpc: make TestHandler_EmitsStats predictable
...
Occasionally this test would flake. The flakes were fixed by:
1. Stopping the service and retrying to check on metrics. This way we
also include the active_streams going to 0 in the metric calls.
2. Using a reference to the global Metrics. This way when other tests
have background goroutines that are still shutting down, they won't
emit metrics to the metric instance with the fake Sink. The stats
test can patch the local reference to the global, so the existing
statHandlers will continue to emit to the global, but the stats
test will send all metrics to the replacement.
2020-09-14 19:05:22 -04:00
Daniel Nephin
c827e7f1e9
grpc: add Datacenter field to testing service response
2020-09-14 19:02:09 -04:00
Daniel Nephin
75515f3431
Merge pull request #8587 from hashicorp/streaming/add-grpc-server
...
streaming: add gRPC server for handling connections
2020-09-14 15:24:54 -04:00
freddygv
33af8dab9a
Resolve conflicts against master
2020-09-11 18:41:58 -06:00
freddygv
60cb306524
Add session flag to cookie config
2020-09-11 18:34:03 -06:00
freddygv
ae8c609f10
PR comments
2020-09-11 10:49:26 -06:00
Kyle Havlovitz
1595add842
Clean up Vault renew tests and shutdown
2020-09-11 08:41:05 -07:00
freddygv
5871b667a5
Revert EnvoyConfig nesting
2020-09-11 09:21:43 -06:00
Kyle Havlovitz
dc393336d1
Use mapstructure for decoding vault data
2020-09-10 06:31:04 -07:00
Kyle Havlovitz
7588e22739
Add a stop function to make sure the renewer is shut down on leader change
2020-09-10 06:12:48 -07:00
Kyle Havlovitz
c52dfeb633
Move IntermediateCertTTL to common CA config
2020-09-10 00:23:22 -07:00
Kyle Havlovitz
1c57b72a9f
Add a test for token renewal
2020-09-09 16:36:37 -07:00
Daniel Nephin
1a930fcf75
grpc: Add a simple test service for testing the gRPC server
2020-09-08 12:10:43 -04:00
Daniel Nephin
863a9df951
server: add gRPC server for streaming events
...
Includes a stats handler and stream interceptor for grpc metrics.
Co-authored-by: Paul Banks <banks@banksco.de>
2020-09-08 12:10:41 -04:00
freddygv
1ee039ed95
Set tgw filter router config name to cluster name
2020-09-04 12:45:05 -06:00
Hans Hasselberg
51f079dcdd
secondaryIntermediateCertRenewalWatch abort on success ( #8588 )
...
secondaryIntermediateCertRenewalWatch was using `retryLoopBackoff` to
renew the intermediate certificate. Once it entered the inner loop and
started `retryLoopBackoff` it would never leave that.
`retryLoopBackoffAbortOnSuccess` will return when renewing is
successful, like it was intended originally.
2020-09-04 11:47:16 +02:00
freddygv
3e4bc36941
Add server receiver to routes and log tgw err
2020-09-03 16:19:58 -06:00
Daniel Nephin
670b7cbd99
Merge pull request #8357 from hashicorp/streaming/add-service-health-events
...
streaming: add ServiceHealth events
2020-09-03 17:53:56 -04:00
Daniel Nephin
ec5d20b0de
Merge pull request #8554 from hashicorp/dnephin/agent-setup-persisted-tokens
...
agent: move token persistence from agent into token.Store
2020-09-03 17:29:21 -04:00
Daniel Nephin
c17a5b0628
state: handle terminating gateways in service health events
2020-09-03 16:58:05 -04:00
Daniel Nephin
b241debee7
state: improve comments in catalog_events.go
...
Co-authored-by: Paul Banks <banks@banksco.de>
2020-09-03 16:58:05 -04:00
Daniel Nephin
870823e8ed
state: use changeType in serviceChanges
...
To be a little more explicit, instead of nil implying an indirect change
2020-09-03 16:58:05 -04:00
Daniel Nephin
68682e7e83
don't over allocate slice
2020-09-03 16:58:04 -04:00
Daniel Nephin
5f52220f53
state: fix a bug in building service health events
...
The nodeCheck slice was being used as the first arg in append, which in some cases will modify the array backing the slice. This would lead to service checks for other services in the wrong event.
Also refactor some things to reduce the arguments to functions.
2020-09-03 16:58:04 -04:00
Daniel Nephin
c61313b78a
state: Remove unused args and return values
...
Also rename some functions to identify them as constructors for events
2020-09-03 16:58:04 -04:00
Daniel Nephin
668b98bcce
state: use an enum for tracking node changes
2020-09-03 16:58:04 -04:00
Daniel Nephin
7c3c627028
state: serviceHealthSnapshot
...
refactored to remove unused return value and remove duplication
2020-09-03 16:58:04 -04:00
Daniel Nephin
fdfe176deb
state: Add Change processor and snapshotter for service health
...
Co-authored-by: Paul Banks <banks@banksco.de>
2020-09-03 16:58:04 -04:00
Daniel Nephin
6a1a43721d
state: fix bug in changeTrackerDB.publish
...
Creating a new readTxn does not work because it will not see the newly created objects that are about to be committed. Instead use the active write Txn.
2020-09-03 16:58:01 -04:00
Daniel Nephin
81cc3daf69
stream: have SnapshotFunc accept a non-pointer SubscribeRequest
...
The value is not expected to be modified. Passing a value makes that explicit.
2020-09-03 16:54:02 -04:00
freddygv
56fdae9ace
Update resolver defaulting
2020-09-03 13:08:44 -06:00
freddygv
b149185794
Update golden files after default route fix for tgw
2020-09-03 12:35:11 -06:00
Daniel Nephin
330b73725f
agent: add apiServers type for managing HTTP servers
...
Remove Server field from HTTPServer. The field is no longer used.
2020-09-03 13:40:12 -04:00
freddygv
23147c1d5b
Fix http assertion in route creation
2020-09-03 10:21:20 -06:00
freddygv
0c50b8e769
Add explicit protocol overrides in tgw xds test cases
2020-09-03 08:57:48 -06:00
freddygv
02d6acd8fc
Ensure resolver node with LB isn't considered default
2020-09-03 08:55:57 -06:00
freddygv
c4bce2154b
Move valid policies to pkg level
2020-09-02 15:49:03 -06:00
freddygv
daad3b9210
Remove LB infix and move injection to xds
2020-09-02 15:13:50 -06:00
R.B. Boyer
b0bde51e70
connect: all config entries pick up a meta field ( #8596 )
...
Fixes #8595
2020-09-02 14:10:25 -05:00
Chris Piraino
df1381f77f
Merge pull request #8603 from hashicorp/feature/usage-metrics
...
Track node and service counts in the state store and emit them periodically as metrics
2020-09-02 13:23:39 -05:00