-
Notifications
You must be signed in to change notification settings - Fork 456
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
fix blocked pipeline #4451
fix blocked pipeline #4451
Conversation
3675c71
to
379e122
Compare
a9f0fb8
to
d40a6b1
Compare
add flag for scope only and refactor
edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.CloudProxy/CloudConnectionProvider.cs
Outdated
Show resolved
Hide resolved
edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.CloudProxy/CloudConnectionProvider.cs
Outdated
Show resolved
Hide resolved
edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.CloudProxy/ServiceProxy.cs
Outdated
Show resolved
Hide resolved
edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.CloudProxy/ServiceProxy.cs
Outdated
Show resolved
Hide resolved
@@ -97,6 +97,14 @@ public async Task<Option<ICloudProxy>> GetCloudConnection(string id) | |||
.Map(c => (ICloudProxy)new RetryingCloudProxy(id, () => this.TryGetCloudConnection(id), c)); | |||
} | |||
|
|||
public async Task<Try<ICloudProxy>> GetCloudConnectionTry(string id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public async Task<Try<ICloudProxy>> GetCloudConnectionTry(string id) | |
public async Task<Try<ICloudProxy>> TryGetCloudProxy(string id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed it to TryGetCloudConnection to be consistent with other GetCloudConnection.
{ | ||
Events.ServiceIdentityNotFound(identity); | ||
Option<IClientCredentials> clientCredentials = await this.credentialsCache.Get(identity); | ||
return await clientCredentials |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Expect is a better pattern here?
…on (Azure#4451) * modified to fail and drop message on authentication error with scope authenticator Co-authored-by: David Lu <davilu@microsoft.com>
* Update pipeline triggers for release/1.1 (#4365) * Make comments in the config.yaml for provisioning and certificates clearer. (#4542) * fail and drop message on authentication error with Scope authentication (#4451) * Update ASP.NET Core Runtime base images (#4573) * Prepare for Release 1.1.1 (#4585) * Fix NugetSecurity warning for Long Haul pipeline (#4588) * add guid to module and device name (#4589) * Fix typo in `always_reprovision_on_startup` config.yaml docs. (#4612) * Prepare for Release 1.1.1 (pt2) (#4617) Co-authored-by: Damon Barry <damonbarry@users.noreply.github.com> Co-authored-by: Arnav Singh <arsing@microsoft.com> Co-authored-by: Anca Antochi <ancan@microsoft.com> Co-authored-by: David Lu <davilu@microsoft.com> Co-authored-by: yophilav <54859653+yophilav@users.noreply.github.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Sending messages to cloud gets blocked when a leaf device is disabled, removed from scope or removed as a device because edgehub receives Unauthorized exceptions and will keep retrying.
To fix the issue:
Tests:
CI passed: https://msazure.visualstudio.com/One/_build/results?buildId=39795314&view=results