Hey <@U03RU0J84EL>, I'm sorry for this inconvenien...
# help
y
Hey @Kevin Vasko, I'm sorry for this inconvenience. It is a known issue. It wasn't prioritized yet since until now users who required repository-specific permissions haven't used the UI. The cause for this issue is that the page you are trying to view is the page that shows all the repositories, and the permission to list the installation's repositories is a global one. I will discuss with the team tomorrow whether we want to prioritize this right now. As a workaround, you can direct your users directly to a specific repository's page, using the URL:
<LAKEFS_UI_URL>/repositories/my-repo/objects
.
k
So what’s weird about this is that the page goes blank if i got to that URL
y
@Kevin Vasko, alternatively, you can give the users the ListRepositories permissions, but this will mean that they will be able to see the list of all repositories (but not browse to their content).
k
@Yoni Augarten Yewh that’s what I was doing actually but when I click on the repo it just displays a blank page
Also you can’t edit a policy haha. It says “already exists”
y
Let's do this one by one 🙂 First of all, do you get a blank page for a repository you should be able to see, or one that should be denied?
k
Let me validate. So just to make sure…i should be doing “arnlakefsfs:::repository/repo-name” where repo-name is my lakefs repo name and not the actual s3 bucket and prefix correct? I also assume I don’t need to do “arnlakefsfs:::repository/repo-name/“ or “arnlakefsfs:::repository/repo-name/*”
y
You are correct. Which action are you attaching this resource to?
k
Everything in your default FSReadWriteAll
y
Let me check
k
Yes, i get a blank page for both something i should have access to and to something I shouldn’t
y
Here is an example of how to configure the policy for operating on a specific repository. It's a bit more complex than what you mentioned.
After setting a similar policy, you should be able to browse to the repository's page.
k
Yup, that works…does it have to be broken up thst explicitly?
y
Yes, since permissions are divided by the type of resource they are relevant to, e.g. repository, branch etc.
k
ahhh
y
Regarding the "Already exists" error, it does seem to be a bug. I've opened an issue for it and will discuss with the team. https://github.com/treeverse/lakeFS/issues/4319
k
sorry for the picture but on a lab system
the above does not work which is what I was trying
👍🏻 1
Also what is “ReadConfig”
y
ReadConfig is a permission to get some information about the whole installation, required for the UI. For example, it allows the UI to retrieve the type of the storage the installation is on top of.
k
gotcha
y
Thank you for flagging these issues. Let me know if there's anything else I can help with.
k
ok so i see what you were saying so that very bottom “*” resource in that example you gave i added “fs:ListRepositories” now I can go to the main page, I see all the repos but I get a white blank screen on pages i don’t have the permissions on
y
Yes, that's a usability issue - we hope to solve it as part of the issue I mentioned above.
k
yup yup, this works