fleetd #391: refuse lead fleet replies #402
Reference in New Issue
Block a user
Delete Branch "worker/reply-peer-refusal-391-5a34bd-7"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes fleetd #391 code half.
fleet_replyrejects a PRIMARY lead before MessageService or the reply inbox. The error names both fleet_send peer routes and explains why reply cannot resolve a peer message.Follow-up: removed the permissive three-argument
replyoverload. FleetMcp now has onereplymethod, and it requiresRole. Every FleetMcpTest reply call passes the role explicitly. Droppingprincipal(exchange).role()from the real handler now fails at compile time.Mutation compiler error:
method reply in class dev.ltms.fleet.mcp.FleetMcp cannot be applied to given types; required: dev.ltms.fleet.msg.MessageService,java.lang.String,dev.ltms.fleet.auth.Role,java.lang.String; found: dev.ltms.fleet.msg.MessageService,java.lang.String,java.lang.String; reason: actual and formal argument lists differ in lengthBuild:
mvn clean installpassed.Tests run: 1473, Failures: 0, Errors: 0, Skipped: 0BUILD SUCCESSgit diff --statfor this follow-up:fleetd/src/main/java/dev/ltms/fleet/mcp/FleetMcp.java | 5 -----fleetd/src/test/java/dev/ltms/fleet/mcp/FleetMcpTest.java | 22 +++++++++++-----------I checked the other FleetMcp overloads. None omit a security-relevant argument and default to a permissive value. The optional lead-channel and observation-source overloads disable or omit optional features; they do not widen caller authority.