Skip to content

fix: secrets__enum infinite loop from broken pagination (closes #487)#503

Open
raajheshkannaa wants to merge 1 commit intoRhinoSecurityLabs:masterfrom
raajheshkannaa:fix/secrets-enum-infinite-loop
Open

fix: secrets__enum infinite loop from broken pagination (closes #487)#503
raajheshkannaa wants to merge 1 commit intoRhinoSecurityLabs:masterfrom
raajheshkannaa:fix/secrets-enum-infinite-loop

Conversation

@raajheshkannaa
Copy link

list_secrets() never passes NextToken to subsequent API calls — the token variable is initialized to False and never updated, so the loop re-fetches the first page forever when the response contains NextToken.

describe_parameters() had a similar issue — the while response is None loop only fetches one page, silently dropping all subsequent pages.

Fixed both to properly paginate using response.get('NextToken') and passing it to the next call.

Fixes #487

…noSecurityLabs#487)

list_secrets() NextToken was never passed to subsequent calls, causing
an infinite loop. describe_parameters() had the same issue — only the
first page was ever fetched. Fixed both to properly paginate.
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.

secrets_enum infinite loop

1 participant