Skip to content

[bug] Make remote RPC server identity verification fail closed #347

@sizumita

Description

@sizumita

Affected component

imagod

Summary

Remote RPC currently performs silent TOFU for remote server keys. If a remote authority is not already pinned in , the first presented key is accepted and persisted automatically.

Steps to reproduce

  1. Configure a remote RPC authority that is not yet present in .
  2. Connect to it through the remote RPC path.
  3. Observe that an unknown presented key is accepted and written into .

Expected behavior

Unknown remote server identities should fail closed, or at minimum require an explicit confirmation/update path that is separate from the connection attempt.

Actual behavior

reports , and persists the presented key into before returning success.

Version

3f1c39e

Environment

other

Resource impact (optional)

unknown

Additional context

Evidence:

Security impact:

  • A MITM or malicious endpoint on first contact can permanently poison the trust store.

Suggested direction:

  • Require pre-pinned keys for first contact, or split "connect" from "trust this key" so persistence only happens via an explicit operator action.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions