-
Notifications
You must be signed in to change notification settings - Fork 67
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
Is it possible to create another user with the same permissions as containeruser #390
Comments
Quick question, is gMSA trying to authenticate with an external SQL server or a SQL server instance in each container? |
It's an external SQL server. |
Thank you @ntrappe-msft for taking a look at this issue for us. We would love to enable this feature for our users and your help is greatly appreciated. |
Are you seeing any specific errors or logs when gMSA tries to authenticate with the server? We'd expect gMSA (managed by AD) and built-in profiles like |
Thanks @ntrappe-msft and @fady-azmy-msft for your response. We fetched the following event logs and don't see any errors.
On the SQL Server side we see the login attempt and failure:
Do you suggest looking at any other logs? We are fairly confident that our CCG plugin is configured propperly since the same custom-user (vcap) can authenticate against AD when using a different endpoint for User->App Authentication. This issue is only happening in the case of App->SQL Server authentication. Here is our reproduction steps: HWC: https://github.com/cloudfoundry/hwc
Running above command with |
Hello @ntrappe-msft @fady-azmy-msft, and updates on this issue? |
The gMSA team is still doing their investigation. We're trying to figure out which container user profile is associated with the gMSA identity. I wouldn't recommend trying to adjust the privileges of your custom profile nor trying to give it the same permissions of a built-in profile (e.g. I'll let you know what we find and we may ask for logs to diagnose the root cause. Thanks again for your patience. |
Thank you all for your effort in trying to figure out what is different between the |
@ntrappe-msft is there any new development on this issue ? |
@ntrappe-msft can we provide more information to help with this issue? We really would like to enable this feature for our IWA users and this issue is blocking us from moving forward. |
@ntrappe-msft Thanks again for your efforts in trying to fix this issue. I am pinging this issue to keep it open |
Thank you for the continued pings. Our support team is having a meeting today and I'm hoping we'll receive a workaround or fix we can share externally. |
@ntrappe-msft our users are looking forward to having this feature enabled. Is there any updates we can share with them? |
Hi. Sorry this is taking a while. I'm going to ping the team responsible. |
Hi, @ntrappe-msft, are there any updates on this issue? This difference in behavior for this distinguished |
Do we have an update here ? There are more questions like why does Configure your app to use a gMSA ask you to specify And, then, the original questions raised here, how do you actually go about mapping additional gMSA identities -- the doc says it is possible but is silent on how to achieve this
|
@riyapatel-ms Checking to see if the team has had a chance to look at this issue and help with a workaround? |
@ntrappe-msft @riyapatel-ms @fady-azmy-msft any updates or ETA? |
@riyapatel-ms @ntrappe-msft We are coming up on our anniversary for this ticket. Would you like us to keep pinging this issue or is there a better way for us to communicate? Additionally, it looks like there has been multiple gMSA github issue open that are not getting any feedback. Would you say there is no active development happening in this area or is this a misunderstanding? |
Coming late and although I read the thread, I wanted to ask a few questions/clarify a few things:
Please note these are different things. You could potentially create another user account to replace the ContainerUser, give it whatever privileges INSIDE THE CONTAINER you need and then in your dockerfile specify that user account for running the container. Then when you configure the application inside the container, you set the service to run as NetworkService. Think of it this way: If you had a Windows Server VM with IIS, you would configure the w3svc service to run as NetworkService, but you can log into that VM using your credentials. Is this what you are trying to accomplish? Sorry if I misunderstood the question. I do want to point out that development for gMSA is not paused. We have been updating the documentation, fixing bugs, etc. Unfortunately, given the nature of Windows, many cases will take longer than people are used to when working on open-source projects. Please rest assured that gMSA is important and a central piece of Windows containers. |
Thanks @vrapolinario for your response. In our container solution, we run processes as users instead of services and that's why we are running into this issue. In summary, we've noticed that if the process that runs our HWC process is running as Since we have to run processes as users, we have one of two options:
I hope the context I provided helps clarify the original issue. |
@ntrappe-msft @riyapatel-ms I noticed that this issue got the ADO label added. What does that mean for the status of this issue? |
@ebroberson Hi, the ADO label just means that we're tracking the Issue internally or have an internal discussion on the topic. We're waiting on updates from that internal discussion now. |
@ntrappe-msft Any updates on that internal discussion? |
I'm still waiting on a response. |
@ntrappe-msft Any updates on the status of this issue? |
@ntrappe-msft @riyapatel-ms Has there been any update on this issue? |
Apologies for the delay, we have a large backlog of issues. We're still investigating a number of gMSA-related components, including this one. It's unlikely that you'll be able to rename ContainerUser. But, adding a user, might also force restarts to sign in as that user. |
No worries, just want to make sure that this issue stays open. |
@ntrappe-msft Just wanted to let you know that we're still monitoring this issue if you had any updates to share. |
This issue has been open for 30 days with no updates. |
Please keep this issue open as it is still a problem for us. |
We follow the recommended approach for creating new users in our Dockerfile. When we create and link a gMSA with newly created containers, we are observing that running processes as our custom user fails to authenticate with SQL Server, but when the same process is ran as
containeruser
orNT Authority\NetworkService
it's able to authenticate with SQL Server. We unfortunately cannot find any Dockerfile references showing howcontaineruser
andcontaineradminstrator
accounts are created so that we duplicate the same process. We had a few questions hoping someone else knows the answer:containeruser
?User manager
virtual active directory and those users are part of that domain. How do we connect with that virtual AD and do we need to add our local user to that AD for this to work?containeruser
to our custom user? We tried usingwmic useraccount
butcontaineruser
was not found.cc:
@ebroberson
The text was updated successfully, but these errors were encountered: