Skip to content

Commit

Permalink
fix endless loop in logs on login error (#170)
Browse files Browse the repository at this point in the history
* fix endless loop in logs on login error

* changelog

* Update CHANGELOG.md
  • Loading branch information
fairclothjm committed Oct 15, 2024
1 parent 3a9ef8d commit 0764f81
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@

## v0.18.1

IMPROVEMENTS:
* Bump github.com/coreos/go-oidc to v3 (https://github.com/hashicorp/vault-plugin-auth-azure/pull/157)
BUGS:

* fix an endless loop of warning spamming the logs on login error

## v0.18.0

FEATURES:
* Add support for Workload Identify Federation (https://github.com/hashicorp/vault-plugin-auth-azure/pull/151)

IMPROVEMENTS:
* Bump github.com/coreos/go-oidc to v3 (https://github.com/hashicorp/vault-plugin-auth-azure/pull/157)
* Updated dependencies: (https://github.com/hashicorp/vault-plugin-auth-azure/pull/154)
* Updated dependencies:
* `github.com/Azure/azure-sdk-for-go/sdk/azcore` v1.9.1 -> v1.10.0
Expand Down
3 changes: 3 additions & 0 deletions path_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,9 @@ func (b *azureAuthBackend) verifyResource(ctx context.Context, subscriptionID, r
if err != nil {
// don't fail the whole auth, but note that a page failed to load:
b.Logger().Warn("couldn't load next page for", "resource_group", rg, "error", err.Error())

// ensure we don't loop forever
break
}
for _, id := range page.Value {
if id.Properties != nil && id.Properties.ClientID != nil {
Expand Down

0 comments on commit 0764f81

Please sign in to comment.