Page MenuHomeDevCentral

Propagate errors if we can't handle it in vault_get
ClosedPublic

Authored by dereckson on Apr 12 2023, 00:01.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 30, 02:45
Unknown Object (File)
Thu, Jan 23, 18:33
Unknown Object (File)
Wed, Jan 22, 05:25
Unknown Object (File)
Fri, Jan 17, 18:49
Unknown Object (File)
Wed, Jan 8, 06:32
Unknown Object (File)
Wed, Jan 8, 06:32
Unknown Object (File)
Dec 22 2024, 08:26
Unknown Object (File)
Dec 13 2024, 00:43
Subscribers
None

Details

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

Diff Detail

Repository
rVIPER ViperServ scripts
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson created this revision.
This revision is now accepted and ready to land.Apr 12 2023, 00:09