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

DescribeLogStreams is exposing all LogStreamsInBrowser #190

Open
ivikash opened this issue May 27, 2022 · 1 comment
Open

DescribeLogStreams is exposing all LogStreamsInBrowser #190

ivikash opened this issue May 27, 2022 · 1 comment

Comments

@ivikash
Copy link

ivikash commented May 27, 2022

@lazywithclass Thank-You so much for this awesome Library. I am facing some issues with DescribeLogStreams API call which is being initiated in the beginning of API calls.

Current Behavior

We are using wiston and wiston-cloudwatch to create a Logger for Browser environment. For the CloudWatch credentials (or to create the CloudWatch client), we are using Cognito Identity Pool with unauthenticated Role.

The first request to CloudWatch is for DescribeLogStreams which is exposing all our LogStreamNames. We have a lot a LogStreams and due to paginated API there are multiple requests regarding the same.

Expected Behavior

The expected behavior is disable the DescribeLogStreams API call in favor of not exposing the LogStream. Either this should enabled by default or through a configuration.

Environment

  • Browser
@yzpaul
Copy link

yzpaul commented Jun 22, 2022

This pull request will help you set the credentials correctly, and stop you from listing all values in the default profile (which is what is happening now to cause your issue): #192

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

No branches or pull requests

2 participants