{"id":18555696,"url":"https://github.com/infinitybotlist/kittycat","last_synced_at":"2025-04-30T18:23:56.351Z","repository":{"id":213281097,"uuid":"733317479","full_name":"InfinityBotList/kittycat","owner":"InfinityBotList","description":"Kittycat Permission system for IBL","archived":false,"fork":false,"pushed_at":"2025-01-11T20:32:25.000Z","size":278,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T18:04:27.036Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/InfinityBotList.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-19T03:55:28.000Z","updated_at":"2025-01-11T20:32:28.000Z","dependencies_parsed_at":"2024-11-06T21:33:31.672Z","dependency_job_id":null,"html_url":"https://github.com/InfinityBotList/kittycat","commit_stats":null,"previous_names":["infinitybotlist/kittycat"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfinityBotList%2Fkittycat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfinityBotList%2Fkittycat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfinityBotList%2Fkittycat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InfinityBotList%2Fkittycat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InfinityBotList","download_url":"https://codeload.github.com/InfinityBotList/kittycat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251219823,"owners_count":21554455,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T21:27:37.457Z","updated_at":"2025-04-30T18:23:56.310Z","avatar_url":"https://github.com/InfinityBotList.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Structure\n\nA permission is defined as the following structure\n\n`namespace.permission`\n\nIf a user has the \\* permission, they will have all permissions in that namespace\nIf namespace is global then only the permission is checked. E.g. global.view allows using the view permission in all namespaces\n\nIf a permission has no namespace, it will be assumed to be global\n\nIf a permission has ~ in the beginning of its namespace, it is a negator permission that removes that specific permission from the user\n\nNegators work to negate a specific permission _excluding the global._ permission* (for now, until this gets a bit more refined to not need a global.* special case)\n\nAnything past the \u003cnamespace\u003e.\u003cpermission\u003e may be ignored or indexed at the discretion of the implementation and is _undefined behaviour_\n\n# Permission Overrides\n\nPermission overrides are a special case of permissions that are used to override permissions for a specific user.\nThey use the same structure and follow the same rules as a normal permission, but are stored separately from the normal permissions.\n\n# Special Cases\n\n- Special case: If a \\* element exists for a smaller index, then the negator must be ignored. E.g. manager has ~rpc.PremiumAdd but head_manager has no such negator\n\n# Clearing Permissions\n\nIn some cases, it may desired to start from a fresh slate of permissions. To do this, add a '@clear' permission to the namespace. All permissions after this on that namespace will be cleared\n\n# Permission Management\n\nA permission can be added/managed by a user to a position if the following applies:\n\n- The user must _have_ the permission themselves. If the permission is a negator, then the user must have the 'base' permission (permission without the negator operator)\n- If the permission is `*`, then the user has no negators in that namespace that the target perm set would not also have\n\nNote on point 2: this means that if a user is trying to add/remove `rpc.*` but also has `~rpc.test`, then they cannot add `rpc.*` unless the target user also has `~rpc.test`\n\n## Supported Languages\n\n- rust\n- go\n- typescript\n- python\n- C (WIP, does not work yet)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinitybotlist%2Fkittycat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfinitybotlist%2Fkittycat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfinitybotlist%2Fkittycat/lists"}