John Cowen
62a9dffcae
ui: CSP Improvements ( #9847 )
...
* Configure ember-auto-import so we can use a stricter CSP
* Create a fake filesystem using JSON to avoid inline scripts in index
We used to have inline scripts in index.html in order to support embers
filepath fingerprinting and our configurable rootURL.
Instead of using inline scripts we use application/json plus a JSON blob
to create a fake filesystem JSON blob/hash/map to hold all of the
rootURL'ed fingerprinted file paths which we can then retrive later in
non-inline scripts.
We move our inlined polyfills script into the init.js external script,
and we move the CodeMirror syntax highlighting configuration inline
script into the main app itself - into the already existing CodeMirror
initializer (this has been moved so we can lookup a service located
document using ember's DI container)
* Set a strict-ish CSP policy during development
2021-03-17 10:46:21 +00:00
Daniel Nephin
c140ae899b
Merge pull request #9886 from hashicorp/sdk/to_testing_TB
...
[SDK] change all cases of *testing.T to testing.TB
2021-03-16 20:28:35 -04:00
Daniel Nephin
3d6644a245
Merge pull request #9475 from cbroglie/tls-server-name
...
Add support for configuring TLS ServerName for health checks
2021-03-16 20:24:44 -04:00
Daniel Nephin
96276fc7b8
Add changelog for 9475
2021-03-16 18:22:25 -04:00
Christopher Broglie
94b02c3954
Add support for configuring TLS ServerName for health checks
...
Some TLS servers require SNI, but the Golang HTTP client doesn't
include it in the ClientHello when connecting to an IP address. This
change adds a new TLSServerName field to health check definitions to
optionally set it. This fixes #9473 .
2021-03-16 18:16:44 -04:00
John Eikenberry
fe938b9849
[SDK] change all cases of *testing.T to testing.TB
...
Using the interface opens up the use of all methods to benchmarks as
well as tests.
2021-03-16 15:05:39 -07:00
Daniel Nephin
23df31f7c0
Merge pull request #8698 from pierreca/fix-iserreof
...
Use errors.Is() in IsErrEOF()
2021-03-16 17:56:15 -04:00
Luke Kysow
bfcd311159
docs: rename SourceAddress to SourceIP ( #9878 )
...
SourceAddress was probably renamed to SourceIP but the docs weren't
updated.
2021-03-15 14:39:33 -07:00
Freddy
b8613a4d06
Merge pull request #9107 from hashicorp/docs-prepared-query-namespace
...
Add namespaces to prepared query API docs
2021-03-15 13:08:52 -06:00
Christoph Puhl
54f771af6d
Add namespaces to prepared query API docs
...
Add missing section on creating prepared query for namespaced services
2021-03-15 10:04:53 +01:00
Daniel Nephin
579015dde1
Merge pull request #9152 from hashicorp/dnephin/streaming-enable-connect
...
use streaming backend for connect service health
2021-03-12 13:05:16 -05:00
Daniel Nephin
2a53b8293a
proxycfg: use rpcclient/health.Client instead of passing around cache name
...
This should allow us to swap out the implementation with something other
than `agent/cache` without making further code changes.
2021-03-12 11:46:04 -05:00
Daniel Nephin
c33570be34
catalog_events: set the right key for connect snapshots
2021-03-12 11:35:43 -05:00
Daniel Nephin
410b1261c2
proxycfg: Use streaming in connect state
2021-03-12 11:35:42 -05:00
Daniel Nephin
e2215d9f0f
rpcclient: use streaming for connect health
2021-03-12 11:35:42 -05:00
Matt Keeler
8d09d610dd
AutopilotServerHealth now handles the 429 status code ( #8599 )
...
AutopilotServerHealthy now handles the 429 status code
Previously we would error out and not parse the response. Now either a 200 or 429 status code are considered expected statuses and will result in the method returning the reply allowing API consumers to not only see if the system is healthy or not but which server is unhealthy.
2021-03-12 09:40:49 -05:00
Mike Wickett
c2f910a246
Merge pull request #9874 from hashicorp/mw.patch-docs-issue
...
docs: fixup syntax issue
2021-03-11 17:45:22 -05:00
Mike Wickett
e450ab5540
fix: syntax issue
2021-03-11 17:05:21 -05:00
Preetha
b3f1cafed3
Small changes to gossip related telemetry docs ( #9846 )
...
Update gossip related telemetry docs to include correct descriptions, and added missing metrics
2021-03-11 14:21:32 -06:00
Mike Wickett
92e35ed005
Merge pull request #9867 from hashicorp/mw.update-alert-banner
...
Update alert banner
2021-03-11 14:54:29 -05:00
Freddy
5e12fcff93
Merge pull request #9869 from DanielMabbett/patch-1
...
Fix typo in requirements.mdx
2021-03-11 12:49:57 -07:00
Kyle Havlovitz
237b41ac8f
Merge pull request #9672 from hashicorp/ca-force-skip-xc
...
connect/ca: Allow ForceWithoutCrossSigning for all providers
2021-03-11 11:49:15 -08:00
Kyle Havlovitz
5f946185d2
Add a changelog note
2021-03-11 11:47:35 -08:00
Freddy
43eeb66439
Merge pull request #9770 from hashicorp/docs/fix-terminating-gateway-config-entry
...
Docs: Update terminating-gateway-config-entry
2021-03-11 12:42:20 -07:00
Kyle Havlovitz
7053fcdd0c
Merge pull request #9792 from dzeban/kv-import-prefix
...
command/kv: Add prefix option to kv import command
2021-03-11 09:47:53 -08:00
Kyle Havlovitz
ae896b7016
Add a changelog entry
2021-03-11 09:46:53 -08:00
Daniel Mabbett
1e896dc0bb
Update requirements.mdx
2021-03-11 10:08:53 +00:00
hashicorp-ci
5dbeeee673
auto-updated agent/uiserver/bindata_assetfs.go from commit fa6687b7f
2021-03-11 09:34:21 +00:00
John Cowen
887d8038b1
ui: Implement ACLs access based on ACLs ( #9835 )
...
Adds restrictions to everything within the ACLs (and nspaces) area based on your ACLs (including readonly views etc.)
2021-03-11 09:29:11 +00:00
Robert Kuska
63ce35a24e
Add units and types to metrics tables ( #9674 )
...
This commits adds units and types to key metrics tables to have
consistent table views of all metrics in telemetry.mdx.
Fixes: https://github.com/hashicorp/consul/issues/9069
2021-03-10 22:36:15 -05:00
Mike Wickett
44613c961a
Update alert banner
2021-03-10 20:58:10 -05:00
Daniel Nephin
4877183bc6
Merge pull request #9797 from hashicorp/dnephin/state-index-node-id
...
state: convert nodes.ID to the new pattern of functional indexers
2021-03-10 17:34:23 -05:00
Daniel Nephin
5c5ba9564d
Merge pull request #9796 from hashicorp/dnephin/state-cleanup-catalog-index-oss
...
state: remove duplicate tableCheck indexes
2021-03-10 12:20:09 -05:00
Daniel Nephin
97d4e872d3
Merge pull request #9851 from panascais-forks/fix-wan-ipv6-key
...
Fix advertise_addr_wan_ipv6 configuration key
2021-03-10 11:56:07 -05:00
Daniel Nephin
4529d0e8ea
Merge pull request #9805 from hashicorp/dnephin/remove-ent-meta-get-namespace
...
structs: remove EnterpriseMeta.GetNamespace
2021-03-09 15:41:36 -05:00
Daniel Nephin
fcffdf6ba7
Merge pull request #9853 from hashicorp/dnephin/fix-ci-nomad-integ
...
ci: update config for nomad main branch rename
2021-03-09 15:28:51 -05:00
Daniel Nephin
94820e67a8
structs: remove EnterpriseMeta.GetNamespace
...
I added this recently without realizing that the method already existed and was named
NamespaceOrEmpty. Replace all calls to GetNamespace with NamespaceOrEmpty or NamespaceOrDefault
as appropriate.
2021-03-09 15:17:26 -05:00
Daniel Nephin
40ff553e85
ci: update config for nomad main branch rename
2021-03-09 14:44:44 -05:00
Daniel Nephin
848314782e
Merge pull request #9671 from hashicorp/streaming/terminating-gateway-events
...
state: Add terminating gateway events for streaming
2021-03-09 14:20:21 -05:00
Daniel Nephin
97bc073bd9
state: adjust compare for catalog events
...
Document that this comparison should roughly match MatchesKey
Only sort by overrideKey or service name, but not both
Add namespace to the sort.
The client side also builds a map of these based on the namespace/node/service key, so the only order
that really matters is the ordering of register/dereigster events.
2021-03-09 14:00:36 -05:00
Daniel Nephin
0d3bb68255
state: handle terminating gateway events properly in snapshot
...
Refactored out a function that can be used for both the snapshot and stream of events to translate
an event into an appropriate connect event.
Previously terminating gateway events would have used the wrong key in the snapshot, which would have
caused them to be filtered out later on.
Also removed an unused function, and some commented out code.
2021-03-09 14:00:35 -05:00
Kyle Havlovitz
de3fba8ef3
Add remaining terminating gateway tests for namespaces
...
Co-Authored-By: Daniel Nephin <dnephin@hashicorp.com>
2021-03-09 14:00:35 -05:00
Daniel Nephin
38aeb88908
Start to setup enterprise tests for terminating gateway streaming events.
...
Co-Authored-By: Kyle Havlovitz <kylehav@gmail.com>
2021-03-09 14:00:35 -05:00
Daniel Nephin
d0b37f18f0
state: Add support for override of namespace
...
in MatchesKey
also tests for MatchesKey
Co-Authored-By: Kyle Havlovitz <kylehav@gmail.com>
2021-03-09 14:00:35 -05:00
Daniel Nephin
ba59727337
state: update calls to ensureConfigEntryTxn
...
The EnterpriseMeta paramter was removed after this code was written, but before it merged.
Also the table name constant has changed.
2021-03-09 14:00:35 -05:00
Daniel Nephin
730cc575e6
state: add 2 more test cases for terminate gateway streaming events
...
Co-Authored-By: Kyle Havlovitz <kylehav@gmail.com>
2021-03-09 14:00:34 -05:00
Kyle Havlovitz
eadc8546a9
Added 6 new test cases for terminating gateway events
...
Co-Authored-By: Daniel Nephin <dnephin@hashicorp.com>
2021-03-09 14:00:34 -05:00
Daniel Nephin
15b0d5f62b
state: Add two more tests for connect events with terminating gateways
...
And expand one test case to cover more.
Co-Authored-By: Kyle Havlovitz <kylehav@gmail.com>
2021-03-09 14:00:34 -05:00
Daniel Nephin
abab373b89
state: Include the override key in the sorting of events
...
Co-Authored-By: Kyle Havlovitz <kylehav@gmail.com>
2021-03-09 14:00:34 -05:00
Kyle Havlovitz
f31582624d
state: Add terminating gateway events on updating a config entry
...
Co-Authored-By: Daniel Nephin <dnephin@hashicorp.com>
2021-03-09 14:00:34 -05:00