Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored permission service for project to have project operation type validation #2979

Merged
merged 4 commits into from
Jan 14, 2025

Conversation

akhilmhdh
Copy link
Member

Description 📣

Previously, we used to check a project operation is correctly for the respective project type using an additional ForbidOnInvalidProject function from permission service. The issue with this approach is folks may forget to add it. Thus refactoring the permission functiion to accept an object with all keys and operation type key. Global key means an operation that can be made against any type.

Type ✨

  • Bug fix
  • New feature
  • Improvement
  • Breaking change
  • Documentation

Tests 🛠️

# Here's some code block to paste some code snippets

@akhilmhdh akhilmhdh requested a review from maidul98 January 13, 2025 07:01
Copy link
Collaborator

@maidul98 maidul98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor comments

@akhilmhdh akhilmhdh force-pushed the refactor/permission-service-fn branch from b81eea3 to 6f38d6c Compare January 14, 2025 17:57
@akhilmhdh akhilmhdh merged commit 6ee446e into Infisical:main Jan 14, 2025
6 checks passed
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.

2 participants