Skip to content

Assets: grant permissions on a wildcard #484

Closed

Description

@rix0rrr

Right now, we only grant permissions on specific versions of an asset. That means that if we publish a new version, the Lambda or CodeBuild role using the assets immediately loses permissions to all previous versions of the asset, causing them to fail.

This is inconvenient for CodeBuilds, but will prevent gradual Lambda deployments for example.

We should probably name the asset something like

$BUCKET/assets/$ID/abcdef12345.zip

And give permissions on the $ID prefix, so that all versions are accepted.

Activity

  1. eladb commented on Aug 2, 2018

    @eladb
    Contributor

    Totally, and I like the simple solution

  2. added a commit that references this issue on Aug 6, 2018
    a0ed0f8
  3. added a commit that references this issue on Aug 20, 2018
    2a5240c
  4. added a commit that references this issue on Jul 29, 2026
    45a8bbc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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