-
Notifications
You must be signed in to change notification settings - Fork 147
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
make-auth
generates client secrets in a legacy way?
#3998
Comments
Looks like we use the |
@SvenAelterman just noticed this as well. I received a bunch of Azure Security alerts saying that credentials were expiring on the following service principals:
Go to the App Registration in the Azure Portal and there are no credentials present for any of these: However run |
I can remember this confusing me at the time and was limited support to do what we needed via If you look at I have just run:
And the three apps have their secrets updated. A I suggest trying this in a dev environment first (we have had issues where |
Thanks, will try. This comment describes the behaviour of the portal for SP secrets vs App secrets: Azure/azure-cli#23566 (comment) |
Ok, so we are saying the commands should be moved from |
@marrobi thanks, I followed your steps above, though instead of a local Was there something in particular you tested to ensure the new credentials were being picked up? I'm not 100% sure what will be holding on to cached tokens/credentials. |
@jonnyry from what I recall the web app didn't update the new credentials. So deploying a new workspaces failed on creating the app registration. The app registration configuration wasn't reading the new version from the key vault until the second run of make all. It might have been resolved since then, was a while back. |
I don't know enough on the specifics of holding secrets against Apps vs Service Principals (or why it was done that way in the first place) to know if it's the right thing to do to switch for the purposes of surfacing it in the UI. The above method has worked OK for us so happy with that :-) |
Describe the bug
Running
make-auth
creates application registrations with client secrets, however, these client secrets are not shown in the Entra ID UI for app registrations. This makes me wonder if the process uses a legacy method.If it uses a legacy method, it should be updated to use a current method, which would make it easier to rotate the secrets.
Azure TRE release version (e.g. v0.14.0 or main): v0.17.0
The text was updated successfully, but these errors were encountered: