feat(channels): add mattermost adapter and wiring
This commit is contained in:
@@ -891,6 +891,7 @@ describe('redactConfig – comprehensive credential redaction', () => {
|
||||
discord: { bot_token: 'dc-secret', allowed_guild_ids: ['g1'], allowed_channel_ids: [], require_mention: true },
|
||||
slack: { bot_token: 'sl-bot', app_token: 'sl-app', signing_secret: 'sl-sign', allowed_channel_ids: [], require_mention: false },
|
||||
matrix: { homeserver_url: 'https://matrix.example.org', access_token: 'mx-secret', allowed_room_ids: ['!room1:example.org'], require_mention: true },
|
||||
mattermost: { server_url: 'https://mattermost.example.org', bot_token: 'mm-secret', allowed_channel_ids: [], require_mention: true, mention_name: 'flynn', poll_interval_ms: 3000 },
|
||||
server: { tailscale: {}, localhost: true, port: 18800, token: 'bearer-secret', tailscale_identity: false, auth_http: true },
|
||||
models: {
|
||||
default: { provider: 'anthropic' as const, model: 'claude', api_key: 'sk-def', auth_token: 'at-def',
|
||||
@@ -958,6 +959,11 @@ describe('redactConfig – comprehensive credential redaction', () => {
|
||||
expect(getPath(result, 'matrix', 'access_token')).toBe('***');
|
||||
});
|
||||
|
||||
it('redacts mattermost.bot_token', () => {
|
||||
const result = redactConfig(asRedactInput(makeFullConfig()));
|
||||
expect(getPath(result, 'mattermost', 'bot_token')).toBe('***');
|
||||
});
|
||||
|
||||
it('redacts server.token', () => {
|
||||
const result = redactConfig(asRedactInput(makeFullConfig()));
|
||||
expect(getPath(result, 'server', 'token')).toBe('***');
|
||||
|
||||
Reference in New Issue
Block a user