Module 4 · Reliability and final project

Data and security in automations

Lesson 11 of 12 8 min lesson Updated on October 30, 2026
Progress in the course92%

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.

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.

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

The checklist in ten items

  1. Credentials only in the tool's vault.
  2. No key in a spreadsheet, prompt or email.
  3. Company account, not a personal one.
  4. Access only to the spreadsheet it needs.
  5. Who edits the flow: reviewed, with a second factor.
  6. The AI step gets only the fields it needs.
  7. No sensitive data in cloud AI.
  8. A retention period set for the history and the spreadsheet.
  9. A message started by the company has consent and a way out.
  10. 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

  1. 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.
  2. Mark Yes, No or Not applicable. Next to it, write what is missing and who does it.
  3. Fix now whatever takes less than 10 minutes.

Summary

Sources

Read on October 30, 2026.

  1. GitHub. Removing sensitive data from a repository: revoking or rotating the key as the first step
  2. Brazil. Lei 13.709/2018 (LGPD): articles 6, 20 and 46

Lesson quiz

Three situations to apply what you learned.

Lesson 11 of 12

Before moving on to the next lesson

Put what you saw into practice. The boxes stay checked in this browser, so you can come back later.

Have a question about this lesson? The IV Help team answers personally on WhatsApp.

Ask on WhatsApp