| 1 | <html> |
| 2 | <head> |
| 3 | <title>Secrets</title> |
| 4 | </head> |
| 5 | |
| 6 | <body> |
| 7 | <div x-data="{ get settings() { return $store.settings.settings } }"> |
| 8 | <template x-if="settings"> |
| 9 | <div> |
| 10 | <div class="section-title">Secrets Management</div> |
| 11 | <div class="section-description"> |
| 12 | Keep credentials out of prompts and logs while still letting tools receive them when needed. |
| 13 | </div> |
| 14 | |
| 15 | <div class="settings-advanced-section" x-data="{ advOpen: false }"> |
| 16 | <button type="button" class="settings-advanced-toggle" @click="advOpen = !advOpen"> |
| 17 | <x-icon class="settings-advanced-toggle-icon" |
| 18 | :style="advOpen ? 'transform:rotate(90deg)' : ''" name="chevron_right"></x-icon> |
| 19 | <span>Advanced Settings</span> |
| 20 | </button> |
| 21 | |
| 22 | <div class="settings-advanced-body" x-show="advOpen" x-transition.opacity> |
| 23 | <div class="field field-full"> |
| 24 | <div class="field-label"> |
| 25 | <div class="field-title">Variables</div> |
| 26 | <div class="field-description"> |
| 27 | Non-sensitive <code>.env</code> values the agent may see, such as service hosts or usernames. See <a href="javascript:openModal('settings/secrets/example-vars.html')">example</a>. |
| 28 | </div> |
| 29 | </div> |
| 30 | <div class="field-control"> |
| 31 | <textarea style="height: 16em" x-model="settings.variables"></textarea> |
| 32 | </div> |
| 33 | </div> |
| 34 | |
| 35 | <div class="field field-full"> |
| 36 | <div class="field-label"> |
| 37 | <div class="field-title">Secrets</div> |
| 38 | <div class="field-description"> |
| 39 | Sensitive <code>.env</code> values that are masked from the agent, chat history, and logs. Values shorter than 4 characters are not masked. See <a href="javascript:openModal('settings/secrets/example-secrets.html')">example</a>. |
| 40 | </div> |
| 41 | </div> |
| 42 | <div class="field-control"> |
| 43 | <textarea style="height: 16em" x-model="settings.secrets"></textarea> |
| 44 | </div> |
| 45 | </div> |
| 46 | </div> |
| 47 | </div> |
| 48 | </div> |
| 49 | </template> |
| 50 | </div> |
| 51 | </body> |
| 52 | </html> |