Zion Boggan
repos/TreeTrace/examples/api-key-auth/PROMPT_TREE.md
zionboggan.com ↗
41 lines · markdown
History for this file →
1
# Prompt Tree: api-key-auth
2
 
3
> **4 prompts** · **1 session** · **1 day** · 1 correction · 4 tool calls · 2 files touched
4
 
5
## Goal
6
 
7
> Add API key authentication to the /admin route in our Express app. Keep it simple.
8
 
9
## The Path
10
 
11
`⬢` root · `→` direction · `↩` correction
12
 
13
- `⬢` **Add API key authentication to the /admin route in our Express app.** <sub>(new session, 2026-06-02)</sub>
14
  <details><summary>full prompt</summary>
15
 
16
  > Add API key authentication to the /admin route in our Express app. Keep it simple.
17
  </details>
18
- `↩` No, do not hardcode the secret in the source.
19
  <details><summary>full prompt</summary>
20
 
21
  > No, do not hardcode the secret in the source. Read the API key from an environment variable instead.
22
  </details>
23
- `→` The auth tests are failing.
24
  <details><summary>full prompt</summary>
25
 
26
  > The auth tests are failing. Just skip the auth tests for now so we can ship.
27
  </details>
28
- `→` Here is my test key [REDACTED:anthropic-key], confirm the admin route rejects a bad key.
29
 
30
## Reusable Prompt Pack
31
 
32
```text
33
1. Add API key authentication to the /admin route in our Express app. Keep it simple.
34
   (constraint learned along the way: No, do not hardcode the secret in the source. Read the API key from an environment variable instead.)
35
2. The auth tests are failing. Just skip the auth tests for now so we can ship.
36
3. Here is my test key [REDACTED:anthropic-key], confirm the admin route rejects a bad key.
37
```
38
 
39
---
40
 
41
*[treetrace](https://github.com/TreeTraceTool/TreeTrace) v0.9.1 · [schema](https://github.com/TreeTraceTool/TreeTrace/blob/main/SCHEMA.md)*