GithubHelp home page GithubHelp logo

matt-oakes / dokku-secure-apps Goto Github PK

View Code? Open in Web Editor NEW
50.0 3.0 7.0 23 KB

A plugin for Dokku which secures an individual app with HTTP Basic authentication

License: MIT License

Shell 91.95% Makefile 8.05%

dokku-secure-apps's Introduction

Dokku Secure App Plugin Build Status

This is a plugin for Dokku which secures an individual app with HTTP Basic authentication.

installation

# on 0.3.x
cd /var/lib/dokku/plugins
git clone https://github.com/matto1990/dokku-secure-apps.git secure-apps
dokku plugins-install

# on 0.4.x
dokku plugin:install https://github.com/matto1990/dokku-secure-apps.git secure-apps

commands

$ dokku help
    secure:disable <app>                            remove security for this app
    secure:enable <app>                             enable security for this app
    secure:delete <app>                             delete htpasswd file for this app
    secure:set <app> username password              add user to this app or update their password
    secure:unset <app> username                     remove user from this app
    secure:list <app>                               list users for this app

Unit Tests

This plugins test were inspired by the tests in https://github.com/neam/dokku-custom-domains. It uses assert.sh 1.0 - bash unit testing framework.

To run the tests:

make test

TODO

  • Globally secure all apps (with opt-out for specific apps)

dokku-secure-apps's People

Contributors

3onyc avatar chikamichi avatar josegonzalez avatar matt-oakes avatar padrio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dokku-secure-apps's Issues

Not working?

Should this plugin still be working? Is it still being maintained? I'm working on a project that I'd love to have basic authentication for and I'm using Dokku, so this plugin would definitely be a welcome addition to my workflow!

secure:enable ask me a sudo password

Hi man !
I tried your plugin, so after setting an user for my app, I try to enable it

dokku secure:enable my_app
[sudo] password for dokku: 

But I don't have a dokku user in my system, what hapen ? I'm bit confuse..
Thank's !

htpasswd dependency

This plugin requires htpasswd, but currently it doesn't do anything about ensuring that htpasswd is available - i.e no checks, no automated installs, no bundled htpasswd implementation, etc.

I guess that at least a check and a solid error message (with a pointers on how to install htpasswd) would be nicer than

/var/lib/dokku/plugins/secure-apps/commands: line 43: htpasswd: command not found

it outputs right now.

Fix commands not being processed consistently

Hi,

I noticed running dokku secure-apps:help doesn't work, and actually there seems to be two issues:

  • the plugin itself is named secure-apps, but the commands are secure:*
  • the secure:help is not reachable due to the way commands is implemented (initial check for args)

I'd propose fixing those issues by:

Make password settable through secure input

As I see, the only way to set the password is by passing it directly through the command line as argument. This is often seen as security flaw, since your password will be written into a Logfile.

You might consider changing this.

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.