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

Allow Bots to submit access request reviews #33375

Merged
merged 16 commits into from Oct 16, 2023

Conversation

strideynet
Copy link
Contributor

@strideynet strideynet commented Oct 12, 2023

Closes #33028

Modifies the access request submit RBAC to respect impersonated roles when the user is a bot. This is necessary as bot certificates always use role impersonation.

@strideynet
Copy link
Contributor Author

Manually tested at a553671

@strideynet strideynet marked this pull request as ready for review October 13, 2023 18:20
@strideynet
Copy link
Contributor Author

@fspmarshall if you don't mind taking a look now I've included tests, that'd be greatly appreciated :)

lib/auth/access_request_test.go Outdated Show resolved Hide resolved
lib/services/access_request_test.go Outdated Show resolved Hide resolved
@strideynet strideynet added this pull request to the merge queue Oct 16, 2023
Merged via the queue into master with commit b620b20 Oct 16, 2023
28 checks passed
@strideynet strideynet deleted the strideynet/machine-id-approve-access-requests branch October 16, 2023 09:36
@public-teleport-github-review-bot

@strideynet See the table below for backport results.

Branch Result
branch/v12 Failed
branch/v13 Failed
branch/v14 Create PR

strideynet added a commit that referenced this pull request Oct 16, 2023
* Guesstimate towards a solution

* Remove unrelated comment

* Roughly try a different way of supporting this

* Revert line that was necessary to change

* Change signature of exported func to match client

* Fix test invocation

* Add test for Bot reviewing access request

* Fix missing err check in test

* Use single context

* Use client rather than unexported method in test

* Check err before defer
github-merge-queue bot pushed a commit that referenced this pull request Oct 17, 2023
* Guesstimate towards a solution

* Remove unrelated comment

* Roughly try a different way of supporting this

* Revert line that was necessary to change

* Change signature of exported func to match client

* Fix test invocation

* Add test for Bot reviewing access request

* Fix missing err check in test

* Use single context

* Use client rather than unexported method in test

* Check err before defer
smallinsky pushed a commit that referenced this pull request Oct 17, 2023
* Guesstimate towards a solution

* Remove unrelated comment

* Roughly try a different way of supporting this

* Revert line that was necessary to change

* Change signature of exported func to match client

* Fix test invocation

* Add test for Bot reviewing access request

* Fix missing err check in test

* Use single context

* Use client rather than unexported method in test

* Check err before defer
smallinsky pushed a commit that referenced this pull request Oct 17, 2023
* Guesstimate towards a solution

* Remove unrelated comment

* Roughly try a different way of supporting this

* Revert line that was necessary to change

* Change signature of exported func to match client

* Fix test invocation

* Add test for Bot reviewing access request

* Fix missing err check in test

* Use single context

* Use client rather than unexported method in test

* Check err before defer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ReviewAccessRequest RPC does not respect Machine ID Role Impersonation
3 participants