Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add SVID check to agent health check #5298

Merged
merged 4 commits into from
Aug 5, 2024

Conversation

Manbeardo
Copy link
Contributor

Pull Request check list

  • Commit conforms to CONTRIBUTING.md?
  • Proper tests/regressions included?
  • Documentation updated?

Affected functionality

spire-agent health check

Description of change

This diff makes the agent health check report unhealthy until the agent has secured an SVID.

I could use some help figuring out how to test this since I was able to find tests covering the health check infrastructure, but none covering the actual health check conditions.

I could also use a pointer at any documentation that would need updating.

Which issue this PR fixes
#5297

pkg/agent/agent.go Outdated Show resolved Hide resolved
pkg/agent/agent.go Outdated Show resolved Hide resolved
@Manbeardo
Copy link
Contributor Author

replaced fmt.Errorf with errors.New where applicable

Copy link
Member

@amartinezfayo amartinezfayo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @Manbeardo!

@amartinezfayo amartinezfayo added this to the 1.10.2 milestone Jul 30, 2024
@amartinezfayo amartinezfayo merged commit 033d8d6 into spiffe:main Aug 5, 2024
33 checks passed
amartinezfayo added a commit to amartinezfayo/spire that referenced this pull request Sep 3, 2024
This reverts commit 033d8d6.

Signed-off-by: Agustín Martínez Fayó <[email protected]>
@amartinezfayo amartinezfayo mentioned this pull request Sep 3, 2024
amartinezfayo added a commit to amartinezfayo/spire that referenced this pull request Sep 3, 2024
This reverts commit 033d8d6.

Signed-off-by: Agustín Martínez Fayó <[email protected]>
amartinezfayo added a commit that referenced this pull request Sep 3, 2024
This reverts commit 033d8d6.

Signed-off-by: Agustín Martínez Fayó <[email protected]>
amartinezfayo added a commit to amartinezfayo/spire that referenced this pull request Sep 4, 2024
…ranch

This reverts commit 033d8d6.

Signed-off-by: Agustín Martínez Fayó <[email protected]>
amartinezfayo added a commit that referenced this pull request Sep 4, 2024
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.

3 participants