swarmpit icon indicating copy to clipboard operation
swarmpit copied to clipboard

Add docker resource role management

Open nohaapav opened this issue 8 years ago • 13 comments
trafficstars

nohaapav avatar Aug 07 '17 16:08 nohaapav

Are there any details documented that explain how this will be implemented?

Wondering if this will be able to scope roles to specific service/stack names. ie) a user is only allowed to submit updates to stacks with the name 'some-stack-name' or stacks that match a regex. We have the use-case where multiple teams share the same cluster but should only be able to see and update certain stacks/services.

We use https://wiki.jenkins.io/display/JENKINS/Role+Strategy+Plugin in Jenkins to provide this sort of behavior. It allows you to scope Jenkins folders to certain roles.

stowns avatar Jun 12 '18 13:06 stowns

Hii @stowns .. this is currently under discussion :)

nohaapav avatar Jun 12 '18 14:06 nohaapav

Potential issues from our quick discussion with @lumir-mrkva :

  • Bind docker sock only allowed for admin role (User role can't edit nor create service that binds docker sock
  • We need to scan stackfiles if linked resources permitted
  • We need to scan service if linked resources permitted
  • Deploy to manager nodes only allowed to admin role
  • Update node allowed only for admin

... more is coming for sure

nohaapav avatar Jun 12 '18 14:06 nohaapav

How it's going?

webchi avatar Dec 09 '20 11:12 webchi

@webchi Well, we didn't had capacity for such huge task yet, and current users are not really asking for this one to prioritize.

nohaapav avatar Dec 09 '20 12:12 nohaapav

Can we have an option to simply disable authentication? Even if it just provides a read-only mode since I already have an OIDC Proxy in front.

trajano avatar May 21 '21 11:05 trajano

Hello, I'm testing today and I'm really enjoying it, I just felt like a read-only user option, is there an option?

I have cluster swarm 3 managers and 8 workes

thiagooqueiroz86 avatar May 21 '21 17:05 thiagooqueiroz86

Hello ! whats the Timeline for 2.0

SMR39 avatar Jun 09 '21 12:06 SMR39

@SMR39 No timeline is in place right now.

nohaapav avatar Jun 11 '21 09:06 nohaapav

It would be nice a read only user. For now i can setup the visualizer service and the logs can be seen on Datadog

jleonardolemos avatar Oct 20 '21 12:10 jleonardolemos

It would be nice a read only user. For now i can setup the visualizer service and the logs can be seen on Datadog

I have created a fork that allows "view only"/"read only" users to be created: https://github.com/NeilInnes/swarmpit_view_only

NeilInnes avatar Feb 09 '23 16:02 NeilInnes

@NeilInnes do you think you can add the passwordless option? So there's no need for the user?

trajano avatar Feb 09 '23 17:02 trajano

Unlikely anytime soon I'm afraid :(

NeilInnes avatar Feb 09 '23 18:02 NeilInnes