Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

conjur list --offset doesn’t work properly when running on whole list #341

Open
Conjur-oss opened this issue Nov 24, 2021 · 0 comments
Open

Comments

@Conjur-oss
Copy link
Collaborator

Conjur-oss commented Nov 24, 2021

##Bug description
Running the offset option on the whole list doesn't work as defined, removes more item
When running the same command with filter, works correctly

Steps to reproduce:

  1. run conjur list
  2. run conjur list --offset 2

Current Results:
conjur list
[
"conjur:user:admin1",
"conjur:user:admin2",
"conjur:user:admin3",
"conjur:user:admin4",
"conjur:user:admin5",
"conjur:user:user1",
"conjur:user:user2",
"conjur:user:user3",
"conjur:user:user4",
"conjur:user:user5",
"conjur:policy:data",
"conjur:group:data/vault-admins",
"conjur:policy:data/vault",
"conjur:policy:conjur/authn-iam",
"conjur:policy:conjur/authn-gcp",
"conjur:policy:conjur/authn-azure"
]

conjur list --offset 2
[
"conjur:policy:conjur/authn-gcp",
"conjur:policy:conjur/authn-iam",
"conjur:policy:data",
"conjur:policy:data/vault",
"conjur:user:admin1",
"conjur:user:admin2",
"conjur:user:admin3",
"conjur:user:admin4",
"conjur:user:admin5",
"conjur:user:user1"
]

Expected Results:
conjur list
[
"conjur:user:admin1",
"conjur:user:admin2",
"conjur:user:admin3",
"conjur:user:admin4",
"conjur:user:admin5",
"conjur:user:user1",
"conjur:user:user2",
"conjur:user:user3",
"conjur:user:user4",
"conjur:user:user5",
"conjur:policy:data",
"conjur:group:data/vault-admins",
"conjur:policy:data/vault",
"conjur:policy:conjur/authn-iam",
"conjur:policy:conjur/authn-gcp",
"conjur:policy:conjur/authn-azure"
]

conjur list --offset 2
[
"conjur:user:admin3",
"conjur:user:admin4",
"conjur:user:admin5",
"conjur:user:user1",
"conjur:user:user2",
"conjur:user:user3",
"conjur:user:user4",
"conjur:user:user5",
"conjur:policy:data",
"conjur:group:data/vault-admins",
"conjur:policy:data/vault",
"conjur:policy:conjur/authn-iam",
"conjur:policy:conjur/authn-gcp",
"conjur:policy:conjur/authn-azure"
]

Error Messages:

Logs:

Other Symptoms:

Tenant ID / Pod Number:

##Found in version
12.3

##Workaround Complexity
There's an easy workaround

##Workaround Description
Don't show the full list, filter it by requirement

##Affects Version/s

##Link to JIRA bug
ONYX-14314

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

1 participant