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

AWS permissions issues hiddden in csharp logs #273

Open
lyricnz opened this issue Jul 23, 2020 · 0 comments
Open

AWS permissions issues hiddden in csharp logs #273

lyricnz opened this issue Jul 23, 2020 · 0 comments
Assignees

Comments

@lyricnz
Copy link

lyricnz commented Jul 23, 2020

Describe the bug
Was just working with @sushantmimani on #260 and ran into an incidental issue. In setting up the test code, a permission was missed, but Asherah only emitted a null object reference, nothing about the cause.

Object reference not set to an instance of an object.
   at GoDaddy.Asherah.AppEncryption.Persistence.DynamoDbMetastoreImpl.LoadLatest(String keyId)
   at GoDaddy.Asherah.AppEncryption.Envelope.EnvelopeEncryptionJsonImpl.LoadLatestKeyRecord(String keyId)

To Reproduce
Remove permission to AWS DynamoDB in csharp

Expected behavior
Clear message or rethrow of AWS exception.

Screenshots
Sushant Mimani 2 hours ago

i can see access issue logs in cloudwatch when i remove DynamoDB perms from my role
Also, from what i can see, the logging varies slightly for Java and C#. The above trace was from the Java SDK but you’re right, the C# one seems to gobble up those permission issue logs.

Additional context
As discussed in Slack #asherah

@sushantmimani sushantmimani self-assigned this Sep 16, 2020
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