Skip to content
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

Add Contacts RBAC #48885

Merged
merged 10 commits into from
Dec 3, 2024
Merged

Add Contacts RBAC #48885

merged 10 commits into from
Dec 3, 2024

Conversation

mcbattirola
Copy link
Contributor

@mcbattirola mcbattirola commented Nov 13, 2024

This PR adds a new type of resource, contact, and gives read and write permissions to it to the default editor role.

The permission is also added to the UserACL object that gets sent to the web UI.

This value is unused for now, a future teleport.e PR will use it both in the UI (to display or hide sections of the screen) and in the Cloud API permission layer, to control who can list and edit Business and Security contacts.

This is part of https://github.com/gravitational/cloud/issues/10491

teleport.e PR using this new resource: https://github.com/gravitational/teleport.e/pull/5561

RFD: cloud/0157

Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-48885.d3pp5qlev8mo18.amplifyapp.com

@mcbattirola mcbattirola changed the title (wip) Add Contacts RBAC Add Contacts RBAC Nov 25, 2024
@mcbattirola mcbattirola marked this pull request as ready for review November 25, 2024 14:16
@github-actions github-actions bot requested review from probakowski and tcsc November 25, 2024 14:17
@mcbattirola mcbattirola added the no-changelog Indicates that a PR does not require a changelog entry label Nov 27, 2024
@mcbattirola
Copy link
Contributor Author

Update: I added this commit 11748df which adds contacts to the web UI context object.

@mcbattirola mcbattirola requested a review from zmb3 December 3, 2024 12:53
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from tcsc December 3, 2024 17:17
@mcbattirola mcbattirola added this pull request to the merge queue Dec 3, 2024
Merged via the queue into master with commit 4f62286 Dec 3, 2024
46 checks passed
@mcbattirola mcbattirola deleted the mcbattirola/contact-rbac branch December 3, 2024 18:09
mcbattirola added a commit that referenced this pull request Dec 9, 2024
* Add Contact resource; include it in default editor permissions and web ACL

* Add contacts to ACL test

* Improve godocs

Co-authored-by: Zac Bergquist <[email protected]>

* Add `contact` to the web user context

---------

Co-authored-by: Zac Bergquist <[email protected]>
mcbattirola added a commit that referenced this pull request Dec 9, 2024
* Add Contact resource; include it in default editor permissions and web ACL

* Add contacts to ACL test

* Improve godocs

Co-authored-by: Zac Bergquist <[email protected]>

* Add `contact` to the web user context

---------

Co-authored-by: Zac Bergquist <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Dec 9, 2024
* Add Contact resource; include it in default editor permissions and web ACL

* Add contacts to ACL test

* Improve godocs



* Add `contact` to the web user context

---------

Co-authored-by: Zac Bergquist <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Dec 9, 2024
* Add Contacts RBAC (#48885)

* Add Contact resource; include it in default editor permissions and web ACL

* Add contacts to ACL test

* Improve godocs

Co-authored-by: Zac Bergquist <[email protected]>

* Add `contact` to the web user context

---------

Co-authored-by: Zac Bergquist <[email protected]>

* Fix merge conflict

---------

Co-authored-by: Zac Bergquist <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants