Emit audit event for agent creation and deletion
This change set emits two new audit events: one when a new cluster agent is created and one when a cluster agent is deleted or attempts of the two. Closes https://gitlab.com/gitlab-org/gitlab/-/issues/462749 Changelog: added Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/462749 EE: true MR: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/159593
显示
- app/graphql/mutations/clusters/agents/create.rb 1 个添加, 1 个删除app/graphql/mutations/clusters/agents/create.rb
- app/graphql/mutations/clusters/agents/delete.rb 2 个添加, 2 个删除app/graphql/mutations/clusters/agents/delete.rb
- app/services/clusters/agents/create_service.rb 9 个添加, 5 个删除app/services/clusters/agents/create_service.rb
- app/services/clusters/agents/delete_service.rb 5 个添加, 1 个删除app/services/clusters/agents/delete_service.rb
- doc/user/compliance/audit_event_types.md 4 个添加, 0 个删除doc/user/compliance/audit_event_types.md
- ee/app/services/ee/clusters/agents/create_service.rb 48 个添加, 0 个删除ee/app/services/ee/clusters/agents/create_service.rb
- ee/app/services/ee/clusters/agents/delete_service.rb 50 个添加, 0 个删除ee/app/services/ee/clusters/agents/delete_service.rb
- ee/config/audit_events/types/cluster_agent_create_failed.yml 10 个添加, 0 个删除ee/config/audit_events/types/cluster_agent_create_failed.yml
- ee/config/audit_events/types/cluster_agent_created.yml 10 个添加, 0 个删除ee/config/audit_events/types/cluster_agent_created.yml
- ee/config/audit_events/types/cluster_agent_delete_failed.yml 10 个添加, 0 个删除ee/config/audit_events/types/cluster_agent_delete_failed.yml
- ee/config/audit_events/types/cluster_agent_deleted.yml 10 个添加, 0 个删除ee/config/audit_events/types/cluster_agent_deleted.yml
- ee/spec/services/clusters/agents/create_service_audit_log_spec.rb 68 个添加, 0 个删除...services/clusters/agents/create_service_audit_log_spec.rb
- ee/spec/services/clusters/agents/delete_service_audit_log_spec.rb 70 个添加, 0 个删除...services/clusters/agents/delete_service_audit_log_spec.rb
- lib/api/clusters/agents.rb 6 个添加, 2 个删除lib/api/clusters/agents.rb
- spec/services/clusters/agents/create_service_spec.rb 23 个添加, 16 个删除spec/services/clusters/agents/create_service_spec.rb
- spec/services/clusters/agents/delete_service_spec.rb 5 个添加, 3 个删除spec/services/clusters/agents/delete_service_spec.rb
加载中
想要评论请 注册 或 登录