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

config: Support hostnames in registrar_ip option #797

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

ansasaki
Copy link
Contributor

This restores previous behavior where hostnames could be used to set the 'registrar_ip' configuration option.

The configuration will try to parse the input configuration string as an IP and in case of failure, try to parse the string as a hostname.

Fixes: #794

@ansasaki
Copy link
Contributor Author

/packit retest-failed

Copy link

codecov bot commented May 29, 2024

Codecov Report

Attention: Patch coverage is 54.54545% with 15 lines in your changes missing coverage. Please review.

Project coverage is 61.22%. Comparing base (2f7b3ad) to head (d4becf3).
Report is 27 commits behind head on master.

Additional details and impacted files
Flag Coverage Δ
e2e-testsuite 61.22% <54.54%> (+3.63%) ⬆️
upstream-unit-tests 61.22% <54.54%> (+10.21%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
keylime-agent/src/config.rs 87.11% <66.66%> (-0.39%) ⬇️
keylime-agent/src/error.rs 15.07% <0.00%> (-0.18%) ⬇️
keylime-agent/src/registrar_agent.rs 94.54% <71.42%> (-3.57%) ⬇️
keylime/src/hostname_parser.rs 50.00% <50.00%> (ø)

... and 7 files with indirect coverage changes

@ansasaki
Copy link
Contributor Author

To address the reduction in the test coverage, the issue RedHat-SP-Security/keylime-tests#586 was created

This restores previous behavior where hostnames could be used to set the
'registrar_ip' configuration option.

The configuration will try to parse the input configuration string as an
IP and in case of failure, try to parse the string as a hostname.

Signed-off-by: Anderson Toshiyuki Sasaki <[email protected]>
@ansasaki ansasaki force-pushed the restore_hostname branch from 30b1881 to d4becf3 Compare June 6, 2024 07:02
@ansasaki ansasaki merged commit 0aad36e into keylime:master Jun 6, 2024
10 of 11 checks passed
@ansasaki ansasaki deleted the restore_hostname branch June 6, 2024 08:01
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.

Keylime Agent will crash on hostname usage
7 participants