6 Commits

Author SHA1 Message Date
Artem Chernyshev
816e8af261 feat: print hint about using interative installer in mainenance mode
Similar to what we have for config upload.

Signed-off-by: Artem Chernyshev <artem.0xD2@gmail.com>
2020-11-19 07:15:42 -08:00
Andrey Smirnov
fc5f53bf51 fix: make fingerprint clearly optional in a boot hint
Plus fix the logging on docker/Talos to avoid logs in docker mode going
to the host kernel message buffer.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2020-11-16 11:46:15 -08:00
Andrey Smirnov
58df555580 feat: add example command in maintenance, enforce cert fingerprint
Server in maintenance mode now prints certficate fingerprint and
provides sample talosctl command to upload config to the node.

`talosctl` can optionally enforce server certificate fingerprint.

See also https://github.com/talos-systems/crypto/pull/4

Fixes #2753

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2020-11-12 07:36:18 -08:00
Andrey Smirnov
b2b86a622e fix: remove 'token creds' from maintenance service
This fixes the reverse Go dependency from `pkg/machinery` to `talos`
package.

Add a check to `Dockerfile` to prevent `pkg/machinery/go.mod` getting
out of sync, this should prevent problems in the future.

Fix potential security issue in `token` authorizer to deny requests
without grpc metadata.

In provisioner, add support for launching nodes without the config
(config is not delivered to the provisioned nodes).

Breaking change in `pkg/provision`: now `NodeRequest.Type` should be set
to the node type (as config can be missing now).

In `talosctl cluster create` add a flag to skip providing config to the
nodes so that they enter maintenance mode, while the generated configs
are written down to disk (so they can be tweaked and applied easily).

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2020-11-09 14:10:32 -08:00
Andrew Rynhard
a38410ead6 fix: remove log.Fatal from maintenance service
Errors should be returned, otherwise we will get a kernel panic.

Signed-off-by: Andrew Rynhard <andrew@rynhard.io>
2020-11-03 09:04:01 -08:00
Andrew Rynhard
562f816526 refactor: use gRPC for interactive installation
Instead of hosting a web service, we decided to implement a gRPC service
that exposes APIs that can be used in a client-side interactive installer.

Signed-off-by: Andrew Rynhard <andrew@rynhard.io>
2020-11-03 08:36:44 -08:00