-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: app sharing (now open source!) #4378
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
Changes from 12 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
6b68642
feat: app sharing pt.1
deansheather 1ca5c46
Merge branch 'main' into dean/app-sharing
deansheather 67a7057
feat: app sharing pt.2
deansheather d7403ec
feat: app sharing pt.3
deansheather 2a5bcc8
Merge branch 'main' into dean/app-sharing
deansheather a2eacaa
feat: app sharing pt.4
deansheather e4f6fd6
chore: move app sharing to open source
deansheather 40300a7
Merge branch 'main' into dean/app-sharing
deansheather 89a75d0
fixup! Merge branch 'main' into dean/app-sharing
deansheather 4f6aac8
chore: add test for app sharing with scoped keys
deansheather 9f45850
chore: add share to all example templates
deansheather cedc57d
fixup! chore: add share to all example templates
deansheather f8268e7
chore: remove app sharing level 'template'
deansheather aae96de
chore: upgrade coder tf provider to 0.5.3
deansheather 8df6bed
Merge branch 'main' into dean/app-sharing
deansheather 077cb62
fixup! Merge branch 'main' into dean/app-sharing
deansheather File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| -- Drop column sharing_level from workspace_apps | ||
| ALTER TABLE workspace_apps DROP COLUMN sharing_level; | ||
|
|
||
| -- Drop type app_sharing_level | ||
| DROP TYPE app_sharing_level; |
15 changes: 15 additions & 0 deletions
15
coderd/database/migrations/000059_app_sharing_level.up.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| -- Add enum app_sharing_level | ||
| CREATE TYPE app_sharing_level AS ENUM ( | ||
| -- only the workspace owner can access the app | ||
| 'owner', | ||
| -- the workspace owner and other users that can read the workspace template | ||
| -- can access the app | ||
| 'template', | ||
deansheather marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| -- any authenticated user on the site can access the app | ||
| 'authenticated', | ||
| -- any user can access the app even if they are not authenticated | ||
| 'public' | ||
| ); | ||
|
|
||
| -- Add sharing_level column to workspace_apps table | ||
| ALTER TABLE workspace_apps ADD COLUMN sharing_level app_sharing_level NOT NULL DEFAULT 'owner'::app_sharing_level; | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.