Skip to content

secrets/database: return any error from rotations#8997

Merged
catsby merged 1 commit into
masterfrom
b-set-cred-error
May 19, 2020
Merged

secrets/database: return any error from rotations#8997
catsby merged 1 commit into
masterfrom
b-set-cred-error

Conversation

@catsby
Copy link
Copy Markdown
Contributor

@catsby catsby commented May 14, 2020

When rotating credentials, if the call to setStaticAccount to rotate the credentials of a static account were to fail (ex. read-only storage) the role gets an updated priority and placed back on the queue to try again. The error returned from setStaticAccount gets lost and is not returned, which could result in a 200 type API response even though the operation actually failed.

This change makes sure we return any error from setStaticAccount


Related to #8105

@catsby catsby requested a review from michelvocks May 14, 2020 11:22
@catsby catsby added this to the 1.5 milestone May 18, 2020
@catsby catsby merged commit 57d18c9 into master May 19, 2020
@catsby catsby deleted the b-set-cred-error branch May 19, 2020 17:05
@catsby catsby removed the backport label May 19, 2020
@briankassouf briankassouf modified the milestones: 1.5, 1.3.6, 1.4.2 May 19, 2020
@mladlow mladlow modified the milestones: 1.4.2, 1.5 May 19, 2020
pull Bot pushed a commit to Zezo-Ai/vault that referenced this pull request Sep 3, 2025
…hicorp#8997)

* updates display attrs for auth method configs

* fixes plugin identity util fields tests

* adds comments explaining variadic operator choice

* stubs original automatedrotation and pluginidentity util functions

* updates group name in TestAddPluginIdentityTokenFieldsWithGroup

---------

Co-authored-by: Jordan Reimer <jordan.reimer@hashicorp.com>
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.

4 participants