Project

General

Profile

Bug #48941

Handle pwenc_decrypt errors in EncryptedDictField of Cloud Sync tasks

Added by Andrew Taylor 10 months ago. Updated 6 months ago.

Status:
Done
Priority:
No priority
Assignee:
Vladimir Vinogradenko
Category:
Middleware
Target version:
Seen in:
Severity:
Medium
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

After restoring from config backup to the same hardware system (changing boot device) I was unable to view any existing Cloud Sync jobs, and unable to list existing/create new ones due to middleware error attached.

Would like to fix the bug, but also find a way to manually clear the cloud sync tasks.


Related issues

Copied to FreeNAS - Bug #51014: Handle pwenc_decrypt errors in EncryptedDictField of Cloud Sync tasksClosed
Copied to FreeNAS - Bug #51025: Handle pwenc_decrypt errors in EncryptedDictField of Cloud Sync tasksClosed

History

#1 Updated by Andrew Taylor 10 months ago

  • File debug-taysan100-20180930011144.txz added
  • Private changed from No to Yes

#2 Updated by Andrew Taylor 10 months ago

  • File Freenas-output.txt added

#3 Updated by Dru Lavigne 10 months ago

  • Assignee changed from Release Council to William Grzybowski

#4 Updated by William Grzybowski 10 months ago

  • Assignee changed from William Grzybowski to Vladimir Vinogradenko
  • Target version changed from Backlog to TrueNAS 11.1-U6.2
  • Severity changed from New to Medium

Vladimir, we need to handle that exception when for some reason we cant decrypt the data.

Andrew, how did you upload the config? Did you use the full tar file containing the secret password seed or only the database .db file?

#5 Updated by Vladimir Vinogradenko 10 months ago

  • Status changed from Unscreened to In Progress

#6 Updated by Dru Lavigne 10 months ago

  • File deleted (debug-taysan100-20180930011144.txz)

#7 Updated by Dru Lavigne 10 months ago

  • File deleted (Freenas-output.txt)

#8 Updated by Dru Lavigne 10 months ago

  • Private changed from Yes to No

#9 Updated by Mark Halter 10 months ago

fxnfnfc

#10 Updated by Andrew Taylor 9 months ago

Sorry late update, I uploaded only the db file, not the tar and no encryption key used.

#11 Updated by Vladimir Vinogradenko 9 months ago

Andrew, cloud credentials are encrypted so they are lost when encryption key is not preserved.

It's still a bug that UI crashes. It is fixed. Meanwhile to restore UI functionality you can run:

echo "delete from tasks_cloudsync;" | sqlite3 /data/freenas-v1.db
echo "delete from system_cloudcredentials;" | sqlite3 /data/freenas-v1.db

#12 Updated by Dru Lavigne 9 months ago

  • Subject changed from Cloud Sync tasks corrupted after config backup restore to Handle pwenc_decrypt errors in EncryptedDictField of Cloud Sync tasks
  • Needs Merging changed from Yes to No

#14 Updated by Bug Clerk 9 months ago

  • Copied to Bug #51014: Handle pwenc_decrypt errors in EncryptedDictField of Cloud Sync tasks added

#15 Updated by Bug Clerk 9 months ago

  • Copied to Bug #51025: Handle pwenc_decrypt errors in EncryptedDictField of Cloud Sync tasks added

#16 Updated by Dru Lavigne 9 months ago

  • Status changed from In Progress to Ready for Testing

#17 Updated by Dru Lavigne 8 months ago

  • Target version changed from TrueNAS 11.1-U6.2 to 11.1-U7

#18 Updated by William Grzybowski 6 months ago

Acceptance Criteria
Setup cloud sync (credentials and tasks) and then delete /data/pwenc_secret. You should be able to edit the cloud sync, although some attributes will be lost.

#20 Updated by Jeff Ervin 6 months ago

47458
47467

Test Failed FreeNAS-11.1-U7-INTERNAL1

Acceptance criteria used with the results shown in screenshots. Was able to edit the task, but the task failed once ran.

#21 Updated by William Grzybowski 6 months ago

  • Status changed from Failed Testing to Passed Testing

Thats expected

#22 Updated by Dru Lavigne 6 months ago

  • Needs QA changed from Yes to No

#23 Updated by Aaron St. John 6 months ago

#24 Updated by Aaron St. John 6 months ago

  • Needs Doc changed from Yes to No

#25 Updated by Dru Lavigne 6 months ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF