def METHOD_NAME(file: PosixPath, size: int = MAX_KEY_FILE_SIZE_BYTES) -> str:
    # SECURITY: File reads should be limited in size. This prevents a DoS condition where someone
    # could place a large file in the SSH directory and cause the agent consume all available RAM.
    with file.open("rt") as f:
        return f.read(size)