Skip to content

Commit 781a04e

Browse files
committed
chore: extract node unique token to the separate resource
Link is readable by the users. As the token is sensitive it's better to save it in some resource that is not readable by the `omnictl`. Signed-off-by: Artem Chernyshev <[email protected]>
1 parent de7d90b commit 781a04e

File tree

17 files changed

+519
-91
lines changed

17 files changed

+519
-91
lines changed

client/api/omni/specs/siderolink.pb.go

Lines changed: 60 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/api/omni/specs/siderolink.proto

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ message SiderolinkSpec {
2828
// RemoteAddr is the machine address how it's visible from Omni
2929
// it is determined by reading X-Forwarded-For header coming from the gRPC API.
3030
string remote_addr = 8;
31-
// NodeUniqueToken is the per node join token which is saved in the Node META partition after
32-
// the machine is accepted in Omni.
33-
// Only for Talos >= 1.6.
34-
string node_unique_token = 9;
31+
string node_unique_token = 9 [deprecated = true];
3532
}
3633

3734
// LinkStatusSpec is created when the link peer event was submitted.
@@ -102,3 +99,10 @@ message ProviderJoinConfigSpec {
10299
message MachineJoinConfigSpec {
103100
JoinConfig config = 1;
104101
}
102+
103+
message NodeUniqueTokenSpec {
104+
// Token is the per node join token which is saved in the Node META partition after
105+
// the machine is accepted in Omni.
106+
// Only for Talos >= 1.6.
107+
string token = 1;
108+
}

client/api/omni/specs/siderolink_vtproto.pb.go

Lines changed: 173 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)