Chelsea Holland Komlo
4b228b1919
remove redundant nil check
2018-08-10 12:37:21 -04:00
Chelsea Holland Komlo
3f1d54f628
add default case for empty TLS structs
2018-08-10 12:37:21 -04:00
Chelsea Holland Komlo
4755a65978
add comments
2018-08-10 12:37:21 -04:00
Chelsea Holland Komlo
86103d41d4
type safety for string keys
2018-08-10 12:37:21 -04:00
Chelsea Holland Komlo
31d6d00381
add simple getter for certificate
2018-08-10 12:37:21 -04:00
Chelsea Holland Komlo
568564f63f
refactor to use golang built in api for certs
2018-08-10 12:37:21 -04:00
Chelsea Holland Komlo
bb6c30ee3c
add functionality to check if signature algorithm is supported in cipher suites
2018-08-10 12:37:21 -04:00
Chelsea Holland Komlo
b92098fd08
change function signature to take entire tls config object
2018-08-10 12:37:21 -04:00
Michael Lange
3d89cb503b
Unit test coverage for adding the region param to requests
2018-08-09 20:27:54 -07:00
Michael Lange
94d321ef4f
Properly model regions in Mirage
2018-08-09 19:57:21 -07:00
Michael Lange
68142b3a82
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
9f3a37f1c2
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
8631fecc37
Update tests to handle region switching
2018-08-09 18:22:39 -07:00
Michael Lange
6e2bb48fd5
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
3534b09977
Address an issue with certain dependent keys
2018-08-09 18:22:39 -07:00
Michael Lange
3180e57138
Only deal with the region param (in the app and in api calls) when necessary
2018-08-09 18:22:39 -07:00
Michael Lange
c4c79c7a1f
Get the server's region (aka default region) from the API
...
The default region shouldn't be used as a qp since no qp means the same
thing.
2018-08-09 18:22:38 -07:00
Michael Lange
0cfeba49d7
Add the region qp to all requests made through the token service
2018-08-09 18:22:38 -07:00
Michael Lange
d61fd9ef48
The application route doesn't need to fetch namespaces
2018-08-09 18:22:38 -07:00
Michael Lange
786811b84a
Sidestep a transpilation bug.
...
Default params don't make it into arguments which were being splatted
into the call to super.
2018-08-09 18:22:38 -07:00
Michael Lange
ad70fb9cc3
Repeat the new namespace pattern for region
2018-08-09 18:22:38 -07:00
Michael Lange
93f41278b1
Clear up the data flow for namespaces
...
This is incredibly tricky with query params, since there is a bundle of
timing issues, lifecycle issues, missing features, and all around
gotchas with query params.
This solution has no observers and no instances of the system service
being set from the jobs controller.
The upside to this is no observers, much easier to follow logic, no more
dependent key chain reactions.
2018-08-09 18:22:38 -07:00
Michael Lange
35250117cf
Account for the service:system dependency due to region
2018-08-09 18:22:38 -07:00
Michael Lange
85fe4459d0
Remove the gutter menu from the allocations page
2018-08-09 18:22:38 -07:00
Michael Lange
a9aa730d2c
Never show the menu divider for the first menu item
2018-08-09 18:22:38 -07:00
Michael Lange
2b93a76fa7
Line breadcrumbs up flush with section content
2018-08-09 18:22:38 -07:00
Michael Lange
04b9d80dc0
Make the dropdown ever so slightly off-white
2018-08-09 18:22:38 -07:00
Michael Lange
32d05509ca
Move the region switcher out of the secondary nav and into the gutter when the gutter is collapsed
2018-08-09 18:22:37 -07:00
Michael Lange
148495e853
Add region switcher to the global header
2018-08-09 18:22:37 -07:00
Michael Lange
2877b6b351
Only show the region switcher when there are multiple regions
2018-08-09 18:22:37 -07:00
Michael Lange
b889c8091e
Fetch regions and namespaces in the application route
2018-08-09 18:22:37 -07:00
Michael Lange
a430baba4f
Harden up the system service for the event of store unloading
2018-08-09 18:22:37 -07:00
Michael Lange
fd0d889a38
Reset the system service when unloading the store
2018-08-09 18:22:37 -07:00
Michael Lange
0a3a83fe1d
Add the region qp to every api request
2018-08-09 18:22:37 -07:00
Michael Lange
9a9cc35bd0
Styles for the region switcher
2018-08-09 18:22:37 -07:00
Michael Lange
2bb770361b
Add three-way region property (query param, service, localStorage)
2018-08-09 18:22:37 -07:00
Michael Lange
ebd5123b77
Bare minimum Mirage support for regions
2018-08-09 18:22:37 -07:00
Alex Dadgar
720cc4d90c
Fix protos
2018-08-09 13:29:05 -07:00
Michael Schurter
080dca7329
vendor: fix blake2b on non-amd64 archs
...
The blake2b package only includes an asm implementation for amd64. Other
architectures use a generic Go implementation. Unfortunately appengine
is one of those architectures and we explicitly ignore appengine when
vendoring because it is an unsupported platform for Nomad.
Commit 925ec07a4 started ignoring appengine to help trim down the vendor
package. We now need to include appengine again - despite not building
for it - just to avoid accidently breaking other archs we do support.
2018-08-09 10:33:21 -07:00
Alex Dadgar
0cb8994e32
Merge pull request #4559 from hashicorp/f-base-plugin
...
Base/device/hclspec plugin protobufs
2018-08-08 10:09:01 -07:00
Alex Dadgar
a355b903a6
SetConfig
2018-08-07 16:16:23 -07:00
Alex Dadgar
ca121ce110
review feedback
2018-08-07 13:03:21 -07:00
Alex Dadgar
97ccf42c64
Base and device plugin and hclspec parser
2018-08-07 13:03:21 -07:00
Alex Dadgar
58a85f911e
Vendor conflicts
...
Vendored the tagged version of protobuf.
2018-08-07 13:02:47 -07:00
Michael Schurter
f59c42624d
Merge pull request #4547 from msvbhat/systemd-unit-restart
...
Nomad systemd unit - Add restarting on failure
2018-08-06 17:24:48 -07:00
Chelsea Komlo
71b5bc3863
Merge pull request #4551 from hashicorp/f-plugin-dependencies
...
Upgrade plugin dependencies
2018-08-06 15:44:09 -04:00
Michael Lange
63b16f259b
Merge pull request #4536 from hashicorp/f-ui-mobile-views
...
UI: Mobile Views
2018-08-06 11:31:46 -07:00
Michael Lange
85ab69cf4e
Align the hamburger menu and ensure that it's full area is clickable
2018-08-06 11:21:54 -07:00
Michael Lange
805147947b
Remove extra whitespace
2018-08-06 11:21:54 -07:00
Michael Lange
86bafe66cf
Make the hamburger menu look more traditional
2018-08-06 11:21:54 -07:00