In this lesson
The security of the flow is your job, not the tool's.
An automation handles real people's data, with nobody watching. Today you do the review every flow needs.
- Keep keys in the right place
- Give each flow only the permission it uses
- Know what never to automate
Keys in one place only
An access key is like the key to the shop. It stays in the tool's vault, which hides the value once it is saved. Never in a spreadsheet, in an email, in a message or inside the request sent to the AI.
What the pros know
If a key showed up in the wrong place, deleting it from there does not solve it. The GitHub documentation, which covers this for keys sent by mistake to a repository, says the first step is to revoke or rotate the key. Once it is revoked, it stops giving access, even if someone copied it. People who work in security call a key that may have been seen a "burned key", and they treat it that way: they generate another one in the service, update the vault and only then look at the rest. Rewriting the history, according to the page itself, may not even be necessary.
Why this matters
Imagine the reminder flow uses the manager's personal account, with access to the whole Drive. One day she leaves the company and the account is closed. The flow stops, and nobody knows why. Worse: if someone breaks into that account, they get into everything.
With a company account that only sees the reminder spreadsheet, both problems go away.
Least privilege
Ask of each flow: what does it really need? If it only reads one spreadsheet, its account only reads that spreadsheet. If the flow is broken into, the damage is the size of the permission.
- Use a company account, not someone's personal one.
- Review from time to time who can edit the flow, and remove anyone who has left.
- Turn on the second factor for everyone.
What goes out to the AI
Every AI step sends text outside. Send only the fields it needs. To classify a message, the customer's name does not help. Take it out. And set how long the run history and the spreadsheet keep the data. Data that does not exist does not leak.
The LGPD, Brazil's data protection law, in plain language
- Purpose: use the data only for what the person expected.
- Necessity: use as little as possible.
- Security: protect it against improper access.
- Review: a decision made by a machine alone can be reviewed at the person's request.
The checklist in ten items
- Credentials only in the tool's vault.
- No key in a spreadsheet, prompt or email.
- Company account, not a personal one.
- Access only to the spreadsheet it needs.
- Who edits the flow: reviewed, with a second factor.
- The AI step gets only the fields it needs.
- No sensitive data in cloud AI.
- A retention period set for the history and the spreadsheet.
- A message started by the company has consent and a way out.
- The flow does not decide on its own anything that affects someone's life.
What not to automate
A decision that changes someone's life: denying credit, firing, refusing service. A conversation about health or a delicate money matter. A reply to a serious complaint. In these cases, the tool can gather the data and draft, but a person decides.
How long to keep it
Ask: how long is this data useful to me? An appointment reminder, only until the day of the appointment. The contact list, for as long as the person is a customer. The run history keeps what went into each run, so there is customer data there too. Set a period, write it on the sheet and delete on the day.
Practice · 10 min
- List the automations you have built. Create a column for each checklist item: key in the vault, company account, least privilege, second factor, minimum data for the AI, retention period.
- Mark Yes, No or Not applicable. Next to it, write what is missing and who does it.
- Fix now whatever takes less than 10 minutes.
Summary
- The key stays in the tool's vault, and nowhere else.
- A key that may have been seen: revoke it and generate another.
- Least privilege and a company account.
- Send the AI only the fields it needs.
- A decision that affects a person's life stays with people.
Sources
Read on October 30, 2026.
- GitHub. Removing sensitive data from a repository: revoking or rotating the key as the first step
- Brazil. Lei 13.709/2018 (LGPD): articles 6, 20 and 46
Lesson quiz
Three situations to apply what you learned.
Isaque Victor free courses