- Notifications
You must be signed in to change notification settings - Fork1k
feat: Add workspace proxy enterprise cli commands#7123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
feat: Add workspace proxy enterprise cli commands#7123
Uh oh!
There was an error while loading.Please reload this page.
Conversation
838e562
to913c547
CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
enterprise/cli/workspaceproxy.go Outdated
cli.PrintDeprecatedOptions(), | ||
clibase.RequireNArgs(0), | ||
// We need a client to connect with the primary coderd instance. | ||
r.InitClient(client), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Shouldn't this just be a proxysdk client that we construct in the handler?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I was honestly just using this for the version checking.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
enterprise/cli/workspaceproxy.go Outdated
primaryAccessURL clibase.URL | ||
appSecuritYKey clibase.String | ||
) | ||
opts.Add( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Can't these be added to the regular config struct, and then the primary server can filter them out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
We talked on discord. I think the best move here is to autogenerate the Deployment struct from the Options. Then we can create all the options in 1 place, and filter them.
I will do this in another branch, this isok for now here just to get a cmd working.
Follow up PRs will make the workspace proxy creation/register experience better.
abc7415
to27d1476
Compare27d1476
toea3593d
CompareEmyrk commentedApr 17, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Rebased to#7176 |
Uh oh!
There was an error while loading.Please reload this page.
What this does
Makes a cli command to spin up external workspace proxies!
Testing/Development
This gives
develop.sh
an option--use-proxy
which will spin up the devserver with an external workspace proxy. This should allow easier manual validation.Features added to make this work
clibase.Optionset
filter to filter out options that do not pertain to the workspace proxy.app-security-key
Logs
Run
./develop.sh --use-proxy