Secrets not updated by `flyctl secrets set`

I’m having trouble with setting secrets:

fly secrets set API_KEY='some_production_api_key'

Release v77 created
Monitoring Deployment

3 desired, 3 placed, 3 healthy, 0 unhealthy [health checks: 1 total, 1 passing]
--> v77 deployed successfully

When I go into my Rails application and check ENV['API_KEY'] I’m still getting the old value even after waiting until v77 is deployed but the strange part is that when running env I see the correct (updated) value.

You see the right value when you run fly ssh console and then running env?

That’s weird. If env is correct our environment is doing what it’s supposed to. Is it possible you have two environment variables with different cases like API_KEY and api_key?