-
-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PoC: Adding a basic login system to Puppetboard #468
base: master
Are you sure you want to change the base?
Conversation
I’m concerned with some of changes when not using login. Also, there are a few Travis ci issues. Looks like we need to drop 2.6 in the chain as well. |
@mterzo fixing the travis issues is in the list of tasks to be completed. What are your concerns regarding changes when not using login? |
Couple places where I’m not sure how flask will behave. Once I have a chance to spawn it in a container and look at the changes not on my phone. |
Can you please resolve conflict? |
@othalla the merge conflict has been pushed. Feel free to make any changes/additions you see fit to the code. |
Hello, i will check this out. However front is not my specialty. Any help will be glad ;) |
@othalla changing Going on a 3 week holiday this week without my laptop. Might have some time after my holidays to look into this. |
Plan to test it soon. Plan to give some feedback next week. |
@RobReus could you check for the modification regarding login enable? |
Hey guys, any news on this feature? |
I have since stopped using puppet and puppetboard. If anyone wants to take ownership of this change, feel free to do so. |
I got a working example of active directory login, is it useful to post here, or maybe in a markdown example ? |
Hi all,
I have written a very basic login system for Puppetboard. The reason being that in my case, I am running puppetboard in a docker so I cannot use the authentication mechanism of apache/nginx/haproxy. With the new GDPR law coming next month, we have a new requirement that everyone needs a named account for all systems, this includes puppetboard.
In the absence of such system, I have decided to make it myself. The very basic PoC is this merge request. It is far from a finished product. The following items still need to be done:
If you want to test my code, all you need to do is checkout my branch/PR and adjust the
default_settings.py
accordingly. You need to setLOGIN_DISABLED
toFalse
. When the app first starts up, a user is created withadmin
as username andadmin123
as password. Once you are logged in, 2 new menu bar items appear; Settings and "Logged in as: ...". See my screenshots below to get an idea.The reason I am creating this PR is that I would really appreciate some feedback and ideas on how to improve it. Feel free to submit your own code.
Following are some screenshots of the UI.
Login screen:
Login screen with "Login required" flash:
Login screen with "Logged out" flash:
Settings dropdown:
User dropdown:
When not logged in (nothing changes compared to current master branch):