Skip to content

Invalid Security Token when using Access/Secret key from environment #1209

@mattzuba

Description

@mattzuba

PR #1093 added a check for a null security token value before adding it to the options, but in the env function of the CredentialProvider, getenv(self::ENV_SESSION) is used for a session token, which returns false if it doesn't exist in the environment. This causes a false value for the security token to be added to the policy generated for S3 uploads which is not a valid value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions