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

Controlled access to /announcements route path #104

Open
sharadpattanshetti opened this issue Mar 2, 2023 · 2 comments
Open

Controlled access to /announcements route path #104

sharadpattanshetti opened this issue Mar 2, 2023 · 2 comments

Comments

@sharadpattanshetti
Copy link

Hi,
We are trying to integrate this plugin with our backstage announcement. WE want to keep the access to /announcements route path limited to only certain team (kind:group).
Has anyone tried this or any suggestion on how this can be achieved?

@DanKreck
Copy link

DanKreck commented Mar 8, 2023

The easiest way to do this is to create a permission policy to check if the user belongs to that group. This plugin makes it available via announcementCreatePermission, announcementDeletePermission, and announcementUpdatePermission. This would allow everyone to see the announcements but only your defined group would see the edit, delete, and create buttons. Navigating to announcement/create would return a 404.

@sharadpattanshetti
Copy link
Author

sharadpattanshetti commented Mar 12, 2023

Sure @DanKreck I will try it out. However, I am able to integrate and get plugin working in my local backstage instance but when I deploy it to our Kubernetes cluster it throws below error. Also, the application fails to come up.
Any hints or suggestions on what could be wrong? (we are on backstage v1.10)

stderr F /usr/share/nginx/html/static/module-k-phoen.a0ce6ac3.js: No such file or directory

Other Errors in log are:

stdout F {"level":"warn","message":"Task worker failed unexpectedly, attempt number 2, Error: connect ECONNREFUSED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants