You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While doing some testing of Nomad 1.1.0-beta, I found some small papercuts in the refresh/resize behavior for the new namespace selector drop-down. Nothing I'd consider a show-stopper for release, so marking these for roadmapping. cc'ing @backspace just so you have visibility.
Without ACLs or namespaces, the selector is missing just as expected:
Then if I add a namespace with nomad namespace apply dev, I have to do a full page refresh before the selector shows up:
Next let's test it with ACLs:
delete the namespace nomad namespace delete dev
add acls { enabled = true } to the config
nomad acl bootstrap and set the NOMAD_TOKEN environment variable to the root token (don't lose the root token, we'll need it in a bit)
apply the policy below: nomad acl policy apply dev-reader policy.hcl
generate a new token: nomad acl token create -name reader -policy=dev-reader, and set the NOMAD_TOKEN environment variable to the new token.
verify that nomad job status works and gives an empty result
Now auth to the web UI with nomad ui -authenticate. Because there is no dev namespace yet and we don't have access to the default namespace, it'll look like we're unauthorized, as I'd expect:
If we then add the dev namespace with NOMAD_TOKEN=<root token> nomad namespace apply dev, the selector will not refresh. After a page refresh, we're still on the default namespace we don't have access to (as expected?) but that results in the selector looking like this:
Click on the caret, and we get this unfortunate looking drop-down:
But then once we make the selection, it looks as expected:
The text was updated successfully, but these errors were encountered:
@gowthamgts just a head up that's intentional -- the * option is an expensive query against the server so we default to default instead. But in any case, if you'd like to discuss that further it'd probably be better to open a new feature request rather than having the discussion in this bug report.
While doing some testing of Nomad 1.1.0-beta, I found some small papercuts in the refresh/resize behavior for the new namespace selector drop-down. Nothing I'd consider a show-stopper for release, so marking these for roadmapping. cc'ing @backspace just so you have visibility.
Without ACLs or namespaces, the selector is missing just as expected:
Then if I add a namespace with
nomad namespace apply dev
, I have to do a full page refresh before the selector shows up:Next let's test it with ACLs:
nomad namespace delete dev
acls { enabled = true }
to the confignomad acl bootstrap
and set theNOMAD_TOKEN
environment variable to the root token (don't lose the root token, we'll need it in a bit)nomad acl policy apply dev-reader policy.hcl
nomad acl token create -name reader -policy=dev-reader
, and set theNOMAD_TOKEN
environment variable to the new token.nomad job status
works and gives an empty resultpolicy.hcl
Now auth to the web UI with
nomad ui -authenticate
. Because there is nodev
namespace yet and we don't have access to thedefault
namespace, it'll look like we're unauthorized, as I'd expect:If we then add the
dev
namespace withNOMAD_TOKEN=<root token> nomad namespace apply dev
, the selector will not refresh. After a page refresh, we're still on the default namespace we don't have access to (as expected?) but that results in the selector looking like this:Click on the caret, and we get this unfortunate looking drop-down:
But then once we make the selection, it looks as expected:
The text was updated successfully, but these errors were encountered: