TBR: tools/principal: Fix missing change in commit
799aa054d3c65bd34c48f98fcf8ecc3844731162
(This change should have been part of
https://vanadium-review.googlesource.com/#/c/1670/)
Change-Id: I4e1236a03957f2b3a3bd74a329a983908cccfc62
diff --git a/tools/principal/bless.go b/tools/principal/bless.go
index e9984c9..33378fb 100644
--- a/tools/principal/bless.go
+++ b/tools/principal/bless.go
@@ -31,7 +31,10 @@
defer cancel()
var reply security.WireBlessings
- reply, err = identity.MacaroonBlesserClient(service).Bless(ctx, macaroon, options.ServerPublicKey{rootKey})
+ // Authorize the server by its public key (obtained from macaroonChan).
+ // Must skip authorization during name resolution because the identity
+ // service is not a trusted root yet.
+ reply, err = identity.MacaroonBlesserClient(service).Bless(ctx, macaroon, options.SkipResolveAuthorization{}, options.ServerPublicKey{rootKey})
if err != nil {
return nil, fmt.Errorf("failed to get blessing from %q: %v", service, err)
}