- is_allowed matches pubkey_prefix only; sender names are never trusted
(channel senders must be known contacts of the companion for the
MeshCore integration to include their pubkey_prefix)
- channel messages on channel index 0 (public) and hashtag channels
('#name') are ignored unconditionally, before the allowlist check
- config flow validates allowlist entries as 6-64 hex characters
(invalid_allowlist error) and UI strings/README updated
45 lines
1.5 KiB
JSON
45 lines
1.5 KiB
JSON
{
|
|
"title": "MeshCore Agent",
|
|
"config": {
|
|
"step": {
|
|
"user": {
|
|
"title": "MeshCore Agent",
|
|
"description": "Allow MeshCore nodes to talk to the agent. Only public key prefixes are accepted (channel senders must be known contacts to appear with one).",
|
|
"data": {
|
|
"allowlist": "Allowed senders (pubkey prefixes, comma separated)",
|
|
"allow_all": "Allow all senders (not recommended)",
|
|
"max_reply": "Maximum reply length (characters)"
|
|
}
|
|
}
|
|
},
|
|
"error": {
|
|
"invalid_max_reply": "Maximum reply length must be a number between 20 and 500.",
|
|
"invalid_allowlist": "Allowlist entries must be public key prefixes (6-64 hex characters, comma separated)."
|
|
}
|
|
},
|
|
"options": {
|
|
"step": {
|
|
"init": {
|
|
"title": "MeshCore Agent options",
|
|
"description": "Allow MeshCore nodes to talk to the agent. Only public key prefixes are accepted (channel senders must be known contacts to appear with one).",
|
|
"data": {
|
|
"allowlist": "Allowed senders (pubkey prefixes, comma separated)",
|
|
"allow_all": "Allow all senders (not recommended)",
|
|
"max_reply": "Maximum reply length (characters)"
|
|
}
|
|
}
|
|
},
|
|
"error": {
|
|
"invalid_max_reply": "Maximum reply length must be a number between 20 and 500.",
|
|
"invalid_allowlist": "Allowlist entries must be public key prefixes (6-64 hex characters, comma separated)."
|
|
}
|
|
},
|
|
"entity": {
|
|
"todo": {
|
|
"todos": {
|
|
"name": "MeshCore todos"
|
|
}
|
|
}
|
|
}
|
|
}
|