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

Application icons with duplicate names are not removed once the application icon is removed #11964

Open
4d62 opened this issue Nov 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@4d62
Copy link
Contributor

4d62 commented Nov 8, 2024

Describe the bug
When two or more application icons have the same name and the storage backend is set to s3, a random suffix is added to the file. When the application icon is changed or removed, the duplicate icon is not removed. No errors are shown to the user or are present in console to indicate a configuration error.

To Reproduce
Steps to reproduce the behavior:

  1. Set the storage backend to s3 and configure it in your env file
  2. Create 2 applications and assign them the same icon
  3. Update the icon of one of the applications
  4. Check the S3 bucket and notice the duplicate icon still present

Expected behavior
The second icon is removed

Screenshots
2 applications with same icon:
cfnrnp

Ok, it works as expected:
c7Iw6w

The application icon is changed:
Tzx0b1

The old application icon is not removed:
PqZjtL

Logs
Output of docker-compose logs or kubectl logs respectively

Version and Deployment (please complete the following information):

  • authentik version: 2024.10.1
  • Deployment: docker compose

Additional context
Bucket is tied to a read-write user with the default policy of

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "s3:*"
            ],
            "Resource": [
                "arn:aws:s3:::*"
            ]
        }
    ]
}
@4d62 4d62 added the bug Something isn't working label Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant