# Understand a blocked secret warning

*[Tutorial 15 of 15](/docs/tutorials) · Connect tools and collaborate. Follow the sequence or bring your own equivalent inputs.*

**At a glance**

1. [**Understand what was blocked**](#understand-what-was-blocked): Read the incident without revealing the value.
2. [**Choose a safe continuation**](#choose-a-safe-continuation): Pick a path that keeps the secret protected.
3. [**Record the lesson**](#record-the-useful-lesson): Keep the practical rule for the next time.

Use Security Watch to understand an incident and choose a safe way to continue working.

**You’ll use:** Security Watch and your client's supported secret guard. **You’ll finish with:** an understood warning and a practical next action.

## Before you start

Use an existing incident you are allowed to view, or walk through the clearly fictional example below. Do not paste a real credential or deliberately open a secret file to create an incident. Coverage varies by client, plugin version, and settings; check [Supported clients](/docs/reference/supported-clients).

**Fictional example:** an agent tried to read a file containing an API key while investigating a service error, and the guard blocked that read. This example contains no credential and is not a report of a real incident.

Choose the existing-incident path if you have a permitted incident link; [Security Watch](/docs/features/security-watch) explains visibility and coverage. Otherwise use the fictional prompt below as written. You do not need an incident or a secret to practice the reasoning.

> **Continue the collaboration storyline:** while the next developer investigates the personal news intelligence provider, Security Watch blocks an attempt to print a secret-bearing configuration file. The [story brief](/docs-assets/examples/personal-news-collaboration-brief.md) connects this warning to the earlier handoff without supplying a real credential.

## 1. Understand what was blocked

Open Security Watch and select the permitted incident. Read its stated action and reason without revealing secret values.

If the agent has no Security Watch read tool, use the console's permitted incident view and provide only its sanitized action, reason, and time. If the view is inaccessible or there is no incident, use the fictional example and label the exercise as partial coverage; do not create a real secret event to finish the tutorial.

**Ready-to-use example**

```text
First follow https://www.massifyai.com/docs-assets/setup/connection-check.md. Complete setup only if needed, then continue below.

Explain this scenario: An agent's attempt to read a secret-bearing configuration file was blocked while investigating a service's “authentication failed” error. The application expects a variable named DEMO_SERVICE_KEY; no value is provided. Explain what the example establishes and what remains unknown. Propose one diagnostic check using only non-secret code or an authorized operator's confirmation that configuration is present. Do not read secret files, reveal values, change configuration, or test the guard.
```

**Prompt template**

```text
First follow https://www.massifyai.com/docs-assets/setup/connection-check.md. Complete setup only if needed, then continue below.

Explain this scenario: <incident details> Explain what the example establishes and what remains unknown. Propose one diagnostic check using only non-secret code or an authorized operator's confirmation that configuration is present. Do not read secret files, reveal values, change configuration, or test the guard.
```

The example continues the handoff without creating a real incident. Switch to **Prompt template** only when you already have a permitted Security Watch incident and task.

## 2. Choose a safe continuation

For the example, provide the error message with sensitive values removed, the expected configuration variable names, and relevant non-secret code. Enter credentials through the appropriate secure configuration interface rather than chat.

Expect the agent to distinguish the blocked read from the cause of the service error. For example, it can recommend checking that the code uses `DEMO_SERVICE_KEY`, but it cannot conclude that the key is valid or that the guard caused the authentication error. If you used the fictional prompt, assess that proposed check without supplying more data or running it.

**Ready-to-use example**

```text
First follow https://www.massifyai.com/docs-assets/setup/connection-check.md. Complete setup only if needed, then continue below.

Continue this personal news exercise using only these non-secret facts: the application reports “authentication failed”; its provider adapter expects a variable named DEMO_SERVICE_KEY; an attempt to print a secret-bearing configuration file was blocked; no key value or real incident record is supplied. Inspect only non-secret provider-initialization code in the current application repository, or explain the check as a walkthrough if no implementation exists. Identify how an authorized operator can confirm configuration presence without displaying its value. Distinguish known facts from unknown causes. Do not read the blocked file, change configuration, expose a credential, or bypass the guard.
```

**Prompt template**

```text
First follow https://www.massifyai.com/docs-assets/setup/connection-check.md. Complete setup only if needed, then continue below.

Continue <task> using only these non-secret facts: <non-secret facts>. Inspect only non-secret provider-initialization code in the current application repository, or explain the check as a walkthrough if no implementation exists. Identify how an authorized operator can confirm configuration presence without displaying its value. Distinguish known facts from unknown causes. Do not read the blocked file, change configuration, expose a credential, or bypass the guard.
```

## 3. Record the useful lesson

If this happens repeatedly, record the safe diagnostic procedure in the project knowledge base. If a real credential was exposed elsewhere, follow your organization's credential-response process; a warning here does not establish whether exposure occurred elsewhere.

> **Check the result:** you understand the specific incident and can continue without revealing the protected value. The tutorial does not claim that every secret type or access path is covered.

For the fictional exercise, the result is a safe proposed continuation, not evidence that the guard ran: inspect the non-secret request construction and configuration variable names, and ask an authorized operator to confirm configuration presence without returning its value.

***

Previous: [Hand off a project to another developer](/docs/tutorials/handoff-project). Return to [all tutorials and additional use cases](/docs/tutorials).
