Skip to content

Fix error detection in vault deploy hook#6315

Merged
neilpang merged 1 commit into
acmesh-official:devfrom
alindt:fix-vault-curl
Apr 23, 2025
Merged

Fix error detection in vault deploy hook#6315
neilpang merged 1 commit into
acmesh-official:devfrom
alindt:fix-vault-curl

Conversation

@alindt

@alindt alindt commented Apr 17, 2025

Copy link
Copy Markdown
Contributor

The vault.sh deploy hook currently only checks if the curl HTTP request completes successfully, but doesn't verify the actual API response from Vault. This leads to misleading "Success!" messages even when Vault returns API errors.

  • Modified all HTTP POST operations to capture and check response content
  • Added detection for Vault-specific error responses ("errors":[)

@neilpang neilpang merged commit 1d18432 into acmesh-official:dev Apr 23, 2025
@alindt alindt deleted the fix-vault-curl branch April 23, 2025 18:39
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.

2 participants