Skip to content

feat: KMIP server certificate auto-renewal token refresh - #354

Open
bernie-g wants to merge 6 commits into
mainfrom
bernie/kms-24-add-auto-renewal-of-kmip-server-certificates
Open

feat: KMIP server certificate auto-renewal token refresh#354
bernie-g wants to merge 6 commits into
mainfrom
bernie/kms-24-add-auto-renewal-of-kmip-server-certificates

Conversation

@bernie-g

@bernie-g bernie-g commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Description 📣

Bumps infisical-kmip to the version that auto-renews KMIP server TLS certificates (Infisical/infisical-kmip#14) and wires the token refresh hook so AWS-enrolled servers re-authenticate via STS when their access token is rejected. Tested E2E locally against a dev stack with a 3m-TTL certificate.

Type ✨

  • New feature

Bumps infisical-kmip to the auto-renewal version (pseudo-version off
the feature branch; swap for the release tag once it lands).
enrollKmipServer now also returns a refresh function passed to the
server as RefreshAccessToken: AWS enrollment re-authenticates via STS
and persists the new token, token enrollment has no refresh since
enrollment tokens are single-use.
@linear

linear Bot commented Aug 5, 2026

Copy link
Copy Markdown

KMS-24

@infisical-review-police

Copy link
Copy Markdown

💬 Discussion in Slack: #pr-review-cli-354-feat-kmip-server-certificate-auto-renewal-token-refresh

Posted by Review Police — reviews, comments, new commits, and CI failures will stream into this channel.

@greptile-apps

greptile-apps Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR upgrades the KMIP server dependency to support automatic TLS certificate renewal and supplies an AWS access-token refresh callback.

  • Returns both the initial token and an optional refresh function from KMIP enrollment.
  • Re-runs AWS STS authentication when the KMIP library rejects an access token.
  • Best-effort persists refreshed AWS tokens while leaving single-use token enrollment without a refresh callback.
  • Pins infisical-kmip to the auto-renewal feature commit.

Confidence Score: 5/5

The PR appears safe to merge with no concrete changed-code failure identified.

The AWS refresh callback follows the existing KMIP AWS login path, returns refresh failures to the server, and does not introduce a demonstrated SSRF path or newly reachable vulnerable dependency.

Important Files Changed

Filename Overview
packages/cmd/kmip.go Wires the new refresh hook into the KMIP server and implements AWS re-authentication with best-effort token persistence; no actionable changed-code defect was established.
go.mod Upgrades infisical-kmip to the pseudo-version containing certificate auto-renewal support.
go.sum Updates checksums consistently for the infisical-kmip version bump.

Reviews (1): Last reviewed commit: "feat: wire KMIP server certificate auto-..." | Re-trigger Greptile

Comment thread packages/cmd/kmip.go Outdated
Comment thread packages/cmd/kmip.go
…starts

The refresh closure's HTTP client and STS login now have deadlines so a
hung API call cannot stall certificate renewal. A flagless restart of an
AWS-enrolled server (stored-token path) now detects the persisted server
ID and wires the same refresh function, so it can still recover from a
rejected token.
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