Skip to content

feat: implement batch permission management APIs#8

Open
devin-ai-integration[bot] wants to merge 13 commits intomasterfrom
devin/1746953767-batch-permission-apis
Open

feat: implement batch permission management APIs#8
devin-ai-integration[bot] wants to merge 13 commits intomasterfrom
devin/1746953767-batch-permission-apis

Conversation

@devin-ai-integration
Copy link
Copy Markdown

Batch Permission Management APIs for Apollo Config Service

This PR implements batch permission management APIs for the Apollo Config Service, enabling automated permission management and synchronization with internal company applications.

Features

  • Batch operations for adding/removing users to/from roles at different levels:
    • Application level
    • Namespace level
    • Environment-specific namespace level
    • Cluster-specific namespace level
  • Rate limiting to prevent API abuse
  • Audit logging for all permission changes (similar to UI changes)
  • Reuse of existing permission types (project owner and super admin)

Implementation Details

  • Added BatchUserRequestDTO for batch user operations
  • Implemented RateLimiter service to prevent API abuse
  • Updated PortalConfig to add permission API rate limit configuration
  • Implemented BatchPermissionController with batch operations for managing user permissions
  • Added comprehensive unit tests

Testing

  • Unit tests for all controller methods
  • Tests for rate limiting functionality
  • Tests for validation and error handling

Link to Devin run

https://app.devin.ai/sessions/1a196651fc6c485e8ddd0784e3aedc5d

Requested by

Jason Song (nobodyiam@gmail.com)

devin-ai-integration bot and others added 2 commits May 11, 2025 08:59
…sion management and synchronization

Co-Authored-By: Jason Song <nobodyiam@gmail.com>
Co-Authored-By: Jason Song <nobodyiam@gmail.com>
@devin-ai-integration
Copy link
Copy Markdown
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

devin-ai-integration bot and others added 11 commits May 11, 2025 09:04
Co-Authored-By: Jason Song <nobodyiam@gmail.com>
Co-Authored-By: Jason Song <nobodyiam@gmail.com>
Co-Authored-By: Jason Song <nobodyiam@gmail.com>
Co-Authored-By: Jason Song <nobodyiam@gmail.com>
…te limiter

Co-Authored-By: Jason Song <nobodyiam@gmail.com>
…n definition conflict

Co-Authored-By: Jason Song <nobodyiam@gmail.com>
…lass

Co-Authored-By: Jason Song <nobodyiam@gmail.com>
Co-Authored-By: Jason Song <nobodyiam@gmail.com>
…dator

Co-Authored-By: Jason Song <nobodyiam@gmail.com>
…erPermissionValidator

Co-Authored-By: Jason Song <nobodyiam@gmail.com>
Co-Authored-By: Jason Song <nobodyiam@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants