Skip to content

Handle missing PKI ca_chain responses#611

Open
kiwigitops wants to merge 1 commit into
hashicorp:mainfrom
kiwigitops:codex/pki-optional-ca-chain
Open

Handle missing PKI ca_chain responses#611
kiwigitops wants to merge 1 commit into
hashicorp:mainfrom
kiwigitops:codex/pki-optional-ca-chain

Conversation

@kiwigitops

Copy link
Copy Markdown

Summary

Vault PKI responses do not always include ca_chain; the API marks it optional. vault-action currently calls .join() on that field unconditionally, which causes PKI certificate retrieval to fail after the certificate has already been issued.

This change skips only the optional ca_chain output when it is absent, while preserving the existing certificate, private key, and issuing CA outputs.

Closes #609.

Tests

  • npm test -- src/pki.test.js --runInBand
  • npm test -- --runInBand
  • npm run build

@kiwigitops kiwigitops requested review from a team as code owners June 12, 2026 21:50
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.

[BUG] PKI certificate retrieval fails if pki backend does not provide ca_chain

1 participant