Skip to content

Commit

Permalink
Backport: Fix identity store 'key not found' response (#7267) (#7314)
Browse files Browse the repository at this point in the history
The existing custom response results in a 400 instead of the typical
404 which confuses the Terraform provider (and is inconsistent).
  • Loading branch information
Jim Kalafut authored and jefferai committed Aug 14, 2019
1 parent 29fb0e3 commit e25dec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vault/identity_store_oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ func (i *IdentityStore) pathOIDCReadKey(ctx context.Context, req *logical.Reques
return nil, err
}
if entry == nil {
return logical.ErrorResponse("no named key found at %q", name), nil
return nil, nil
}

var storedNamedKey namedKey
Expand Down

0 comments on commit e25dec1

Please sign in to comment.