Skip to content

Conversation

@ananthb
Copy link
Member

@ananthb ananthb commented Jan 21, 2026

Use the right storage path to get certificates

Use the right storage path to get certificates
@ananthb ananthb merged commit 4c240fc into master Jan 21, 2026
@ananthb ananthb deleted the path-fix branch January 21, 2026 20:22
@github-actions
Copy link

Code Coverage Report

Total Coverage: total: (statements) 30.1%

Coverage by function

==========================================
  Certificator Development Environment
==========================================

Go version (from go.mod): 1.25.5
Go version (active):      go1.25.5
HAProxy version:          HAProxy version 3.3.0-7832fb2 2025/11/26 - https://haproxy.org/
Data Plane API:           2026/01/21 20:26:24 maxprocs: Leaving GOMAXPROCS=4: CPU quota undefined

Available commands:
  build            - Build certificator and certificatee
  run-tests        - Run unit tests
  test-coverage    - Run tests with coverage report
  test-watch       - Watch for changes and run tests
  tidy             - Tidy go.mod dependencies
  check            - Run all checks (fmt, vet, lint, test)
  clean            - Clean build artifacts
  integration-test - Run HAProxy integration tests

github.com/vinted/certificator/cmd/certificatee/helpers.go:9:		createHAProxyClients		0.0%
github.com/vinted/certificator/cmd/certificatee/list_certs.go:14:	listCertsCmd			0.0%
github.com/vinted/certificator/cmd/certificatee/list_certs.go:50:	listCertificates		0.0%
github.com/vinted/certificator/cmd/certificatee/list_certs.go:113:	formatTime			0.0%
github.com/vinted/certificator/cmd/certificatee/list_certs.go:120:	truncate			0.0%
github.com/vinted/certificator/cmd/certificatee/main.go:12:		main				0.0%
github.com/vinted/certificator/cmd/certificatee/main.go:37:		printUsage			0.0%
github.com/vinted/certificator/cmd/certificatee/sync.go:19:		syncCmd				0.0%
github.com/vinted/certificator/cmd/certificatee/sync.go:70:		maybeUpdateCertificates		0.0%
github.com/vinted/certificator/cmd/certificatee/sync.go:86:		processHAProxyEndpoint		0.0%
github.com/vinted/certificator/cmd/certificatee/sync.go:157:		shouldUpdateCertificate		0.0%
github.com/vinted/certificator/cmd/certificatee/sync.go:183:		serialsDiffer			100.0%
github.com/vinted/certificator/cmd/certificatee/sync.go:195:		formatSerial			100.0%
github.com/vinted/certificator/cmd/certificatee/sync.go:199:		updateCertificate		0.0%
github.com/vinted/certificator/cmd/certificatee/sync.go:221:		buildPEMBundle			100.0%
github.com/vinted/certificator/cmd/certificatee/sync.go:247:		endsWith			100.0%
github.com/vinted/certificator/cmd/certificator/main.go:18:		main				0.0%
github.com/vinted/certificator/pkg/acme/acme.go:27:			GetEmail			0.0%
github.com/vinted/certificator/pkg/acme/acme.go:32:			GetRegistration			0.0%
github.com/vinted/certificator/pkg/acme/acme.go:37:			GetPrivateKey			0.0%
github.com/vinted/certificator/pkg/acme/acme.go:42:			NewClient			0.0%
github.com/vinted/certificator/pkg/acme/acme.go:61:			setupClient			0.0%
github.com/vinted/certificator/pkg/acme/acme.go:80:			setupAccount			0.0%
github.com/vinted/certificator/pkg/acme/acme.go:118:			newAccount			0.0%
github.com/vinted/certificator/pkg/acme/acme.go:130:			getAccountKey			0.0%
github.com/vinted/certificator/pkg/acme/acme.go:159:			registerAccount			0.0%
github.com/vinted/certificator/pkg/acme/acme.go:177:			recoverAccount			0.0%
github.com/vinted/certificator/pkg/acme/acme.go:211:			saveAccount			0.0%
github.com/vinted/certificator/pkg/acme/acme.go:221:			saveKey				0.0%
github.com/vinted/certificator/pkg/certificate/certificate.go:18:	ObtainCertificate		0.0%
github.com/vinted/certificator/pkg/certificate/certificate.go:50:	GetCertificate			0.0%
github.com/vinted/certificator/pkg/certificate/certificate.go:68:	NeedsReissuing			0.0%
github.com/vinted/certificator/pkg/certificate/certificate.go:96:	arraysEqual			0.0%
github.com/vinted/certificator/pkg/certificate/certificate.go:110:	arrayContains			0.0%
github.com/vinted/certificator/pkg/certificate/certificate.go:119:	VaultCertLocation		0.0%
github.com/vinted/certificator/pkg/certificate/certificate.go:123:	storeCertificateInVault		0.0%
github.com/vinted/certificator/pkg/certmetrics/metrics.go:61:		StartMetricsServer		0.0%
github.com/vinted/certificator/pkg/certmetrics/metrics.go:81:		PushMetrics			0.0%
github.com/vinted/certificator/pkg/config/config.go:72:			LoadConfig			0.0%
github.com/vinted/certificator/pkg/haproxy/client.go:38:		DefaultRetryConfig		100.0%
github.com/vinted/certificator/pkg/haproxy/client.go:84:		NewClient			100.0%
github.com/vinted/certificator/pkg/haproxy/client.go:118:		NewClients			92.3%
github.com/vinted/certificator/pkg/haproxy/client.go:143:		Endpoint			100.0%
github.com/vinted/certificator/pkg/haproxy/client.go:148:		SetRetryConfig			100.0%
github.com/vinted/certificator/pkg/haproxy/client.go:153:		GetRetryConfig			100.0%
github.com/vinted/certificator/pkg/haproxy/client.go:158:		calculateBackoff		100.0%
github.com/vinted/certificator/pkg/haproxy/client.go:175:		doRequest			77.8%
github.com/vinted/certificator/pkg/haproxy/client.go:229:		doRequestWithBodyBuffer		64.0%
github.com/vinted/certificator/pkg/haproxy/client.go:291:		ListCertificates		100.0%
github.com/vinted/certificator/pkg/haproxy/client.go:305:		ListCertificateRefs		85.7%
github.com/vinted/certificator/pkg/haproxy/client.go:343:		GetCertificateInfo		100.0%
github.com/vinted/certificator/pkg/haproxy/client.go:348:		GetCertificateInfoByPath	89.5%
github.com/vinted/certificator/pkg/haproxy/client.go:383:		GetCertificateInfoByRef		0.0%
github.com/vinted/certificator/pkg/haproxy/client.go:394:		parsePEMCertificate		87.5%
github.com/vinted/certificator/pkg/haproxy/client.go:419:		parseDataPlaneAPITime		100.0%
github.com/vinted/certificator/pkg/haproxy/client.go:440:		UpdateCertificate		80.0%
github.com/vinted/certificator/pkg/haproxy/client.go:476:		CreateCertificate		78.9%
github.com/vinted/certificator/pkg/haproxy/client.go:511:		DeleteCertificate		90.9%
github.com/vinted/certificator/pkg/haproxy/client.go:530:		ExtractDomainFromPath		100.0%
github.com/vinted/certificator/pkg/haproxy/client.go:548:		IsExpiring			100.0%
github.com/vinted/certificator/pkg/haproxy/client.go:559:		NormalizeSerial			100.0%
github.com/vinted/certificator/pkg/vault/vault.go:18:			NewVaultClient			0.0%
github.com/vinted/certificator/pkg/vault/vault.go:27:			KVWrite				0.0%
github.com/vinted/certificator/pkg/vault/vault.go:41:			KVRead				0.0%
github.com/vinted/certificator/pkg/vault/vault.go:62:			vaultFullPath			0.0%
total:									(statements)			30.1%

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.

1 participant