#5150 ipa vault-find doesn't work for services
Closed: Fixed None Opened 8 years ago by alich.

As admin user I'm able to create service vaults but I'm not able to list them when I don't remember the name.

VERSION: 4.2.90.201507201402GIT37b1af9, API_VERSION: 2.146

$ ipa vault-add ServiceVault --service HTTP/server.example.com --password-file password.txt
--------------------------
Added vault "ServiceVault"
--------------------------
  Vault name: ServiceVault
  Type: standard
  Owner users: admin

$ ipa vault-find
----------------
0 vaults matched
----------------
----------------------------
Number of entries returned 0
----------------------------

It works well when I enter the service name.

$ ipa vault-find --service HTTP/server.example.com
---------------
1 vault matched
---------------
  Vault name: ServiceVault
  Type: standard
----------------------------
Number of entries returned 1
----------------------------

There is no option to list service (according to type) like for "shared" vaults for example:

$ ipa vault-find --help
- SNIP-
  --service=STR    Service name of the service vault
  --shared         Shared vault
- SNIP-

I'll try to look into the matter.

The same issue is with user vaults. Expected output is covered in the design page.

prerequisite:
master:

  • 01dd951 vault: Add container information to vault command results

ipa-4-2:

  • cb575e6 vault: Add container information to vault command results

master:

  • 0abaf19 Add flag to list all service and user vaults

ipa-4-2:

  • 89c9fea Add flag to list all service and user vaults

Metadata Update from @alich:
- Issue assigned to cheimes
- Issue set to the milestone: FreeIPA 4.2.1

7 years ago

Login to comment on this ticket.

Metadata