open-nomad/testutil
Mahmood Ali 4b2ba62e35 acl: check ACL against object namespace
Fix a bug where a millicious user can access or manipulate an alloc in a
namespace they don't have access to.  The allocation endpoints perform
ACL checks against the request namespace, not the allocation namespace,
and performs the allocation lookup independently from namespaces.

Here, we check that the requested can access the alloc namespace
regardless of the declared request namespace.

Ideally, we'd enforce that the declared request namespace matches
the actual allocation namespace.  Unfortunately, we haven't documented
alloc endpoints as namespaced functions; we suspect starting to enforce
this will be very disruptive and inappropriate for a nomad point
release.  As such, we maintain current behavior that doesn't require
passing the proper namespace in request.  A future major release may
start enforcing checking declared namespace.
2019-10-08 12:59:22 -04:00
..
responsewriter.go tests: fix races caused by sharing a buffer 2018-10-16 16:56:55 -07:00
server.go test: build with mock_driver by default 2018-04-18 14:45:33 -07:00
slow.go Skip QEMU graceful shutdown test except on Travis 2018-01-31 15:47:26 -08:00
vault.go chore: General Cleanup 2019-01-17 18:43:14 +01:00
wait.go acl: check ACL against object namespace 2019-10-08 12:59:22 -04:00
wait_test.go nomad: testing remove peer 2015-06-04 13:02:39 +02:00