Giter Club home page Giter Club logo

appdbaas's Introduction

AppDB-as-a-Service

Ever wish if would be a simple RESTful call to setup and teardown database and users for those adhoc wordpress and other projects? Or build database setup into your ansible scripts ? Here is the little helper for you! Driven by the need to not have root logins floating around the office, and still exposing automated self-service database creation and teardown, this projekt is a super simple script which allows RESTful-ish operation of AppDB

What is an AppDB ??

It's those databses we all create, which has a single owner user with limited access to the similarly named database.

Example: You wordpress site has a database named wp-site and a restricted user, also conviniently names wp-site with a password which rarely, if ever, gets updated.

Nice! how do I use it?!

It starts up simple, using environment variables for configuration:

docker run -d -p 8080:8080 -e DB_HOST=db.localnet -e DB_USER=root DB_PASS=P@ssw0rd stixes/appdbaas 

Security

This improve security by removing the root account from the daily use. It does however expose the data in environment variables to anyone able to inspect the container.

This means that you should not be running this in an environment where database access is highly restricted, or container access is unrestricted!.

With that said, this app has been secured as well as a php application can be secured, runs as non-root and can run with read-only rootfs.

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.