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

Afterburn SSH public keys fetching is failing on Akamai #1111

Open
tormath1 opened this issue Sep 13, 2024 · 0 comments
Open

Afterburn SSH public keys fetching is failing on Akamai #1111

tormath1 opened this issue Sep 13, 2024 · 0 comments

Comments

@tormath1
Copy link
Contributor

Bug

⚠️ This is not an Afterburn bug it's more a design choice that impacts Afterburn assumption.

If you start an instance using Afterburn on Akamai with --authorized_users foo the SSH keys associated to the foo user profile won't be available on the /v1/ssh-keys metadata endpoint so Afterburn will fail to inject the keys.

Which means, if you want to get your SSH keys on the deployed instance, it's mandatory to pass them through Ignition.

/v1/ssh-keys metadata endpoint actually returns the key available in the user-data (Ignition or cloud-init), so if you deploy your instance with SSH keys in Ignition, Afterburn won't fail but it's pointless regarding the purpose of Ignition / Afterburn.

This issue is more here for reference purposes and help users facing the same issue and we can also discuss about removing SSH keys support from Afterburn implementation.

Operating System Version

Flatcar beta-4054.1.0

Afterburn Version

Afterburn v5.6.0

Environment

What hardware/cloud provider/hypervisor is being used to run Afterburn? Akamai

Expected Behavior

Get the metadata service to return the ssh public keys associated to the foo user

Actual Behavior

The metadata service returns keys only available in user-data

Reproduction Steps

  1. Start an instance with SSH keys in user-data (cloud-init or Ignition) -> Afterburn will be able to fetch SSH keys
  2. Start an instance without SSH keys in user-data -> Afterburn won't be able to fetch SSH keys

Other Information

@travier travier changed the title Afterburn SSH public keys fetching is failing on Afterburn Afterburn SSH public keys fetching is failing on Akamai Oct 8, 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

No branches or pull requests

1 participant