Repository navigation
Conversation
…inks, RBAC resource
…es against the user's current profile
…keep user counts on one line
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…ers have no profile
…user edits and mixed bulk selections
… the subscription page
…e and keep loading profiles saved before the stricter checks
…before stricter checks
… parameter limit on large selections
…dmin subscription endpoint
…ure and add an all-types query
…on assign, and the administrator role grant
…-all on users.update, refresh the template list and polish the profile dialog - profile form rejects non latin-1 header values except profile-title and announce - remove from all users needs users.update; with scope own the prompt has no panel-wide count - the confirm dialog stays open until the request succeeds - profile dialog: no stale template list, draft reset on close, input length caps, aria labels - ClientProfileSelect passes FormControl id and aria attributes to its trigger - getApiErrorDetail moved to utils/error-utils
Rerowros
marked this pull request as draft
October 25, 2026 21:00
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds client profiles: a named set of subscription settings that you assign to users, similar to Remnawave's external squads. A reseller or a premium plan can get its own templates, title, support link, headers and variables without a separate admin account.
A profile holds:
Any field left empty is inherited from the global settings.
users.client_profile_idanduser_templates.client_profile_id(nullable,ON DELETE SET NULL). Users created from a template inherit it. Migrationd1f3a5c7e9b2.API:
/api/client_profile;POST|DELETE /api/client_profile/{id}/users;client_profiles.Subscriptions resolve settings in this order:
Profiles are cached and invalidated over NATS like other entities.
Dashboard:
Users without a profile get exactly the same subscription as before.
Part of splitting #759 into focused PRs.
Type of change
Checklist
Testing
By hand on a local panel: I created two profiles and assigned them from the user dialog and with the bulk action. The subscription title, headers, update interval and template changed accordingly.
Screenshots
Will add in a comment.
Notes for reviewers
client_profilespermissions for both the new and the current profile.hosts-groupbranch goes further in that direction, so this PR only adds the external side.share.py,client_templates.py,config_cache.py,operation/subscription.py). I keep a branch with both merged and all tests passing (Rerowros:feat/remnawave-parity), so whichever PR lands second gets a ready rebase.c8d2e4f6a1b3. If another PR in this series lands first, a merge revision will be needed.