HomeDevCentral

Propagate errors if we can't handle it in vault_get

Description

Propagate errors if we can't handle it in vault_get

Summary:
When an error is caught in vault_get, it only handles the 403 case.

If vault is currently in 503 (still sealed for example), it does nothing,
so the return fails with can't read "credential": no such variable.

This change allows vault_get to propagate instead the error:
"Vault returned HTTP/1.1 503 Service Unavailable, 200 OK was expected."

Test Plan: Tested on Wearg

Reviewers: dereckson

Reviewed By: dereckson

Differential Revision: https://devcentral.nasqueron.org/D3003

Details

Provenance
derecksonAuthored on Apr 12 2023, 00:01
derecksonPushed on Apr 12 2023, 00:09
Reviewer
dereckson
Differential Revision
D3003: Propagate errors if we can't handle it in vault_get
Parents
rVIPER542851e2bc55: Remote Twitter features
Branches
Unknown
Tags
Unknown