Skip to content
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

Best Practices for Windows Container Password Rotation? #549

Open
ntrappe-msft opened this issue Dec 10, 2024 · 2 comments
Open

Best Practices for Windows Container Password Rotation? #549

ntrappe-msft opened this issue Dec 10, 2024 · 2 comments
Labels
documentation Need improvements or additions to docs question Further information is requested

Comments

@ntrappe-msft
Copy link
Contributor

Important

Migrating Discussions to Issues. All customer inquiries should be in Issues.

Discussed in https://github.com/microsoft/Windows-Containers/discussions/542

Originally posted by jordanabakerafs September 30, 2024
We currently have a set of services running in windows containers, we're using the mcr.microsoft.com/dotnet/runtime:8.0-nanoserver-1809 base image.

We create user in our dockerfile using net user for running the service, but are running into issues where the default password rotation period causes us to need to redeploy our services every 40 days or so because the password expires, then the services can't be updated.

Currently - it appears if we do not update the dockerfile to use a new username, the image layer is cached and redeploying does not fix this issue. Alternatively, updating a password and redeploying really just solves the problem a different way with the same process.

We've done a good bit of reading but really haven't found any best practices for CI/CD when it comes to windows container account password/rotation - has anyone done this in a larger enterprise before and have some examples of best practices to follow?

Edit: Setting the passwords to never expire via wmic is not a viable option for us due to org security policy.

Copy link

Thank you for creating an Issue. Please note that GitHub is not an official channel for Microsoft support requests. To create an official support request, please open a ticket here. Microsoft and the GitHub Community strive to provide a best effort in answering questions and supporting Issues on GitHub.

@ntrappe-msft ntrappe-msft added documentation Need improvements or additions to docs question Further information is requested triage New and needs attention labels Dec 10, 2024
@ntrappe-msft
Copy link
Contributor Author

@vrapolinario / @lucillex / @riyapatel-ms / @akarshm would any of you know if we have best practice docs on the following?

@ntrappe-msft ntrappe-msft removed the triage New and needs attention label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Need improvements or additions to docs question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant