Is it possible to access secrets from uplink module?

While testing an app with an uplink script, I got this error:

anvil.secrets.SecretError: 'Uplink code cannot access secrets for this app.'

Am I doing something wrong?
Or accessing secrets from uplink is just impossible?

No, it’s not possible: https://anvil.works/docs/security/encrypting-secret-data#using-secrets-from-code

1 Like