hashicorp / hashicorp/consul

Connect: Unnecessary Intermediates returned with leaf

Open
#7,018 0 comments 1 reaction 0 assignees View on GitHub
theme/connect type/bug
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
2d 6h
Merged PRs (30d)
43

Description

See gist: https://gist.github.com/i0rek/1da69d6fb57a731b7e07a46330ab1296

The first is the output from fetching a leaf on a secondary DC using consul provider right after initial bootstrap - it contains the leaf and 2 other certs but should only have one other - the signing cert. Figure out why there are two.

The second response is after a primary root rotation - now there are 4 certs but one of them is repeated twice. We expect there to be 3 now - the leaf, the current intermediate and the cross signed intermediate. I'm not yet sure which is duplicated.

Figure out what these certs are and why duplication happens.

All tests pass so this isn't breaking anything but is a bug that we are returning more than we need and might mask a bigger issue somewhere.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.