Commit Graph

12391 Commits

Author SHA1 Message Date
Chelsea Komlo
0535dfd414 Merge pull request #4565 from hashicorp/b-compare-cert-alg
Error if TLS Certificate signature algorithm isn't supported in cipher suites
2018-08-15 16:09:46 -04:00
Chelsea Holland Komlo
0bb13c0f04 fix up test failure due to keyloader instantiated on tls config during parsing 2018-08-15 00:59:29 -04:00
Chelsea Komlo
e340607668 Merge pull request #4584 from hashicorp/b-build-fixes
Vendor github.com/golang/protobuf/ptypes/empty
2018-08-14 17:38:15 -04:00
Chelsea Komlo
49e96e0dcc Merge pull request #4577 from hashicorp/b-panic-job-history
Fix for panic when submitting non-existent version for job history CLI command
2018-08-14 17:34:05 -04:00
Chelsea Holland Komlo
6d77e951b7 vendor github.com/golang/protobuf/ptypes/empty 2018-08-14 16:20:20 -04:00
Chelsea Holland Komlo
1ec0852484 spelling fix 2018-08-14 14:06:04 -04:00
Chelsea Komlo
a24dd6dda8 Merge pull request #4573 from Xopherus/fix-4413
Close multiplexer when context is cancelled
2018-08-14 13:18:31 -04:00
Michael Lange
dafe580415 Merge pull request #4541 from hashicorp/f-ui-new-json-viewer
UI: New JSON viewer
2018-08-13 17:15:14 -07:00
Michael Lange
dcd8133461 Remove the old json viewer 2018-08-13 17:04:15 -07:00
Michael Lange
ee08e40071 Delete the removed "depth" aspect of json viewer from the styleguide 2018-08-13 17:04:14 -07:00
Michael Lange
8291373d24 Theme CodeMirror
Borrowed heavily from Vault
2018-08-13 17:04:14 -07:00
Michael Lange
19d7202bd1 Use ivy-codemirror in the JSON Viewer component 2018-08-13 17:04:14 -07:00
Michael Lange
b58c229625 Introduce ivy-codemirror 2018-08-13 17:03:20 -07:00
Michael Lange
3fd11d40a4 Merge pull request #4572 from hashicorp/f-ui-region-switcher
UI: Region Switcher
2018-08-13 16:33:08 -07:00
Xopherus
3f24197f93 Close multiplexer when context is cancelled
Multiplexer continues to create rpc connections even when
the context which is passed to the underlying rpc connections
is cancelled by the server.

This was causing #4413 - when a SIGHUP causes everything to reload,
it uses context to cancel the underlying http/rpc connections
so that they may come up with the new configuration.
The multiplexer was not being cancelled properly so it would
continue to create rpc connections and constantly fail,
causing communication issues with other nomad agents.

