Conan: Server write persmissions order matter

Created on 21 Aug 2017  路  4Comments  路  Source: conan-io/conan

If I set the permissions in this order:

[write_permissions]
*/*@*/*: obogdan
*/*@myteam/*: jenkins

I get a permission denied error for the jenkins user.

However, if I set the permissions in this order:

[write_permissions]
*/*/myteam/*: jenkins
*/*@*/*: obogdan

the jenkins user can upload normally.

question

Most helpful comment

Done: #1638

All 4 comments

Also, I've just noticed, with the second order, I get a permission denied for the user obogdan.

But if I also specify the user obogdan on the first line, all permissions are ok.

[write_permissions]
*/*/myteam/*: jenkins, obogdan
*/*@*/*: obogdan

Conan search for a matching package name expression in order, so as */*@*/* match any reference, it will use that rule. So yes, the order matters. Specify first the more specific references, then the more general.

This should be clarified in the server.conf comments. I'll make a PR.

Done: #1638

Was this page helpful?
0 / 5 - 0 ratings