Skip to content

Google cloud logging configuration create api

Harsimar Sandhu requested to merge 409422-google-cloud-logging-create-api into master

What does this MR do and why?

Describe in detail what your merge request does and why.

Google cloud logging configuration create api

This commit implements GraphQL api to create google cloud logging configurations

EE: true Changelog: added

How to set up and validate locally

  1. Run below GraphQL mutation
mutation createGoogleCloudLoggingConfiguration {
  googleCloudLoggingConfigurationCreate(
    input: {
      groupPath: "GROUP_PATH", 
      googleProjectIdName: "testing-id", 
      logIdName: "somelogId", 
      clientEmail: "test@example.com", 
      privateKey: "someencryptedkey"}
  ) {
    googleCloudLoggingConfiguration {
      id
      googleProjectIdName
      logIdName
      privateKey
      clientEmail
    },
    errors,
  }
}
  1. Check in database AuditEvents::GoogleCloudLoggingConfiguration is created with correct values and mutation response also contain correct values.
  2. Now retry the mutation, you should get uniqueness violation error.
  3. When you don't pass logIdName, default logIdName audit_events should be returned in created config.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #409422 (closed)

Edited by Harsimar Sandhu

Merge request reports