Skip to content

WebDiscover: Add OS integrations page#24108

Merged
kimlisa merged 15 commits intomasterfrom
lisa/add-integrations
Apr 11, 2023
Merged

WebDiscover: Add OS integrations page#24108
kimlisa merged 15 commits intomasterfrom
lisa/add-integrations

Conversation

@kimlisa
Copy link
Copy Markdown
Contributor

@kimlisa kimlisa commented Apr 5, 2023

Recommend reviewing by commit.
Enterprise PR (has the screenshots): https://github.com/gravitational/teleport.e/pull/1081

Moved some integration logic from enterprise to here since the integration resource is supported for both enterprise and OS.

This integration feature is off until some backend work has been done

part of #22129

Comment thread web/packages/teleport/src/Integrations/IntegrationList.tsx Outdated
Comment thread web/packages/teleport/src/services/integrations/types.ts
Comment thread web/packages/teleport/src/Integrations/IntegrationList.tsx Outdated
Comment thread web/packages/teleport/src/Integrations/Integrations.tsx Outdated
Comment thread web/packages/teleport/src/features.tsx
@kimlisa kimlisa requested review from ryanclark and removed request for gzdunek and ravicious April 5, 2023 18:13
Copy link
Copy Markdown
Contributor

@ibeckermayer ibeckermayer left a comment

Choose a reason for hiding this comment

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

Code LGTM.

This integration feature is off until some backend work has been done

I understand that some things are a WIP here, but is this shippable code? As in, are there components that are essentially broken until the backend work gets done?

@kimlisa
Copy link
Copy Markdown
Contributor Author

kimlisa commented Apr 6, 2023

are there components that are essentially broken until the backend work gets done?

kind of, the api path to get integrations is not implemented in the back yet (draft PR is up though) so you'll get 404 if you try to hit this path.

I understand that some things are a WIP here, but is this shippable code?

yes, i think the current state is ok, this feature is disabled in the front, and the rbac rule for integration does not exist yet in the backend either, so you can't turn it on unless you change the code somehow.

@kimlisa
Copy link
Copy Markdown
Contributor Author

kimlisa commented Apr 6, 2023

@ibeckermayer @ryanclark here is the backend PR that is being reviewed atm: #24145, b/c this PR is now active, my PR won't get merged until that PR gets merged

as a result i had to make some changes which is addressed here: a8d2d30

@kimlisa kimlisa requested a review from ibeckermayer April 11, 2023 01:33
case 'Bot not invited to channel':
return Status.Warning;
}
return;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
return;

@kimlisa kimlisa enabled auto-merge April 11, 2023 17:36
@kimlisa kimlisa added this pull request to the merge queue Apr 11, 2023
Merged via the queue into master with commit 4597ee5 Apr 11, 2023
@kimlisa kimlisa deleted the lisa/add-integrations branch April 11, 2023 17:59
justinas pushed a commit that referenced this pull request Apr 14, 2023
* Move icons to design pkg to share between packages

* Moved integration routes from enterprise

* Add integrations ACL to user context

Also fixes inaccurate plugin perm checking for features.
Plugin "create" is moved to new feature flag "enrollIntegrations".

* Moved feature definition from enterprise

* Add integration service and types

Also moved Plugin type from enterprise

* Create add integration button comp for use in both OS/enterprise

* Move integration list from enteprise (refactored)

* Create open source integrations comp

* Update user.test

* Address CRs

* Make updates in response to backend PR updates

* Add clarifying comment

* Remove return value, export integration list
justinas added a commit that referenced this pull request Apr 14, 2023
* Hosted plugins: add plugin management UI prerequisites (#22831)

* Add GetType() to Plugin

* Add Plugins feature flag to web

* Run prettier

* Update e_imports.go with slack plugin subpackage

Respective enterprise changes imports a new subpackage,
which pulls new dependencies.

* Hosted plugins onboarding prerequisites (#23234)

* Respect route exactness in TopNav

* Allow submitting CSRF token via form

* Skip "safe" methods in CSRF checks

* Export getXCSRFToken

* Add WithAuth2

* Passthrough "name" of FieldInput

Allows it to be used in an actual form

* icomoon: add hashtag icon

* Add GetAvailablePluginTypes to PluginService proto

* Expose ProxyPublicAddr

For use in Enterprise web Plugin

* Run prettier

* Factor out app.MetaRedirect

* Rename: WithAuth2 -> WithAuthCookieAndCSRF

* Run GCI

* Renegerate protos

* WebDiscover: Add OS integrations page (#24108)

* Move icons to design pkg to share between packages

* Moved integration routes from enterprise

* Add integrations ACL to user context

Also fixes inaccurate plugin perm checking for features.
Plugin "create" is moved to new feature flag "enrollIntegrations".

* Moved feature definition from enterprise

* Add integration service and types

Also moved Plugin type from enterprise

* Create add integration button comp for use in both OS/enterprise

* Move integration list from enteprise (refactored)

* Create open source integrations comp

* Update user.test

* Address CRs

* Make updates in response to backend PR updates

* Add clarifying comment

* Remove return value, export integration list

* WebDiscover: Add open source integrations enrollment page (#24399)

* Create a shareable tooltip no permission badge comp

* Implement the open source enroll integration screen

Copied over tile styling and header description with
minor refactoring from enterprise

* Add integration feature

This feature is manually disabled.
The user ACL for this screen is manually
set to always return false.

* Remove testing implementation detail?

* Make open source check for only integration resource access

* Update snapshot

* Plugin UX improvement prerequisites (#24436)

* Add new assets for integration enroll flow

* Adapt integration status after switch to enum

* Prettier

* Fix some lints

* Rename enum numbers according to conventions

---------

Co-authored-by: Lisa Kim <lisa@goteleport.com>
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.

3 participants