DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • AWS Serverless Data Lake: Built Real-time Using Apache Hudi, AWS Glue, and Kinesis Stream
  • Building Data Pipelines: Here's What Palantir Foundry Did That Surprised Me.
  • Why SAP S/4HANA Landscape Design Impacts Cloud TCO More Than Compute Costs
  • Cost Is a Distributed Systems Bug

Trending

  • My Dive into Local LLMs, Part 1: From Alexa Curiosity to Homegrown AI
  • A Beginner's Guide to Test Automation in Software Development
  • The Window Closes: Why I Switched to Kotlin Before the Codebase Got Too Big
  • Identity Federation and SSO: The Fundamentals

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

  1. DZone
  2. Software Design and Architecture
  3. Cloud Architecture
  4. Using Server-Side Encrypt Data AWS KMS to Integrate With Mule-4 AWS-S3 Connector

Using Server-Side Encrypt Data AWS KMS to Integrate With Mule-4 AWS-S3 Connector

This article demonstrates how to use server-side encrypt data AWS KMS in order to integrate data with Mule-4 AWS-S3 Connector.

By 
Sadik Ali
·
Jan. 16, 21 · Tutorial
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
8.1K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

Purpose

To Demonstrate MuleSoft integration with S3 Bucket with enabled KMS (Server Side Encryption).

Table of Contents

  • What is AWS KMS?
  • Key Rotation; AWS configuration for KMS and S3 Bucket.
  • Mule 4 connector configuration.
  • Tutorial video.

Scenarios

  • Publish data to the S3 bucket while the bucket is enabled with server-side encryption.
  • Publish data to the S3 bucket as the bucket is disabled with server-side encryption.

What Is AWS KMS?

AWS Key Management Service (AWS KMS) is a regulated service that makes it easy to produce and manage the encryption keys utilized to encrypt data.

AWS Key Management Service process graphic.

It starts with the plain text and then uses data keys along with an algorithm to come up with encrypted data. Encrypted data is finally stored in a storage that can be anything(eg: S3, etc.). KMS then takes the key, encrypts it with a master key along with an encryption algorithm, which results in an encrypted key that is stored alongside data.

Key Rotation; AWS Configuration for KMS and S3 Bucket

  • AWS managed CMKs. You cannot manage key rotation for AWS managed CMKs. AWS KMS automatically rotates AWS managed keys every three years (1095 days).
  • When you enable automatic key rotation, AWS KMS rotates the CMK 365 days after the enable date and every 365 days thereafter.

Characteristics 

  • KMS stores Customer Master Keys(CMK), which is a logical depiction of a key.
  • Key can be produced by KMS or imported.
  • The encrypted data keys are stored with the data.
  • CMK never moves KMS and never leaves a region.
  • CMK can encrypt or decrypt data up to 4KB in size.

Resource

Default Limit

Applies

Customer Master Keys (CMS)

1000

Customer Managed CMKs

Aliases

1100

Customer created alias

Key policy document size

32 KB (32,768 bytes)

Customer managed CMKs

AWS managed CMKS

Grats per CMK

2500

Customer managed CMKs

Grants for a given principle per CMK

500

Customer managed CMKs

AWS managed CMKS

Mule 4 Connector Configuration

Anypoint Connector for Amazon S3 (Amazon S3 Connector) implements connectivity to the Amazon S3 API, allowing you to interface with Amazon S3 to store objects, download and manage data with other AWS services, and develop applications that demand internet storage.

Anypoint Connector for Amazon S3 screenshot.

Create Customer Managed Key With Symmetric

KMS screenshot.Create AWS S3 Bucket (Server-Side Encryption Enabled)

AWS S3 Bucket screenshot.

       AWS S3 Bucket screenshot continued.

Create AWS S3 Bucket (Server-Side Encryption disabled)Without KMS Key screenshot.

  • MuleSoft 4 AWS S3 Connector configuration
    • Request with KMS Key        
    Request with KMS Key screenshot.
  • Request without KMS Key     

Request without KMS Key screenshot.


Data Uploaded in AWS S3 Bucket 

Data Uploaded in AWS S3 Bucket screenshot.

Tutorial Video


AWS Data (computing) Connector (mathematics)

Opinions expressed by DZone contributors are their own.

Related

  • AWS Serverless Data Lake: Built Real-time Using Apache Hudi, AWS Glue, and Kinesis Stream
  • Building Data Pipelines: Here's What Palantir Foundry Did That Surprised Me.
  • Why SAP S/4HANA Landscape Design Impacts Cloud TCO More Than Compute Costs
  • Cost Is a Distributed Systems Bug

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook