Giter VIP home page Giter VIP logo

covert's Introduction

Covert

Yet another management tool for Docker secret with time-based secret versioning.

Installation

Download the script from project release page and make the script available on your path by modifying your $PATH variable or put it somewhere like /usr/bin or /usr/local/bin so you can invoke the covert tool from any directories.

Usage

To add new secret to the Docker secret, use covert commit.

$ covert commit my-file.conf
18029348-my-file.conf

Covert will output the version number of your file and will update older my-file.conf in Docker secret if exists. Then you can add the secret to service using covert add -s <secret_name> -x <self_secret_name> <service_name>.

If the secret is a configuration file and does not contain any sensitive information, you can add it with -s, --secret option.

$ covert add -s my-file.conf my-service

Otherwise, if you adding some kind of private key that should only readable by root, use -x, --self-secret option.

$ covert add -x privkey.pem my-service

If you modify the file and want to update the current secret, first commit it with covert commit and run covert update command. You can also cleanup the older secret from Docker secret by running covert clean.

$ covert commit my-file.conf
18029432-my-file.conf
$ covert update -s my-file.conf my-service
$ covert clean my-file.conf
18029348-my-file.conf

Please note that if you add the file using the self secret (-x, --self-secret option), you should update the file using the same option or the updated file will be exposed to global read unless you explicitly define the --mode option.

For complete usage information, please consult covert --help or covert COMMAND --help.

License

Copyright (c) 2017 Fadhli Dzil Ikram. Please see accompanying LICENSE file.

covert's People

Contributors

adzil avatar

Watchers

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