def list_secrets(boto_client):
    """Return a list of all secrets"""
    next_token = ""
    pagination_finished = False
    secrets = []
    response = boto_client.list_secrets(
        MaxResults=20
    )
    while not pagination_finished:
        for secret in response['SecretList']:
            secrets.append(secret)
        if 'NextToken' in response:
            next_token = response['NextToken']
            response = boto_client.list_secrets(
                MaxResults=20,
                NextToken=next_token
            )
        else:
            pagination_finished = True

    return secrets