Add DB models to store relationships between Security Policy Repository and Projects
Why are we doing this work
As mentioned in &4598 (comment 491595129) (1A) we want to implement MVC using GitLab repositories to store security policies. We need to be able to assign project with repository for security policies with selected project on which we want to apply policies. We also want to have model that will help us with scheduling and executing actions defined in policies. This issue is addressing these needs.
Relevant links
Non-functional requirements
- [-] Documentation: No need for documentation
- [-] Feature flag: No need to have feature flag used for these models
- [-] Performance: No need for additional performance testing
- [-] Testing: No need for additional testing, unit tests only
Implementation plan
-
backend Add model to store relationship between Project
andSecurity Orchestration Policy Project
(SecurityOrchestrationPolicyConfiguration
):-
Ensure that foreign keys and indexes are properly set (when you remove security_policy_management_project, SecurityOrchestrationPolicyConfiguration
should also be removed),
-
- ~~[ ] backend Add model to store
SecurityOrchestrationPolicyRuleSchedule
- information about scheduled policy~~
Edited by Alan (Maciej) Paruszewski