chef / chef/knife-ec-backup

Handle Restore of Preexisting Users

Open
#72 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Type: Enhancement
Dominant language
Ruby
Stars
32
Forks
28
PR merge metrics
No merged PRs in 30d

Description

knife-ec-backup should be able to handle the case where a USAG already exists for a user and we are trying to restore that preexisting user along with other non-existent users and all of their ACLs, as in Zendesk 5060.

Currently, if I try to restore an existing user with knife-ec-backup without use of the --skip-useracl option, the update fails. The problem with this is that --skip-useracl applies to all users in the export from the source system, which means none of the users' ACL info is updated, even if only one user is preexisting in the destination system.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating knife-ec-backup's restore path and the handling of the --skip-useracl option; the issue does not name specific files or tests. Reproduce Zendesk 5060 with one preexisting user and other new users, then verify that restoring the preexisting user succeeds while ACLs for all users are updated.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.