Skip to content

Add RoleEditorVisualizer to Role Editor#53535

Merged
avatus merged 1 commit intomasterfrom
avatus/access_graph_demo_frontend
Apr 2, 2025
Merged

Add RoleEditorVisualizer to Role Editor#53535
avatus merged 1 commit intomasterfrom
avatus/access_graph_demo_frontend

Conversation

@avatus
Copy link
Contributor

@avatus avatus commented Mar 28, 2025

This component is used to contain and display the state of the role diff visualizer to include demo mode. Its either a policy placehodler (with the preview button), in a state of creating the graph (when enabling demo mode), or the role diff visualizer (with optional demo mode banner).

the hook (in the e part of this PR) is kinda complex but rather than throwing around 4 different attempts, i decided to amalgamate all of them into a RoleDiffState enum. because really, it can only be in one state at once determined by the combinatorics of the attempts.

requires #53371 and https://github.com/gravitational/teleport.e/pull/6231

@avatus avatus requested review from bl-nero and ryanclark March 28, 2025 14:20
@avatus avatus added the no-changelog Indicates that a PR does not require a changelog entry label Mar 28, 2025
Copy link
Contributor

@bl-nero bl-nero 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 of issues:

  1. Can you attach some screenshots?
  2. I think something is broken, since after checking this and the corresponding Enterprise branches, I'm unable to view Access Graph on my setup, while I can do it on my master branch. I'd like to understand whether my setup doesn't reflect the reality, or if there's some valid corner case that slipped through here.

@avatus
Copy link
Contributor Author

avatus commented Mar 31, 2025

Did you checkout the backend changes and build/run with those too?

@avatus
Copy link
Contributor Author

avatus commented Mar 31, 2025

I'd like to understand whether my setup doesn't reflect the reality

ill double check some corner cases. im guessing your setup has policy enabled (via license and config file) so you should have it "just work", and if not, then yeah something is borked!

ill inspect today, appreciate it 🙏

@avatus avatus force-pushed the avatus/access_graph_demo_frontend branch from 9aae8e1 to b47ef2c Compare March 31, 2025 21:53
@avatus avatus requested a review from bl-nero March 31, 2025 22:51
@avatus avatus force-pushed the avatus/access_graph_demo branch from aa6ec7c to b923804 Compare April 1, 2025 15:09
Base automatically changed from avatus/access_graph_demo to master April 1, 2025 15:48
@avatus avatus force-pushed the avatus/access_graph_demo_frontend branch from b47ef2c to da10ab5 Compare April 1, 2025 19:24
@avatus avatus changed the title Add RoleEditorAdapterCompanion to Role Editor Add RoleEditorVisualizer to Role Editor Apr 1, 2025
@avatus
Copy link
Contributor Author

avatus commented Apr 1, 2025

friendly ping when available @ryanclark @bl-nero

@bl-nero
Copy link
Contributor

bl-nero commented Apr 1, 2025

(For the record: it turned out that I had an incorrect branch checked out on e/; everything works here.)

@avatus avatus added this pull request to the merge queue Apr 2, 2025
Merged via the queue into master with commit 839d3e3 Apr 2, 2025
41 checks passed
@avatus avatus deleted the avatus/access_graph_demo_frontend branch April 2, 2025 16:15
avatus added a commit that referenced this pull request Apr 24, 2025
avatus added a commit that referenced this pull request Apr 29, 2025
github-merge-queue bot pushed a commit that referenced this pull request Apr 29, 2025
* Add DemoMode and Status to AccessGraphSettings

* Add RoleEditorVisualizer to Role Editor (#53535)

* Allow cloud to update access graph settings (#53800)

* Move demo mode check to RoleEditor (#53961)

* Add optional chaining to demo mode check in RoleEditor (#53969)

* Update proxy AccessGraphSettings permissions (#54009)

This allows proxy to Read AccessGraphSettings, as well as prevents the
"Preview Identity Security" button from showing up if the user does not
have access to update access graph settings

* Add AccessGraphDemoMode entitlement

* Add DemoMode entitlement to Identity Security Preview button (#54300)

This adds one extra conditional to display the access graph demo button.
The user must also have the entitlement enabled. This is already checked
when enabling demo mode in the backend, but with this frontend check we
will hide the button if the request was going to fail anyway.
github-merge-queue bot pushed a commit that referenced this pull request Apr 29, 2025
* Add DemoMode and Status to AccessGraphSettings

* Add RoleEditorVisualizer to Role Editor (#53535)

* Allow cloud to update access graph settings (#53800)

* Move demo mode check to RoleEditor (#53961)

* Add optional chaining to demo mode check in RoleEditor (#53969)

* Update proxy AccessGraphSettings permissions (#54009)

This allows proxy to Read AccessGraphSettings, as well as prevents the
"Preview Identity Security" button from showing up if the user does not
have access to update access graph settings

* Add AccessGraphDemoMode entitlement

* Add DemoMode entitlement to Identity Security Preview button (#54300)

This adds one extra conditional to display the access graph demo button.
The user must also have the entitlement enabled. This is already checked
when enabling demo mode in the backend, but with this frontend check we
will hide the button if the request was going to fail anyway.
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/md ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments