Skip to content

refactor(infra): use Key Vault reference for chat system prompt#184

Merged
willvelida merged 1 commit intomainfrom
feature/asi01-system-prompt-kv-reference
Mar 15, 2026
Merged

refactor(infra): use Key Vault reference for chat system prompt#184
willvelida merged 1 commit intomainfrom
feature/asi01-system-prompt-kv-reference

Conversation

@willvelida
Copy link
Owner

Summary

Updates the chat-api Bicep template to reference the system prompt from Key Vault instead of storing it as a plain-text App Configuration value.

Changes

  • Removed the chatSystemPrompt Bicep parameter (which had the old plain-text prompt as a default)
  • Changed the chatSystemPromptSetting App Configuration resource to use a Key Vault reference, matching the existing AnthropicApiKey pattern

Context

The hardened system prompt was already uploaded to Key Vault via the CLI. This PR brings the Bicep template in sync with the actual Azure state.

Part of ASI01 (Agent Goal Hijack) — plan: docs/plans/2026-03-13-asi01-harden-system-prompt.md

Signed-off-by: Will Velida <willvelida@hotmail.co.uk>
@github-actions
Copy link

Code Coverage

Package Line Rate Branch Rate Health
Biotrackr.Chat.Api 79% 74%
Summary 79% (452 / 574) 74% (86 / 116)

Minimum allowed line rate is 70%

@willvelida willvelida merged commit bbbf9d2 into main Mar 15, 2026
13 checks passed
@willvelida willvelida deleted the feature/asi01-system-prompt-kv-reference branch March 15, 2026 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant