Giter VIP home page Giter VIP logo

serverless-kms-key-rotator's Introduction

Serverless KMS Key Rotator

This script helps you to rotate your CMK(Customer Master Key)

  1. Create S3 Bucket

  2. Create Custom Master Key(CMK) in KMS

    We will use this key exclusively for S3 usage

  3. Upload Object to S3 - GUI

    Use the AES-256 Encryption while uploading

  4. Upload Object to S3 - CLI with SSE header

    Set the upload header x-amz-server-side​-encryption and do not specify the key id, forcing S3 to use the default key

    Ref: Server-Side-Encryption-Specific Request Headers

  5. Upload Object to S3 - CLI with AWS KMS - CMK ID

    PUT /example-object HTTP/1.1
    Host: example-bucket.s3.amazonaws.com   
    Accept: */*   
    Authorization:authorization string   
    Date: Wed, 28 May 2014 19:31:11 +0000   
    x-amz-server-side-encryption-customer-key:g0lCfA3Dv40jZz5SQJ1ZukLRFqtI5WorC/8SEEXAMPLE   
    x-amz-server-side-encryption-customer-key-MD5:ZjQrne1X/iTcskbY2example   
    x-amz-server-side-encryption-customer-algorithm:AES256
    
  6. Disable & Delete CMK

    Download the objects encrypted

serverless-kms-key-rotator's People

Contributors

miztiik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.