Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore: add workspace proxies to the backend #7032

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 51 commits into from
Apr 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
ca5b50c
feat: Implement start of external workspace proxies
Emyrk Apr 5, 2023
5fc7832
Add more init code
Emyrk Apr 5, 2023
391fe74
feat: add proxysdk and proxy tokeng
deansheather Apr 6, 2023
23d0a4c
Comments and import cleanup
Emyrk Apr 6, 2023
7cce9a2
Move to wsproxy, make unit test work, update audit log resources
Emyrk Apr 6, 2023
2aebe77
Merge remote-tracking branch 'origin/main' into dreamteam/external_proxy
Emyrk Apr 6, 2023
020b4b5
Add proxy token provider
Emyrk Apr 6, 2023
dc5af55
Merge remote-tracking branch 'origin/main' into dreamteam/external_proxy
Emyrk Apr 6, 2023
c5225ae
Begin writing unit test for external proxy
Emyrk Apr 6, 2023
d6a1217
Add option validation
Emyrk Apr 7, 2023
1e163d9
Fix access url passing
Emyrk Apr 7, 2023
e86a518
Healthz and buildinfo endpoints
Emyrk Apr 7, 2023
20b44c6
do stuff
deansheather Apr 11, 2023
68c3bb1
Linting
Emyrk Apr 11, 2023
ec04552
Check workspace proxy hostnames for subdomain apps
Emyrk Apr 11, 2023
07323e5
Path based redirects redirect to dashboardurl
Emyrk Apr 11, 2023
ffa8b00
Merge remote-tracking branch 'origin/main' into dreamteam/external_proxy
Emyrk Apr 11, 2023
a96a73b
Just commit something
Emyrk Apr 11, 2023
2d7e242
use query instead of proxycache
deansheather Apr 12, 2023
e80e7e0
Merge remote-tracking branch 'origin/main' into dreamteam/external_proxy
Emyrk Apr 12, 2023
be25c51
Make gen
Emyrk Apr 12, 2023
208eaf1
MAke gen
Emyrk Apr 12, 2023
6cfb62c
Linting
Emyrk Apr 12, 2023
a112e29
Bump migration
Emyrk Apr 13, 2023
d6edd29
Smuggling for path apps on proxies
deansheather Apr 13, 2023
5db3d25
Reuse system rbac subject
Emyrk Apr 13, 2023
7e4ed87
Add TODO
Emyrk Apr 13, 2023
7140420
Merge remote-tracking branch 'origin/main' into dreamteam/external_proxy
Emyrk Apr 13, 2023
fb30e1a
Give moons exec perms
Emyrk Apr 13, 2023
22aadf1
Merge remote-tracking branch 'origin/main' into dreamteam/external_proxy
Emyrk Apr 13, 2023
a66ffd7
Merge remote-tracking branch 'origin/main' into dreamteam/external_proxy
Emyrk Apr 14, 2023
a483f3e
Fix merge mistake
Emyrk Apr 14, 2023
50fa1ca
Renames from PR feedback
Emyrk Apr 14, 2023
b7f3b86
Update enterprise/audit/table.go
Emyrk Apr 17, 2023
bb032c3
Renames and formatting
Emyrk Apr 17, 2023
6ab0dea
Make gen
Emyrk Apr 17, 2023
12c6f8d
Fix compile
Emyrk Apr 17, 2023
224fa2f
Add comments to sql columns
Emyrk Apr 17, 2023
06fb88b
ExternalProxy -> WorkspaceProxy
Emyrk Apr 17, 2023
82d10d9
Remove Actor function
Emyrk Apr 17, 2023
dc884eb
comments
deansheather Apr 17, 2023
dbbd2ba
comments
deansheather Apr 17, 2023
1322f99
Use correct MW
Emyrk Apr 17, 2023
784fb68
Make gen/fmt/lint
Emyrk Apr 17, 2023
b72ef2f
Group vs route to fix swagger
Emyrk Apr 17, 2023
a4f205e
comments
deansheather Apr 17, 2023
8508138
comments
deansheather Apr 17, 2023
cfe484c
comments
deansheather Apr 17, 2023
d4d9bf9
tests for RequireAPIKeyOrWorkspaceProxyAuth
deansheather Apr 17, 2023
fdbd31e
tests for ExtractWorkspaceProxy
deansheather Apr 17, 2023
efef018
Merge branch 'main' into dreamteam/external_proxy
deansheather Apr 17, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
131 changes: 126 additions & 5 deletions coderd/apidoc/docs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

121 changes: 116 additions & 5 deletions coderd/apidoc/swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions coderd/authorize.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func AuthorizeFilter[O rbac.Objecter](h *HTTPAuthorizer, r *http.Request, action
h.Logger.Error(r.Context(), "filter failed",
slog.Error(err),
slog.F("user_id", roles.Actor.ID),
slog.F("username", roles.Username),
slog.F("username", roles.ActorName),
slog.F("roles", roles.Actor.SafeRoleNames()),
slog.F("scope", roles.Actor.SafeScopeName()),
slog.F("route", r.URL.Path),
Expand Down Expand Up @@ -77,8 +77,8 @@ func (h *HTTPAuthorizer) Authorize(r *http.Request, action rbac.Action, object r
// in the early days
logger.Warn(r.Context(), "unauthorized",
slog.F("roles", roles.Actor.SafeRoleNames()),
slog.F("user_id", roles.Actor.ID),
slog.F("username", roles.Username),
slog.F("actor_id", roles.Actor.ID),
slog.F("actor_name", roles.ActorName),
slog.F("scope", roles.Actor.SafeScopeName()),
slog.F("route", r.URL.Path),
slog.F("action", action),
Expand Down Expand Up @@ -129,7 +129,7 @@ func (api *API) checkAuthorization(rw http.ResponseWriter, r *http.Request) {
api.Logger.Debug(ctx, "check-auth",
slog.F("my_id", httpmw.APIKey(r).UserID),
slog.F("got_id", auth.Actor.ID),
slog.F("name", auth.Username),
slog.F("name", auth.ActorName),
slog.F("roles", auth.Actor.SafeRoleNames()),
slog.F("scope", auth.Actor.SafeScopeName()),
)
Expand Down
Loading