🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How to remove secrets from a .mf5 file?

    UIFlow
    1
    2
    1.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kotobuki
      last edited by

      Hi,

      I want to publish examples for UIFlow using HTTP requests. I did as follows.

      1. Create an example with the actual API key
      2. Replace the key with API_KEY
      3. Save as a .mf5 file
      4. Open the .mf5 file with a text editor and check if the API key is not available in the saved file

      I found that the variable for URL is replaced as I expected. However, the original URL containing the API key seems to be available in the http_request block.

      How can I remove the key in UIFlow? Alternative ideas are removing it with a text editor or creating a utility tool, but I want to know if there is a way in UIFlow.

      Thanks,
      Shigeru

      1 Reply Last reply Reply Quote 1
      • K
        kotobuki
        last edited by

        Update: I found the shadowed URL by removing a variable connected to the http_request block. At first, I directly specified the API key as a part of the URL, then replaced it with the variable.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post