[PR #6] [MERGED] v1.11 Improve permission management #11472

Closed
opened 2026-05-12 21:44:17 -05:00 by GiteaMirror · 0 comments
Owner

📋 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: mainHead: 1.11


📝 Commits (10+)

  • 3ccab9c add "all permissions" feature on user and user group schema
  • 8a324c7 prepare support for group all
  • a9c5125 implement user.all and user_group.all for broad base permissioning
  • cab2241 clean up unused deps
  • 57d1889 sync support user group permissions regex
  • 76b27c3 1.11
  • 0195e29 fix fe ? issue
  • f68b32e this doesn't work
  • 7925cc4 sync handle user group all set
  • 42bd6f8 retain 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.

## 📋 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>
GiteaMirror added the pull-request label 2026-05-12 21:44:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/komodo#11472