Fixes #4413
2018-08-13 19:32:49 -04:00
Michael Lange
a61ad7ac59 List the new region mirage env var in the environment file 2018-08-13 16:18:53 -07:00
Michael Lange
3192267039 Use the model hook and setupController hook instead of afterModel
This is a more idiomatic way to handle the QP resetting in the
application controller.
2018-08-13 16:18:06 -07:00
Michael Schurter
b05b00fb47 Merge pull request #4568 from hashicorp/vendor-fix-blake2b
vendor: fix blake2b on non-amd64 archs
2018-08-13 15:46:32 -07:00
Chelsea Holland Komlo
35f3973365 fix panic for job history cli command when used with non-existent job version 2018-08-13 16:57:36 -04:00
Chelsea Holland Komlo
067eef565a add signature algorithm to error message 2018-08-13 16:21:18 -04:00
Chelsea Holland Komlo
eb3cead2bc rename signature algorithm type per code review feedback 2018-08-13 16:11:49 -04:00
Chelsea Holland Komlo
011eced69d extract functionality for determining signature algorithm per code review feedback 2018-08-13 16:08:23 -04:00
Chelsea Komlo
468de05861 Merge pull request #4570 from hashicorp/b-disable-checkpoint
Skip update checking if DisableUpdateCheck is set to true
2018-08-13 16:02:47 -04:00
Alex Dadgar
a58faf019a Merge pull request #4574 from hashicorp/f-base-go-plugin
Base go-plugin client/server
2018-08-13 11:10:54 -07:00
Alex Dadgar
2de5989e37 vet 2018-08-13 11:10:33 -07:00
Alex Dadgar
1736d93430 Review comments 2018-08-13 11:01:44 -07:00
Charlie Voiselle
5f03b31f30 Fix typo 2018-08-13 10:38:22 -04:00
Alex Dadgar
cfc6992e4a Initial go-plugin 2018-08-12 15:58:39 -07:00
Michael Lange
95e8259447 Acceptance tests for the region switcher 2018-08-10 12:52:05 -07:00
Alex Dadgar
6cd2c19b9b move protos 2018-08-10 11:16:55 -07:00
Alex Dadgar
640c1bc5f3 Merge pull request #4571 from hashicorp/f-base-plugin-configs
Convert HCL Interface values to Cty Values
2018-08-10 11:16:23 -07:00
Alex Dadgar
42a51e98a0 block attr spec 2018-08-10 11:14:12 -07:00
Alex Dadgar
332b701a0e hcl interface to cty function 2018-08-10 10:51:23 -07:00
Chelsea Holland Komlo
82c096bc60 skip update checking if DisableUpdateCheck is set to true 2018-08-10 13:08:13 -04:00
Chelsea Holland Komlo
4f1d40926e change string repr of signature algorithms to constants 2018-08-10 12:37:21 -04:00
Chelsea Holland Komlo
4fe562ca8c remove redundant nil check 2018-08-10 12:37:21 -04:00
Chelsea Holland Komlo
5bb7d9d570 add default case for empty TLS structs 2018-08-10 12:37:21 -04:00
Chelsea Holland Komlo
1a1effd2aa add comments 2018-08-10 12:37:21 -04:00
Chelsea Holland Komlo
febf24e71f type safety for string keys 2018-08-10 12:37:21 -04:00
Chelsea Holland Komlo
781b9c640d add simple getter for certificate 2018-08-10 12:37:21 -04:00
Chelsea Holland Komlo
92fc1ce470 refactor to use golang built in api for certs 2018-08-10 12:37:21 -04:00
Chelsea Holland Komlo
bc01b401fc add functionality to check if signature algorithm is supported in cipher suites 2018-08-10 12:37:21 -04:00
Chelsea Holland Komlo
bfaf4dcb2b change function signature to take entire tls config object 2018-08-10 12:37:21 -04:00
Michael Lange
ae464a01dc Unit test coverage for adding the region param to requests 2018-08-09 20:27:54 -07:00
Michael Lange
dbc18c9d46 Properly model regions in Mirage 2018-08-09 19:57:21 -07:00
Michael Lange
c55df8ff4b Specify the request type for token self
Without this, the data (query params) get json stringified
2018-08-09 18:22:39 -07:00
Michael Lange
362aff0fab Simplify the control flow around changing namespaces and regions
The UI will no longer try to redirect to the appropriate namespace or
region if one is found in localStorage. Instead, it will assume that
the lack of query param means the default namespaces or region is
desired.
2018-08-09 18:22:39 -07:00
Michael Lange
b767a87422 Update tests to handle region switching 2018-08-09 18:22:39 -07:00
Michael Lange
822d99833b Handle errors when getting regions or the default regions
This protects against volatility in the server and, more commonly, ACLs
returning forbidden responses.
2018-08-09 18:22:39 -07:00
Michael Lange
fe315fe6d1 Address an issue with certain dependent keys 2018-08-09 18:22:39 -07:00