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

Implement API and backend for DynamicWindowsDesktop #46987

Merged
merged 50 commits into from
Oct 22, 2024

Conversation

probakowski
Copy link
Contributor

This PR implements backend for DynamicWindowsDesktop as well as GRPC calls to manage it.

This is part of splitting #46738 into smaller, easier to review, PRs

@probakowski probakowski added desktop-access no-changelog Indicates that a PR does not require a changelog entry labels Sep 30, 2024
@public-teleport-github-review-bot

@probakowski - this PR will require admin approval to merge due to its size. Consider breaking it up into a series smaller changes.

api/types/desktop.go Outdated Show resolved Hide resolved
lib/auth/dynamicwindows/service.go Outdated Show resolved Hide resolved
lib/services/local/dynamic_desktops.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@zmb3 zmb3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple comments, but leaving an approval so as not to block you.

lib/auth/dynamicwindows/dynamicwindowsv1/service_test.go Outdated Show resolved Hide resolved
lib/auth/dynamicwindows/dynamicwindowsv1/service_test.go Outdated Show resolved Hide resolved
lib/auth/dynamicwindows/dynamicwindowsv1/service_test.go Outdated Show resolved Hide resolved
dynamicWindows, err := dynamicwindowsv1.NewService(dynamicwindowsv1.ServiceConfig{
Authorizer: cfg.Authorizer,
Backend: cfg.AuthServer.Services,
// TODO(probakowski): switch to cache when support is added
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this TODO still relevant?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it will go away in #46989

lib/services/local/dynamic_desktops_test.go Outdated Show resolved Hide resolved
@probakowski probakowski added this pull request to the merge queue Oct 22, 2024
github-merge-queue bot pushed a commit that referenced this pull request Oct 22, 2024
* Add DynamicWindowsDesktop to proto

* Add resource matchers to Windows desktop service config

* Implement API and backend for DynamicWindowsDesktop

* Fix imports

* move rpc to separate server

* rework api and grpc more towards 153-style

* e

* remove dynamic windows from paginated resource

* add tests

* add tests

* Update api/proto/teleport/legacy/types/types.proto

Co-authored-by: rosstimothy <[email protected]>

* lint

* gci

* cleanup

* cleanup

* use generic service

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* gci

* add admin action checks

* move service

* add service test

* gci

* review comments

* review comments

* review comments

* review comments

* review comments

---------

Co-authored-by: rosstimothy <[email protected]>
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 22, 2024
@probakowski probakowski added this pull request to the merge queue Oct 22, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 22, 2024
@probakowski probakowski added this pull request to the merge queue Oct 22, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 22, 2024
@probakowski probakowski added this pull request to the merge queue Oct 22, 2024
Merged via the queue into master with commit 0f487f6 Oct 22, 2024
40 checks passed
@probakowski probakowski deleted the probakowski/register-resources-api branch October 22, 2024 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop-access no-changelog Indicates that a PR does not require a changelog entry size/lg
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants