-
Notifications
You must be signed in to change notification settings - Fork 887
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 our terms of service and privacy 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
Conversation
838e562
to
913c547
Compare
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.
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 is ok for now here just to get a cmd working.
Follow up PRs will make the workspace proxy creation/register experience better.
abc7415
to
27d1476
Compare
27d1476
to
ea3593d
Compare
Rebased to #7176 |
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