Allowlist pubkey prefixes only; ignore public and hashtag channels
- 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
This commit is contained in:
@@ -4,32 +4,34 @@
|
||||
"step": {
|
||||
"user": {
|
||||
"title": "MeshCore Agent",
|
||||
"description": "Allow MeshCore nodes to talk to the agent. The allowlist accepts public key prefixes or contact names, separated by commas.",
|
||||
"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 or names, comma separated)",
|
||||
"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_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. The allowlist accepts public key prefixes or contact names, separated by commas.",
|
||||
"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 or names, comma separated)",
|
||||
"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_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": {
|
||||
|
||||
Reference in New Issue
Block a user