4 Commits

Author SHA1 Message Date
Andrey Smirnov
1dee0579e9
feat: add support for proxying one-to-one to apid
This adds a new metadata field `node` which performs always proxying to
a single node without touching any protobuf structs on the way.

So with `node`, we can call APIs which do not conform to the Talos API
proxying standards, but from the UX point of view things will work same
way, but multiplexing will be handled on the client side.

Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
2022-08-08 15:39:22 +04:00
Andrey Smirnov
5029edfb71 fix: overwrite nodes in the gRPC metadata
Many places rely on the "replace" semantics, and the change in #3738
broke that assumpion. This was showing up as upgrade test failure when
upgrade code saw a duplicate of config resource (as it saw responses
from two nodes).

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2021-06-11 08:04:48 -07:00
Alexey Palazhchenko
da329f00ab feat: enable RBAC by default
Refs #3421.

Signed-off-by: Alexey Palazhchenko <alexey.palazhchenko@gmail.com>
2021-06-09 11:03:56 -07:00
Andrey Smirnov
bddd4f1bf6 refactor: move external API packages into machinery/
This moves `pkg/config`, `pkg/client` and `pkg/constants`
under `pkg/machinery` umbrella.

And `pkg/machinery` is published as Go module inside Talos repository.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2020-08-17 09:56:14 -07:00