Git Product home page Git Product logo

aws-s3-artifact-manager-sample's Introduction

Security Testing Your AWS Application

This repository provides several sample unit and integration tests for a simple Java component called S3ArtifactManager. As this component's main functionality is to upload objects to Amazon S3 in a securely fashion (eg, uploaded objects are always versioned and encrypted) the main goal of the tests provided is to automatically assert the component's expected security behavior. Automated tests like these become even more important as code is refactored and/or evolved in order to make sure the expected behavior has not changed.

We hope that the set of tests provided can inspire AWS Java developers to build even richer test suites for their AWS Java components and applications, whether security-related or not.

Running the Tests

The sample code provided in this repo is part of a blog post series published in the AWS Java Blog entitled: "DevOps Meets Security - Security Testing Your AWS Application".

Please check out the post series for further details on how to run the tests as part of a CI/CD pipeline.

To run all tests locally type: mvn verify

To run unit tests only type: mvn verify -DskipIntegrationTests=true

To run integration tests only type: mvn verify -DskipUnitTests=true

You'll need Java 8 and Maven installed locally to run the tests. Also, note that in order to run the integration tests properly your AWS local default credentials must have permission to create S3 buckets and objects, otherwise execution will fail.

For further info on how to configure your AWS credentials please refer to the AWS Command Line Interface @ https://aws.amazon.com/cli/

License

The sample code is licensed under Apache 2.0.

aws-s3-artifact-manager-sample's People

Contributors

hyandell avatar

Watchers

James Cloos avatar Rory Bramwell 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.