TL;DR: thank you @bertabcd1234 for masking the token, that is exactly the kind of pragmatic solution needed across the hub.
I’ve spent a fair amount of time keeping an AI coding agent from leaking hub tokens to AI session logs. Written instructions never held up; only keeping the secrets out of its view did.
Keeping them out of logs is in fact not enough: agents end up leaking secrets into session logs from app state ! So my apps now encrypt secrets saved in app state, and in part because decryption is super expensive (especially on the previous-gen hubs) I save them to a @Field variable in memory - mostly to keep them out of the agent's reach.
Even so, with all those fences and tooling in place, just yesterday I stopped an agent who, after a routine request to push code to git, literally exclaimed:
I'll scan the files to make sure there aren't any credentials in them
Unfortunately, by the time I noticed it, it had already scanned the files, the result of which gets sent to the AI's session log. Fortunately, because I had put them out of its view, nothing was leaked (why this particular prompt made it past the auto-mode classifier is beyond me).
If explicit rules don’t reliably stop a tool built to follow them, “users should be careful” won’t either. Chen’s argument assumes whoever reads the logs could already open the app. With agents holding scoped tools, that’s no longer true. And for users posting debug logs to get help, the issue was never who can read the logs, but where they end up.
That’s the gap this request is meant to close: a platform-level authorization model so integrations, AI agents included, get exactly the access they need and no more. An upvote would be appreciated: Request: a platform-level authorization model for integrations
Your bank statement proves the point: the bank already masks your card and account numbers on it. The vendor names and transaction IDs stay because they’re useful and harmless. That’s exactly the split here: keep the useful context, mask the credential.
Nobody’s asking HE to police every community app, just to set the default in its own and offer a masking helper to developers. Glad to see it’s coming in the next release for MakerAPI.