Skip to content

Sercrets manager secrets caching seems not working #749

@jacoor

Description

@jacoor

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions