-
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
VM username should be the users username from access token, rather than a random one. #1148
Comments
I might be mistaken but this isn't something easy to do - |
I think we need to pass the requester user object ID (not sure if we can deduce email or that would be needed too) through to porter. For some services, such as AML compute instances we also need to provide the AAD user object ID (manually at present). |
I guess this is now a different requirement / usecase as the object id isn't much different than a random vm user name as for the person they both are meaningless. |
The email is part of the User object once logged in. Where we call:
we could pass the complete user, and then include the email as part of the parameters. |
Bringing this old issue up as this would be something we need. We would like for the user information to automatically be sent to porter instead of having to specify it manually. Our use case is enabling SSH access using Azure AD for VMs in an unrestricted workspace. Is it something that is planned to be implemented, or is there a way to somehow pre-fill the template with this information? I have looked into it but couldn't find a working approach. |
Not planned, don't think it would be too hard. The user id, and maybe username could be passed in the service bus message from the API to the resource processor, then it would be available in porter. If passed the
So bits want will need adding as a property to the payload here -
Or similar - probably want username... which isn't any of these. The resource processor should then pick it up here -
user in the bundle, and then access the properties in terraform.
Think you could do a PR? Happy to help iterate with you. |
I will unfortunately not have time to work on a PR for the next two weeks. It is not an urgency on our side however, so I can have a look after that. |
@jlabhard-sg I had 30 mins or so free at the end of the day: Created a draft PR - #3770 Welcome your input - is this what you need? |
Hi @marrobi, |
No description provided.
The text was updated successfully, but these errors were encountered: