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

Sercrets manager secrets caching seems not working #749

Open
jacoor opened this issue Jul 24, 2024 · 0 comments
Open

Sercrets manager secrets caching seems not working #749

jacoor opened this issue Jul 24, 2024 · 0 comments

Comments

@jacoor
Copy link

jacoor commented Jul 24, 2024

I am using AWS secrets manager with secretrs.
In the cloudtrail logs for the below query

{
          "match_phrase": {
            "aws.cloudwatch.log_group": "/cloudtrail"
          }
        },
        {
          "match_phrase": {
            "parsed_message.eventName": "GetSecretValue"
          }
        },
        {
          "match_phrase": {
            "parsed_message.userIdentity.sessionContext.sessionIssuer.userName": "serverlessrepo-terraform--ApplicationElasticServerl-SKjNqvlXy88n"
          }
        }

I see 10k events for 20 minutes.

What am I also seeing is that it looks like feedback loop. The forwarder requests secret, this is being logged into Cloudtrail. Cloudtrail is being ingested by forwarder, so this again causes to run another instance. Filtering out "getSecretValue" call on cloudwatch trigger solved the issue for me.

Steps to reproduce

  • use SSM in lambda config
  • set lambda to ingest cloudtrail w/o filtering on Getsecretvalue
  • watch invocation level go mad
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

1 participant