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

Unable to Restore Encrypted Backup from backup UI after rotating encryption key #134162

Open
dcmeglio opened this issue Dec 28, 2024 · 3 comments

Comments

@dcmeglio
Copy link
Contributor

dcmeglio commented Dec 28, 2024

The problem

I got an rpi 5 for Christmas and I wanted to migrate my install to it. Based on the discussion here https://discord.com/channels/330944238910963714/427516175237382144/1321850898581946519 this sounds impossible as the key for the "new" device is autopopulated and I can't enter the one from my emergency restore kit. @balloob commented it's being worked on, but I can't find any issue report for this so I wanted to make sure it's tracked as an open issue in case it wasn't already.

Without this functionality I don't think there is a way to migrate HA to new hardware? We believe it's possible this bug may pre-date 2025.1, but since encrypted backups are now mandatory, the issue will be more widespread.

What version of Home Assistant Core has the issue?

2025.1.0b2

What was the last working version of Home Assistant Core?

NA

What type of installation are you running?

Home Assistant OS

Integration causing the issue

backup

Link to integration documentation on our website

https://www.home-assistant.io/integrations/backup/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (backup) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of backup can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign backup Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


backup documentation
backup source
(message by IssueLinks)

@def1149
Copy link

def1149 commented Dec 28, 2024

Confirmed. You can't manually set the key to restore a backup created by a previous key

@mib1185 mib1185 added this to the 2025.1.0 milestone Dec 28, 2024
@balloob balloob changed the title Unable to Restore Encrypted Backup to new Device Unable to Restore Encrypted Backup from backup UI after rotating encryption ke Dec 29, 2024
@balloob balloob changed the title Unable to Restore Encrypted Backup from backup UI after rotating encryption ke Unable to Restore Encrypted Backup from backup UI after rotating encryption key Dec 29, 2024
@balloob
Copy link
Member

balloob commented Dec 29, 2024

You can upload and restore a backup during onboarding. This bug does not impact new hardware. The issue is when you open backup info page and the backup is encrypted with a different key than the currently set key in Home Assistant.

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

No branches or pull requests

4 participants