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

Provide support for ssh-sk for Nova #1386

Draft
wants to merge 2 commits into
base: stackhpc/2024.1
Choose a base branch
from

Conversation

jackhodgkiss
Copy link
Contributor

Provide ssh-sk based keys for use within Nova providing users with the ability to further secure SSH access to their instances.

This has been achieved with by bumping the cryptography package to version 43.0.0 which includes pyca/cryptography#10608.

@jackhodgkiss jackhodgkiss added the enhancement New feature or request label Nov 26, 2024
@jackhodgkiss jackhodgkiss self-assigned this Nov 26, 2024
@jackhodgkiss jackhodgkiss requested a review from a team as a code owner November 26, 2024 11:45
@@ -346,6 +346,11 @@ kolla_build_blocks:
{% set magnum_capi_packages = ['magnum-capi-helm==1.1.0'] %}
RUN {{ macros.install_pip(magnum_capi_packages | customizable("pip_packages")) }}
{% endraw %}
nova_base_footer: |
{% raw %}
{% set nova_packages = ['cryptography==43.0.0'] %}
Copy link
Member

Choose a reason for hiding this comment

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

I assume cryptography is pulled in as a dependency to Nova? Just bump it up in upper-constraints using a macro?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wasn't sure what the best approach is as adjusting upper-constraints would impact more than just Nova.

Copy link
Member

Choose a reason for hiding this comment

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

Well, we use u-c fork as a repo, but there are macros in Kolla that mangle u-c entries - you could use that only for Nova.

@jackhodgkiss jackhodgkiss force-pushed the add-sk-support-for-nova branch 3 times, most recently from 62c4d6e to d335906 Compare November 27, 2024 20:51
Support for `ssh-sk` keys was recently added in the cryptography package pyca/cryptography#10608. By installing version `43.0.0` we can benefit from such support within `Nova`
The `Nova` containers with the tag `20241126T110410` provides support
for `ssh-sk` providing users the option of improving the security of SSH
access to their instances.

[skip ci]
@jackhodgkiss jackhodgkiss force-pushed the add-sk-support-for-nova branch from d335906 to 810c48f Compare November 27, 2024 21:03
@jackhodgkiss jackhodgkiss marked this pull request as draft December 1, 2024 20:21
@jackhodgkiss
Copy link
Contributor Author

@mnasiadka not sure why it is failing to build. I see INFO:kolla.common.utils:Added next task BuildTask(nova-compute) to queue and then nothing from nova-compute until the end when it says "failed": [{"name": "nova-compute", "status": "building"}]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants