🤖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?

    Scheduled Pinned Locked Moved UIFlow
    2 Posts 1 Posters 2.4k Views
    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 Offline
      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 Offline
        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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post