#5922 ipa vault-archive overwrites an existing value without warning
Closed: fixed 5 years ago Opened 7 years ago by pvoborni.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1339129

Description of problem:
The "ipa vault-archive" command overwrites an existing value without any
warning.



Version-Release number of selected component (if applicable):
ipa-admintools-4.2.0-15.el7_2.15.x86_64


How reproducible:
Always.



Steps to Reproduce:
1. Add a value to a vault:
   # ipa vault-archive my-first-vault --data AbcD3fg8
   -----------------------------------------
   Archived data into vault "my-first-vault"
   -----------------------------------------

2. Verify that the value was stored in the vault:
   # ipa vault-retrieve my-first-vault
   ------------------------------------------
   Retrieved data from vault "my-first-vault"
   ------------------------------------------
     Data: AbcD3fg8

3. Re-run the "ipa vault-archive" with a different value for --data:
   # ipa vault-archive my-first-vault --data dmVyeSBzZWNyZXQ=
   -----------------------------------------
   Archived data into vault "my-first-vault"
   -----------------------------------------

4. Verify what's in the vault:
   # ipa vault-retrieve my-first-vault
   ------------------------------------------
   Retrieved data from vault "my-first-vault"
   ------------------------------------------
     Data: dmVyeSBzZWNyZXQ=



Actual results:
Existing data in the vault is overwritten without any notice.


Expected results:
If there is already data in the vault, the user should be notified or ask for
confirmation before overwriting.

See the bz for discussion. Intention is to improve help and not issue a warning.

Metadata Update from @pvoborni:
- Issue assigned to someone
- Issue set to the milestone: FreeIPA 4.5 backlog

7 years ago

Metadata Update from @frenaud:
- Issue close_status updated to: None
- Issue set to the milestone: FreeIPA 4.6.4 (was: FreeIPA 4.5 backlog)

5 years ago

master:

  • e06c756 ipa vault-archive overwrites an existing value without warning

ipa-4-6:

  • 9864ea2 ipa vault-archive overwrites an existing value without warning

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

5 years ago

Login to comment on this ticket.

Metadata