Skip to content

Preserve config values masked by credential overlap - #60

Open
AnarchByte0 wants to merge 1 commit into
warcon-app:mainfrom
AnarchByte0:rcob-config-masked-values
Open

AnarchByte0 wants to merge 1 commit into
warcon-app:mainfrom
AnarchByte0:rcob-config-masked-values

Conversation

@AnarchByte0

Copy link
Copy Markdown

A configuration value can contain the same text as an RCON credential. The existing response masking replaces that text with (hidden) even in an unrelated welcome-message line; applying a rotation edit can then fail or write a partially masked value.

Mask the complete affected value and restore it only from a matching line in the current server document. This keeps credentials hidden while preserving unrelated values. A regression test covers a welcome line containing the password and a subsequent configuration edit.

Validation: bun test src/lib/config-doc.test.ts src/lib/server/actions.test.ts (78 passed); bun run check.

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