[public api] Implement GetOwnerToken rpc #10068
Merged
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.
Description
Implement the
GetOwnerToken
public API RPC.Related Issue(s)
Closes #9923
How to test
Obtain a stable preview environment like the one for this branch (https://af-impleme89b9aedbc7.preview.gitpod-dev.com/workspaces) (could try to use
main.preview.gitpod-dev.com
but it gets reset all the time).Run the public API, proxying the
server
JSON RPC API from the preview branch:Start a workspace on the preview env.
Run
gpctl
against the public API to get the owner token for the workspace we just started:where
$TOKEN
is obtained by running:in the preview environment web console and
$WORKSPACE_ID
is the id of the workspace we started in step 3.The command should return the owner token for the workspace running in the preview environment:
Release Notes
Documentation
None