Skip to content

chore: Allow editing proxy fields via api. #7435

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

Merged
merged 16 commits into from
May 9, 2023
Merged

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented May 5, 2023

What this does

Adds cli command to edit workspace proxy fields.

Also add coder wsproxy regenerate-token <name> to generate a new auth token for the wsproxy

Fixes #7406
Fixes #7407

Comment on lines 415 to 425
// TODO: This audit log does not work because it has no user id
// associated with it. The audit log commitAudit() function ignores
// the audit log if there is no user id. We should find a solution
// to make sure this event is tracked.
//auditor = api.AGPL.Auditor.Load()
//aReq, commitAudit = audit.InitRequest[database.WorkspaceProxy](rw, &audit.RequestParams{
// Audit: *auditor,
// Log: api.Logger,
// Request: r,
// Action: database.AuditActionWrite,
//})
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going to kick fixing this to another PR.

I commented out rather than deleting it to remind us that we probably should audit log this, but at the moment we cannot.

@Emyrk Emyrk requested review from a team, deansheather and sreya and removed request for a team and deansheather May 8, 2023 17:16
@Emyrk Emyrk merged commit b5ad628 into main May 9, 2023
@Emyrk Emyrk deleted the stevenmasley/edit_proxy branch May 9, 2023 18:46
@github-actions github-actions bot locked and limited conversation to collaborators May 9, 2023
@bpmct
Copy link
Member

bpmct commented May 9, 2023

Can you also edit the default proxy name and icon? (it's difficult for me to check since the slim builds don't include coder wsproxy

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

workspace proxies: regenerate token workspace proxies: edit proxy
3 participants