Hello guys! i recently started using infisical but...
# general
a
Hello guys! i recently started using infisical but having some issues fetching secrets for "production" environment. Same secrets exist for staging env and work fine... what am I missing here?
The same also appllies to "Development", for some reason only staging is working when I try to fetch using github actions or CLI 🫤
Apparently the issue was that Infisical CLI uses hidden environment slugs (like
dev
or
prod
) instead of the visible names (“Development”, “Production”). The weird part is - you can’t see or change these slugs anywhere in the UI, and the docs don’t mention them clearly, which makes troubleshooting this super confusing 🙄
h
Hey Andrey, I see the slugs for my projects here:
a
Thanks @Henry Thor Baldursson I see it now too, feel dumb 🤦
h
don't feel dumb every platform has a learning curve 🙂 kind of sucks that the cli doesn't appear have a way to introspect the available environments. terraform does though:
Copy code
data "infisical_projects" "test" {
  slug = "terraform-cloud-secrets"
}

output "environments" {
  value = { for env in data.infisical_projects.test.environments : env.slug => env.name }
}
🙌 1