Configure base permissions on all resources of a specific type (Read on all servers, Execute on all builds, etc.)
- Supported for both users and user groups
UserGroups declared in ResourceSync can now use regex to match against many resources for permissioning
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/moghtech/komodo/pull/6
**Author:** [@mbecker20](https://github.com/mbecker20)
**Created:** 7/19/2024
**Status:** ✅ Merged
**Merged:** 7/19/2024
**Merged by:** [@mbecker20](https://github.com/mbecker20)
**Base:** `main` ← **Head:** `1.11`
---
### 📝 Commits (10+)
- [`3ccab9c`](https://github.com/moghtech/komodo/commit/3ccab9c7a804aeebae0be164c33104affcdb173d) add "all permissions" feature on user and user group schema
- [`8a324c7`](https://github.com/moghtech/komodo/commit/8a324c78e130e875e0843194622160dd0dba6f3a) prepare support for group all
- [`a9c5125`](https://github.com/moghtech/komodo/commit/a9c51254241a772d4eb7837ce5b55f548c504027) implement user.all and user_group.all for broad base permissioning
- [`cab2241`](https://github.com/moghtech/komodo/commit/cab224126b0ced1e443e9eec02810ace247b3a6a) clean up unused deps
- [`57d1889`](https://github.com/moghtech/komodo/commit/57d188984265004d136bff92de76716189e3c770) sync support user group permissions regex
- [`76b27c3`](https://github.com/moghtech/komodo/commit/76b27c314ccbfd7f514941f71168448350f93528) 1.11
- [`0195e29`](https://github.com/moghtech/komodo/commit/0195e29c5fdcbeccf696708b358a130005dba1bf) fix fe ? issue
- [`f68b32e`](https://github.com/moghtech/komodo/commit/f68b32e8a5d5c0801186a8591dc09d10f9670e15) this doesn't work
- [`7925cc4`](https://github.com/moghtech/komodo/commit/7925cc43835b1253e9ca02d35529e80f8f090fcd) sync handle user group all set
- [`42bd6f8`](https://github.com/moghtech/komodo/commit/42bd6f8498f30112dea3ac31b4efdb22ce5f1323) retain above non earlier
### 📊 Changes
**45 files changed** (+1244 additions, -390 deletions)
<details>
<summary>View changed files</summary>
📝 `Cargo.lock` (+14 -13)
📝 `Cargo.toml` (+3 -2)
📝 `bin/core/Cargo.toml` (+1 -0)
📝 `bin/core/src/api/read/alert.rs` (+5 -5)
📝 `bin/core/src/api/read/alerter.rs` (+13 -20)
📝 `bin/core/src/api/read/builder.rs` (+14 -18)
📝 `bin/core/src/api/read/mod.rs` (+1 -0)
📝 `bin/core/src/api/read/permission.rs` (+1 -1)
📝 `bin/core/src/api/read/server_template.rs` (+13 -19)
📝 `bin/core/src/api/read/toml.rs` (+1 -0)
📝 `bin/core/src/api/read/update.rs` (+101 -35)
📝 `bin/core/src/api/read/user.rs` (+26 -10)
📝 `bin/core/src/api/user.rs` (+16 -29)
📝 `bin/core/src/api/write/mod.rs` (+1 -0)
📝 `bin/core/src/api/write/permissions.rs` (+72 -2)
📝 `bin/core/src/api/write/service_user.rs` (+2 -5)
📝 `bin/core/src/api/write/user_group.rs` (+2 -1)
📝 `bin/core/src/auth/github/mod.rs` (+2 -5)
📝 `bin/core/src/auth/google/mod.rs` (+2 -5)
📝 `bin/core/src/auth/local.rs` (+2 -5)
_...and 25 more files_
</details>
### 📄 Description
- Configure base permissions on all resources of a specific type (Read on all servers, Execute on all builds, etc.)
- Supported for both users and user groups
- UserGroups declared in ResourceSync can now use regex to match against many resources for permissioning
- See [https://docs.monitor.mogh.tech/docs/sync-resources#user-group](https://docs.monitor.mogh.tech/docs/sync-resources#user-group) for example.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/moghtech/komodo/pull/6
Author: @mbecker20
Created: 7/19/2024
Status: ✅ Merged
Merged: 7/19/2024
Merged by: @mbecker20
Base:
main← Head:1.11📝 Commits (10+)
3ccab9cadd "all permissions" feature on user and user group schema8a324c7prepare support for group alla9c5125implement user.all and user_group.all for broad base permissioningcab2241clean up unused deps57d1889sync support user group permissions regex76b27c31.110195e29fix fe ? issuef68b32ethis doesn't work7925cc4sync handle user group all set42bd6f8retain above non earlier📊 Changes
45 files changed (+1244 additions, -390 deletions)
View changed files
📝
Cargo.lock(+14 -13)📝
Cargo.toml(+3 -2)📝
bin/core/Cargo.toml(+1 -0)📝
bin/core/src/api/read/alert.rs(+5 -5)📝
bin/core/src/api/read/alerter.rs(+13 -20)📝
bin/core/src/api/read/builder.rs(+14 -18)📝
bin/core/src/api/read/mod.rs(+1 -0)📝
bin/core/src/api/read/permission.rs(+1 -1)📝
bin/core/src/api/read/server_template.rs(+13 -19)📝
bin/core/src/api/read/toml.rs(+1 -0)📝
bin/core/src/api/read/update.rs(+101 -35)📝
bin/core/src/api/read/user.rs(+26 -10)📝
bin/core/src/api/user.rs(+16 -29)📝
bin/core/src/api/write/mod.rs(+1 -0)📝
bin/core/src/api/write/permissions.rs(+72 -2)📝
bin/core/src/api/write/service_user.rs(+2 -5)📝
bin/core/src/api/write/user_group.rs(+2 -1)📝
bin/core/src/auth/github/mod.rs(+2 -5)📝
bin/core/src/auth/google/mod.rs(+2 -5)📝
bin/core/src/auth/local.rs(+2 -5)...and 25 more files
📄 Description
Configure base permissions on all resources of a specific type (Read on all servers, Execute on all builds, etc.)
- Supported for both users and user groups
UserGroups declared in ResourceSync can now use regex to match against many resources for permissioning
See https://docs.monitor.mogh.tech/docs/sync-resources#user-group for example.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.