Repository navigation
Conversation
rak16
approved these changes
Nov 3, 2026
apinonformoso
force-pushed
the
apinon/mdrop/630-microvm-access-tokens
branch
from
November 4, 2026 14:09
a1f89cd to
987db57
Compare
Co-authored-by: Cursor <cursoragent@cursor.com>
apinonformoso
force-pushed
the
apinon/mdrop/630-microvm-access-tokens
branch
from
November 4, 2026 16:22
b7fcd63 to
38f13a7
Compare
anup-deka
approved these changes
Nov 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The MicroVM API supports access tokens scoped to one MicroVM. doctl has no commands for that API. Users cannot create, list, or revoke these tokens from the command line.
What changed
doctl compute microvm access-token create <microvm-id> --name <name> [--expires-in-seconds N]. The output shows the token value once.listnever shows it.doctl compute microvm access-token list <microvm-id>. It shows the ID, name, created time, and expiry of each live token.doctl compute microvm access-token revoke <microvm-id> <token-id>. It asks for confirmation unless you pass--force.do.MicroVMsServiceand regenerate its mock.MicroVMAccessTokendisplayer. TheTokencolumn appears only in thecreateoutput.v1.236.0, which carries the access token methods from microvms: add access token create, list, and revoke godo#1197.Vendored godo changes outside this feature
The bump from
v1.234.0tov1.236.0also vendors two other godo changes. One needs a test update here:omitemptyfromHostedAgentSession.ResumeOnTopoffso a revoked consent reads asfalseinstead of absent. I updated the tag assertion inTestResumeOnTopoffWireNamesto match.insights.go). No doctl change needed.How it was tested
go test -mod=vendor ./commands/... ./do/... ./pkg/... ./internal/... .passes.TestRegistryLogoutfails locally onmaintoo and passes in CI.go vetpasses.gofmtreports no changes.--helpoutput of the new commands.