Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore: display warnings on app share failure #9783

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

Merged
merged 6 commits into from
Sep 19, 2023

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Sep 19, 2023

Warnings only appear if the template is trying to do something the deployment has disabled. So it does leak the existance of an app, but only if the app is misconfigured. So this should be ok??

  • A path based app is trying to be shared at some level other than "owner", but path based app sharing is diabled.
  • A "owner" site role (site wide admin) is trying to access an app they cannot access with owner role app override disabled. Owners can access the apps from a RBAC perspective, but are denied in Golang from the deployment flag. So leaking this app info is ok.

Closes: #9016

How it looks

We can improve styling later. @BrunoQuaresma

Screenshot from 2023-09-19 12-21-54

With 1 warning

Screenshot from 2023-09-19 12-29-31

No warnings looks the same as before.

Warnings only appear if the app is misconfigured to the deployment
@matifali
Copy link
Member

Can we also link the docs pages to the required flags?

@Emyrk
Copy link
Member Author

Emyrk commented Sep 19, 2023

Can we also link the docs pages to the required flags?

If I do that, I need to format the warnings in some way to include links. I do not want to pass HTML and render it. So passing a link requires some more infrastructure 😢

@matifali matifali changed the title chore: add warnings to app share failure chore: display warnings on app share failure Sep 19, 2023
@Emyrk Emyrk enabled auto-merge (squash) September 19, 2023 21:48
@Emyrk Emyrk merged commit a18bf73 into main Sep 19, 2023
@Emyrk Emyrk deleted the stevenmasley/wsproxy_app_share_warnings branch September 19, 2023 21:54
@github-actions github-actions bot locked and limited conversation to collaborators Sep 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

coder app share=authenticated "Application Not Found"
3 participants