Commit Graph

9212 Commits

Author SHA1 Message Date
Michael Lange 183431994e Merge pull request #3332 from hashicorp/b-ui-partial-jobs-on-nodes-view
Ensure the job name and task group name for each allocation is shown in the table
2017-10-10 14:49:26 -07:00
Michael Schurter 4e005d4753 System ACL enforcement
Enforce ACL for System.GarbageCollect and System.ReconcileJobSummaries
RPC endpoints.
2017-10-10 10:53:10 -07:00
Michael Schurter de767ffa04 Status.Members ACL enforcement
Was incorrectly checked on the HTTP API before. Moved to RPC endpoint.
2017-10-10 10:36:54 -07:00
Michael Schurter 5391896e37 Merge pull request #3346 from hashicorp/b-nil-client-panic
ForceLeave endpoint must use Server.ResolveToken
2017-10-10 10:14:31 -07:00
Michael Schurter 67ebc44eae Merge pull request #3345 from hashicorp/vendor-checkpoint-with-timeout
Updating go-checkpoint lib to have a fixed timeout
2017-10-10 09:52:17 -07:00
Alex Dadgar 6d3d0a9391 Nomad UI Command 2017-10-09 23:01:55 -07:00
Michael Schurter 180cbc4f5a Fix AgentSelf, AgentMembers, and KeyringOperations 2017-10-09 16:12:28 -07:00
Michael Schurter e50acae1a9 ForceLeave endpoint must use Server.ResolveToken
The ForceLeaveRequest endpoint may only be called on servers, but the
code was using a Client to resolve tokens. This would cause a panic when
an agent wasn't both a Server and a Client.
2017-10-09 15:49:04 -07:00
Matt McQuillan 120ab59e0e Updating go-checkpoint lib to have a fixed timeout 2017-10-09 15:23:46 -04:00
Michael Schurter 1184df7d8f Merge pull request #3336 from hashicorp/f-acl-client-agent
/v1/client/agent/* ACL enforcement
2017-10-09 12:20:26 -07:00
Michael Schurter 492c861419 /v1/client/agent/* ACL enforcement 2017-10-09 12:18:54 -07:00
Michael Schurter 48c51d3183 Merge pull request #3331 from hashicorp/f-acl-client-alloc
/v1/client/allocation/./{stats,gc} ACL enforcement
2017-10-09 12:15:30 -07:00
Michael Schurter 04adc987ed /v1/client/allocation/./{stats,gc} ACL enforcement 2017-10-09 12:13:52 -07:00
Michael Schurter 40e5a56036 Merge pull request #3329 from hashicorp/f-acl-client-stats
/v1/client/stats ACL enforcement
2017-10-09 12:06:43 -07:00
Michael Schurter 84d82d79bb /v1/client/stats ACL enforcement 2017-10-09 12:02:32 -07:00
Michael Schurter 289f7d76bc Merge pull request #3343 from hashicorp/docs-client-gc
Document /v1/client/gc endpoint
2017-10-09 11:49:07 -07:00
Michael Schurter 59adf93c81 Merge pull request #3328 from hashicorp/f-acl-client-fs
FS HTTP API ACL enforcement
2017-10-09 11:28:26 -07:00
Michael Schurter dce2479147 Document /v1/client/gc endpoint 2017-10-09 11:27:28 -07:00
Michael Schurter 8a125759ae Refactor as there's no need for an ACL helper 2017-10-09 11:19:25 -07:00
Michael Schurter 260b66bf52 Test all fs endpoints in a loop 2017-10-09 11:19:14 -07:00
Michael Schurter a7450c8633 FS HTTP API ACL enforcement
ACL enforcement for the filesystem HTTP APIs on clients.
2017-10-09 11:06:34 -07:00
Michael Schurter 44455f5e93 Merge pull request #3325 from hashicorp/f-acl-client
/v1/client/gc ACL enforcement
2017-10-09 11:01:58 -07:00
Michael Schurter 69bcfe78ba /v1/client/gc ACL enforcement 2017-10-06 14:50:16 -07:00
Michael Schurter 57ff12432b Move acl helpers from nomad/ into nomad/mock
They're useful in command/agent/ tests.
2017-10-06 14:50:06 -07:00
Michael Schurter 0c83edbceb Update go-testing-interface
Needed for T.Helper and T.Skipf
2017-10-06 14:35:14 -07:00
Michael Schurter fd9d09e290 Rename TestAgent.Token to TestAgent.RootToken 2017-10-06 14:35:14 -07:00
Michael Schurter 4acff9c2bd Support AnonymousACLToken in GetPolicies 2017-10-06 14:35:14 -07:00
Chelsea Komlo 7c8a5228d4 Merge pull request #3290 from hashicorp/f-acl-job-dispatch
Add ACL for dispatch job
2017-10-06 13:33:21 -04:00
Michael Lange a9154b75f6 New test to assert that lazy loading jobs for allocation rows actually happens
Unfortunately it meant inlining the visit into each test
2017-10-05 20:11:17 -07:00
Michael Lange 4e606e435d Fixes issue regarding allocation rows
Sometimes the job name and/or task group name wouldn't show up.
2017-10-05 18:01:19 -07:00
Michael Lange 0941c7bec1 Merge pull request #3323 from hashicorp/f-ui-loading-states
UI Loading states
2017-10-05 18:00:51 -07:00
Michael Lange 16c92fc1bb Merge pull request #3321 from hashicorp/f-ui-error-states
Better error state for allocation stats failure
2017-10-05 17:51:15 -07:00
Michael Lange ab72eb164f Merge pull request #3300 from hashicorp/f-ui-404-pages
404 pages for the UI
2017-10-05 15:20:18 -07:00
Michael Lange e19740ce33 Simple catch-all route for 404s on pages 2017-10-05 14:39:38 -07:00
Michael Lange 2a1db3a09a Test coverage for 404s on resources 2017-10-05 14:39:37 -07:00
Michael Lange ca0b297d47 Handle allocation 404s 2017-10-05 14:39:37 -07:00
Michael Lange 9d9d66b1a7 Handle 404s for agents 2017-10-05 14:39:37 -07:00
Michael Lange 50a5bf4332 Handle 404s on nodes 2017-10-05 14:39:37 -07:00
Michael Lange 35f198d787 Handle 404s on jobs 2017-10-05 14:39:37 -07:00
Michael Lange af9f76aae5 Style error pages 2017-10-05 14:39:37 -07:00
Michael Lange fc5fb7bde9 Handle errors in the application route
This is the only way to preserve the URL in all cases.
2017-10-05 14:39:06 -07:00
Alex Dadgar 65035c78c0 changelog 2017-10-05 14:30:39 -07:00
Alex Dadgar b4ff637a49 Merge pull request #3327 from jrasell/f_gh_3304
Update agent CLI to include Consul config option flags.
2017-10-05 14:29:25 -07:00
James Rasell 4628637b54
Update agent CLI to include Consul config option flags.
This update introduces command line flags for all Consul options
thus allowing users to both use a config file and CLI options to
configure Consul.

Website documentation has also been updated.

Closes #3304
2017-10-05 14:26:26 +01:00
Michael Lange 877cbe6fbc Add a loading state to job information on allocation row.
This information is already loaded when traversing to an alloc row from
a job, but not when traversing to an alloc row from a node.
2017-10-03 17:18:33 -07:00
Michael Lange 0cc2c4267e Always reload all jobs
Ember tries to be clever by showing cached jobs instead of a loading spinner
in the event that a user starts on nodes, loads a couple jobs through
allocation relationships, then visits jobs.
2017-10-03 17:17:45 -07:00
Michael Lange 74fce03d4d Simple loading state for job details in a job row 2017-10-03 16:24:30 -07:00
Michael Lange e16fe35539 Loading templates in places 2017-10-03 16:20:45 -07:00
Michael Lange a08d2b5512 Better error state for allocation stats 2017-10-03 15:55:10 -07:00
Michael Lange ba34cff0bd New tooltip scss component 2017-10-03 15:55:10 -07:00