Mail relay: the access-key field is off by default (mail.relay.accessKeyField)
A token issued by hand is set by a developer: setRelayToken() from a script, or mail.relay.token. The panel field and its route take a token only when the project switches the field on. Docs and AGENT.md say when such a token is needed and how to set it; a token of another host is refused on every way in. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
1a11cefffa
commit
edee3a321f
@@ -1013,6 +1013,9 @@ describe('what the panel is told', () => {
|
||||
const smtp = relayPayload({ integrations: { smtpHost: 'smtp.example.com', smtpPassword: 'x', smtpUser: 'u' } })
|
||||
expect((await mailPanelState(smtp, {})).transport).toBe('smtp')
|
||||
expect(await mailPanelState(fresh, false)).toMatchObject({ relay: null, transport: 'none' })
|
||||
// the access-key field is the project's switch, off by default
|
||||
expect(state.accessKeyField).toBeUndefined()
|
||||
expect((await mailPanelState(fresh, { accessKeyField: true })).accessKeyField).toBe(true)
|
||||
expect(JSON.stringify([state])).not.toContain('ims_')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user