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

meta_icon in authentik_application keeps changing #400

Open
mscreations opened this issue Sep 1, 2023 · 1 comment
Open

meta_icon in authentik_application keeps changing #400

mscreations opened this issue Sep 1, 2023 · 1 comment

Comments

@mscreations
Copy link

I am trying to set meta_icon in several applications, but am running into an issue. If I try to use the full actual path "/media/application-icons/whatever.png" in terraform, after applying, it is set to "/media/media/application-icons/whatever.png", which doesn't work. I changed my terraform file to use the path "/application-icons/whatever.png" which works and Authentik shows the icon, but then terraform wants to modify the value everytime as the API returns "/media/application-icons/whatever.png".

Using v2023.8.0

image

@mscreations
Copy link
Author

I found a workaround for this issue that seems to work. Instead of the relative /media path, I use the absolute path https://auth.<mydomain>/media/application-icons/<filename>.png. Terraform no longer wants to modify the resource everytime with this change.

I'm leaving this issue open as I feel that the mismatch between what I set for a relative path and the API response is a bug that should be corrected at some point, but looking at the code for everything I'm not sure that this is an issue with the terraform provider or with Authentik's API itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant