GithubHelp home page GithubHelp logo

isabella232 / gcp-binary-authorization-orb Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 224 KB

Use Google's Binary Authorization to sign/certify container images for deployment

Home Page: http://circleci.com/orbs/registry/orb/circleci/gcp-binary-authorization

License: MIT License

Shell 60.18% Dockerfile 39.82%

gcp-binary-authorization-orb's Introduction

GCP Binary Authorization Orb

CircleCI Build Status CircleCI Orb Version GitHub license CircleCI Community

Use Google's Binary Authorization to sign/certify container images for deployment to Google Kubernetes Engine.

Usage

For full usage guidelines, see the orb registry listing.

CircleCI's Binary Authorization orb can be used to configure and use Binary Authorization for any piece of software that is pushed to test/staging environments via Google's Container Registry, and deployed to production via Google Kubernetes Engine.

The orb can be used in a number of ways; however, in its simplest form, it provdes two jobs. One, run-setup, is designed to be added to a user's CircleCI configuration file, run successfully once, and then removed. The second, create-attestation, is designed to be permanently added to a config.yml file and run on every new commit as part of a pre-deployment workflow.

run-setup

version: 2.1

orbs:
  binary-authorization: circleci/[email protected]

 workflows:
   your-workflow:
     jobs:
       - binary-authorization/run-setup

The run-setup job enables all required GCP APIs, can optionally create a GKE cluster, will create an attestor, optionally generate and store a PGP keypair, and optionally create and store a Binary Authorization policy YAML file.

To use run-setup, at least one existing Google project is required; if using a multi-project Binary Authorization setup, three separate Google projects (deployer, attestor, attestation) are required.

create-attestation

version: 2.1

orbs:
  binary-authorization: circleci/[email protected]

 workflows:
   your-workflow:
     jobs:
       - binary-authorization/create-attestation

The create-attestation job will sign/authorize a specific tag of a container stored in a Google container registry for deployment to GKE, provided whatever conditions specified via a Binary Authorization policy YAML file have been met. If these conditions are not met, any attempted deployments to GKE will be blocked.

create-attestation can also run all required setup steps, by passing the run-setup: true parameter. After successfully running these steps once, the parameter should be removed.

Documentation

See the following links for more information about Google's Binary Authorization:

See the following links for more information about using CircleCI orbs:

Contributing

We welcome issues to and pull requests against this repository!

For further questions/comments about this or other orbs, visit CircleCI's orbs discussion forum.

gcp-binary-authorization-orb's People

Contributors

iynere 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.