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

Backport of cli/namespace: add detailed flag to namespace list into release/1.11.x #20251

Merged

Conversation

hc-github-team-secure-vault-core
Copy link
Collaborator

Backport

This PR is auto-generated from #20243 to be assessed for backporting due to the inclusion of the label backport/1.11.x.

WARNING automatic cherry-pick of commits failed. Commits will require human attention.

merge conflict error: POST https://api.github.com/repos/hashicorp/vault/merges: 409 Merge conflict []

The below text is copied from the body of the original PR.


This enhances the namespace list command to include a detailed flag which will output additional data such as namespace IDs. This is very useful because without this you would either need to use curl or do a vault namespace lookup for every namespace you wanted the ID for in a loop. This lets you get all the information in one command:

$ vault namespace list -detailed
Keys    custom_metadata    id       path
----    ---------------    --       ----
bar/    map[]              yva5e    bar/
foo/    map[]              iZULg    foo/

$ vault namespace list -detailed -format=json
{
  "bar/": {
    "custom_metadata": {},
    "id": "yva5e",
    "path": "bar/"
  },
  "foo/": {
    "custom_metadata": {},
    "id": "iZULg",
    "path": "foo/"
  }
}

Overview of commits

@hc-github-team-secure-vault-core hc-github-team-secure-vault-core force-pushed the backport/namespace-list-id/plainly-intense-fly branch 2 times, most recently from 58992a3 to 6f95541 Compare April 19, 2023 13:37
@hashicorp-cla
Copy link

hashicorp-cla commented Apr 19, 2023

CLA assistant check
All committers have signed the CLA.

* cli/namespace: add detailed flag to namespace list

* changelog
@jasonodonnell jasonodonnell force-pushed the backport/namespace-list-id/plainly-intense-fly branch from 2556b09 to d7cb387 Compare April 19, 2023 13:43
@jasonodonnell jasonodonnell marked this pull request as ready for review April 19, 2023 13:43
@jasonodonnell jasonodonnell enabled auto-merge (squash) April 19, 2023 13:44
@jasonodonnell jasonodonnell added this to the 1.11.10 milestone Apr 19, 2023
@jasonodonnell jasonodonnell merged commit 89bb6c1 into release/1.11.x Apr 19, 2023
@jasonodonnell jasonodonnell deleted the backport/namespace-list-id/plainly-intense-fly branch May 6, 2024 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants