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

implement federated_credential_flow and workload_identity_creds and add them to the environment_credential #1319

Merged
merged 2 commits into from
Aug 22, 2023

Conversation

simon-an
Copy link
Contributor

fixes #1305

…entials

Signed-off-by: simon-an <26556185+simon-an@users.noreply.github.com>
@simon-an
Copy link
Contributor Author

@microsoft-github-policy-service agree

Signed-off-by: simon-an <26556185+simon-an@users.noreply.github.com>
Copy link
Member

@heaths heaths left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does the environment_credential not work? Can we not fix that? In our other languages for Azure SDKs, we have only the environment_credential that works for both user and app registrations.

@simon-an
Copy link
Contributor Author

simon-an commented Jul 28, 2023

Sorry i am not sure what you mean. If you look at the pr, it is implemented in the environment credential. I can rename the pr if that helps :)
Edit: Since this is my first contribution to this repo, i tried to stick as close to the current code as possible.

@simon-an simon-an changed the title feat: implement federated_credential_flow and workload_identity_creds feat: implement federated_credential_flow and workload_identity_creds and add them to the environment_credential Jul 28, 2023
@heaths
Copy link
Member

heaths commented Aug 1, 2023

Sorry i am not sure what you mean. If you look at the pr, it is implemented in the environment credential. I can rename the pr if that helps :) Edit: Since this is my first contribution to this repo, i tried to stick as close to the current code as possible.

You added a public (WorkloadIdentityCredential](https://github.com/Azure/azure-sdk-for-rust/pull/1319/files#diff-2ad4468fd1fd66aac39f9410601f0b67dd7d796bf9a36db12c5b6a87c0b99d35) which we don't need or have in any other language. All support should be internal (however you choose to implement it) to the EnvironmentCredential.

@simon-an
Copy link
Contributor Author

simon-an commented Aug 8, 2023

Sorry i am not sure what you mean. If you look at the pr, it is implemented in the environment credential. I can rename the pr if that helps :) Edit: Since this is my first contribution to this repo, i tried to stick as close to the current code as possible.

You added a public (WorkloadIdentityCredential](https://github.com/Azure/azure-sdk-for-rust/pull/1319/files#diff-2ad4468fd1fd66aac39f9410601f0b67dd7d796bf9a36db12c5b6a87c0b99d35) which we don't need or have in any other language. All support should be internal (however you choose to implement it) to the EnvironmentCredential.

Yes. and what exactly is the problem with that? As far as is see it, the code in this repo is far away from a 1.0 version. So why don't you merge the working contribution and refactor it how you want it to be? I will not look at other language sdks. There are reason why i use rust and contribute (at least try) to the ecosystem. So if you want me to bring this PR in the direction that you want, please direct me to the specifications for the sdks, or describe exactly what you want me to change. (renaming, moving files, etc)

Why is the seperation as a "credentials" not a valid pattern to implement this?
Edit: To be more precise: Implementing the TokenCredential Trait, seams to be realy useful.

@demoray demoray changed the title feat: implement federated_credential_flow and workload_identity_creds and add them to the environment_credential implement federated_credential_flow and workload_identity_creds and add them to the environment_credential Aug 22, 2023
@demoray
Copy link
Contributor

demoray commented Aug 22, 2023

First, thank you for the contribution.

While the Azure SDK for Rust is not yet an official SDK, we do our best to follow the Azure SDK development guidelines.

One of the principles we take to heart for this SDK is consistency across all of the SDKs. We would prefer future contributions to consider this and other principles set forth in the above guidelines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Support kubernetes workload identities
3 participants