cmd/containerboot: allow for automatic ID token generation
Allow for optionally specifying an audience for containerboot. This is passed to tailscale up to allow for containerboot to use automatic ID token generation for authentication. Updates https://github.com/tailscale/corp/issues/34430 Signed-off-by: Mario Minardi <mario@tailscale.com>
This commit is contained in:
committed by
Mario Minardi
parent
02af7c963c
commit
e9d82767e5
@@ -129,6 +129,9 @@ func tailscaleUp(ctx context.Context, cfg *settings) error {
|
||||
if cfg.IDToken != "" {
|
||||
args = append(args, "--id-token="+cfg.IDToken)
|
||||
}
|
||||
if cfg.Audience != "" {
|
||||
args = append(args, "--audience="+cfg.Audience)
|
||||
}
|
||||
// --advertise-routes can be passed an empty string to configure a
|
||||
// device (that might have previously advertised subnet routes) to not
|
||||
// advertise any routes. Respect an empty string passed by a user and
|
||||
|
||||
Reference in New Issue
Block a user