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

Modified hub package install scriptlet to use hostname -s and fail if that is longer than 64 characters #1551

Merged
merged 2 commits into from
Dec 12, 2024

Conversation

craigcomstock
Copy link
Contributor

We create a self-signed certificate and the CN must be 64 characters or less so use hostname -s instead of hostname -f and fail if even the short name is longer than 64 characters.

Ticket: CFE-4469
Changelog: title

@craigcomstock craigcomstock marked this pull request as draft December 10, 2024 12:08
@cf-bottom
Copy link

Thanks for submitting a PR! Maybe @craigcomstock can review this?

… that is longer than 64 characters

We create a self-signed certificate and the CN must be 64 characters or less so use hostname -s instead of hostname -f and fail if even the short name is longer than 64 characters.

This check is added to the preinstall scriptlet so that the package will not even be unpacked if hostname -s is longer than 64 characters long.

This check is only activated if there is no current cert present such as during an upgrade.

Ticket: CFE-4469
Changelog: title

libre
@craigcomstock
Copy link
Contributor Author

See if I can get the package to not even install with a preinstall check for hostname -s being less than 64 characters.

@craigcomstock craigcomstock marked this pull request as ready for review December 11, 2024 20:10
… deployment-tests workflow artifacts

No need to duplicate the saving of packages.
Almost always we will build the package and save it as an artifact during the build_cfengine_hub_package workflow.

Ticket: none
Changelog: none
@craigcomstock
Copy link
Contributor Author

@cf-bottom jenkins

@cf-bottom
Copy link

Copy link
Member

@nickanderson nickanderson left a comment

Choose a reason for hiding this comment

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

Seems OK to me

@craigcomstock craigcomstock merged commit 7fb59d0 into master Dec 12, 2024
2 checks passed
@craigcomstock craigcomstock deleted the CFE-4469/master branch December 12, 2024 19:46
@craigcomstock
Copy link
Contributor Author

cherry picks
#1557
#1556

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants