-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support domain whitelisting for projects (#4729)
* Support domain whitelisting for projects * Fixed "sudo" command execution
- Loading branch information
1 parent
994532c
commit 76d1c16
Showing
22 changed files
with
6,096 additions
and
3,333 deletions.
There are no files selected for viewing
This file contains 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 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,11 @@ | ||
CREATE TABLE projects_autoinvite_domains ( | ||
id UUID NOT NULL PRIMARY KEY DEFAULT uuid_generate_v4(), | ||
project_id UUID NOT NULL REFERENCES projects (id) ON DELETE CASCADE, | ||
project_role_id UUID NOT NULL REFERENCES project_roles (id) ON DELETE CASCADE, | ||
domain TEXT NOT NULL, | ||
created_on TIMESTAMPTZ NOT NULL DEFAULT now(), | ||
updated_on TIMESTAMPTZ NOT NULL DEFAULT now() | ||
); | ||
|
||
CREATE INDEX projects_autoinvite_domains_domain_idx ON projects_autoinvite_domains (lower(domain)); | ||
CREATE UNIQUE INDEX projects_autoinvite_domains_project_id_domain_idx ON projects_autoinvite_domains (project_id, lower(domain)); |
This file contains 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 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 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
Oops, something went wrong.
76d1c16
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.
🎉 Published on https://ui.rilldata.in as production
🚀 Deployed on https://662f933583614912562e39b6--rill-ui-dev.netlify.app