这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@josegonzalez
Copy link
Member

I came up with a proof of concept for limiting commands to a given user. I'm not convinced this is the absolute best way, but I do think that it's the most flexible approach given how dokku is structured.

This plugin trigger should allow users to pair down the available commands for a given user. While this does not affect help output - or any output at all - this is a good first step in allowing administrative access to certain commands while still allowing users to deploy/manage given applications.

Note that because of how dokku works, all parsing of commands must be done within the pluginhook, and we cannot give visibility into the actual command or application that will be affected by a given run.
@josegonzalez
Copy link
Member Author

@michaelshobbs thoughts on this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this change to exit pertinent to this change? (just curious)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, just wanted to change it while i was there.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@michaelshobbs
Copy link
Member

seems fine for a first pass

josegonzalez added a commit that referenced this pull request Nov 19, 2015
@josegonzalez josegonzalez merged commit 650dcd2 into master Nov 19, 2015
@josegonzalez josegonzalez deleted the user-auth branch November 19, 2015 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants