Skip to content

(TES): Expired credentials when RequiresPrivilege set to true #1715

Open
@acorbel

Description

@acorbel

Describe the bug
When we set RequiresPrivilege to true for a component directly accessing AWS services (TES), we get expired credentials. However, it works fine if it set to false.

To Reproduce

  • Create an S3 bucket with appropriate permissions given to the Greengrass role
  • Create a component (we're using nodejs) and TES as dependency which uploads a static file to the bucket (PutObjectCommand with SDK V3 js)
  • In the recipe, set RequiresPrivilege to true

Expected behavior
We should get valid credentials by TES.

Actual behavior
We get an The provided token has expired error.

Environment

  • OS: Windows 10
  • Nucleus version: 2.14.3

Additional context
It works as intended if RequiresPrivilege is set to false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageNeeds eyeballs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions