Skip to content

GraphQL API for updating audit event streaming amazon_s3_configurations

What does this MR do and why?

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Visit GraphiQL explorer https://gdk.test:3000/-/graphql-explorer
  2. Run the following mutation to create a new AuditEvents::AmazonS3Configuration and note the ID.
mutation createAmazonS3Configuration {
  amazonS3ConfigurationCreate(
    input: {groupPath: "twitter", awsRegion: "us-east-1", accessKeyXid: "AKIA1231dsdsdsdsds23", secretAccessKey: "TOPSECRET", bucketName: "TEST"}
  ) {
    amazonS3Configuration {
      id
      name
      accessKeyXid
      bucketName
      awsRegion
    }
    errors
  }
}
  1. Run the following mutation to update the above created configuration
mutation updateAmazonS3Configuration {
  amazonS3ConfigurationUpdate(
    input: {id: "gid://gitlab/AuditEvents::AmazonS3Configuration/12", secretAccessKey: "UPDATEDSECRETACCESS", bucketName: "aws"}
  ) {
    errors
    amazonS3Configuration {
      id
      name
      accessKeyXid
      awsRegion
      bucketName
    }
  }
}

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 #423229 (closed)

Merge request reports