@VioneT Would it be possible to have environment variables in Perchance one day?

  • TAPgiles
    link
    English
    18 days ago

    What would that mean in the context of perchance?

    • CocellOP
      link
      English
      1
      edit-2
      8 days ago

      It would mean that we could set secret or sensitive values like API keys, passwords or configuration settings directly in the environment or Perchance server instead of hardcoding them into the app.

      This will grant a security as these values would not be exposed in the app’s public code where anyone can check the values.

      An environment variable refers to a dynamic value stored in a system’s environment.

      These variables are key-value pairs like variable = value where the variable is visible to the public but value itself remains hidden.

      Whew!

      • TAPgiles
        link
        English
        26 days ago

        I see. So really, it’s just private code only you can see/edit from your account, something like that. Everything runs in the browser, is the thing. Which means it will be accessible through the dev console one way or another. I’m not sure it will be possible to actually have something secure and truly hidden like this. But I guess it won’t be plain text in the code editor.