open-nomad/helper/users
Michael Schurter 0a496c845e
Task API via Unix Domain Socket (#15864)
This change introduces the Task API: a portable way for tasks to access Nomad's HTTP API. This particular implementation uses a Unix Domain Socket and, unlike the agent's HTTP API, always requires authentication even if ACLs are disabled.

This PR contains the core feature and tests but followup work is required for the following TODO items:

- Docs - might do in a followup since dynamic node metadata / task api / workload id all need to interlink
- Unit tests for auth middleware
- Caching for auth middleware
- Rate limiting on negative lookups for auth middleware

---------

Co-authored-by: Seth Hoenig <shoenig@duck.com>
2023-02-06 11:31:22 -08:00
..
lookup.go Task API via Unix Domain Socket (#15864) 2023-02-06 11:31:22 -08:00
lookup_linux_test.go Task API via Unix Domain Socket (#15864) 2023-02-06 11:31:22 -08:00
lookup_unix.go client: sandbox go-getter subprocess with landlock (#15328) 2022-12-07 16:02:25 -06:00
lookup_windows_test.go Task API via Unix Domain Socket (#15864) 2023-02-06 11:31:22 -08:00