Wanderland

Wanderland Core: Identity

The actor in a crossing. Metadata only — keys live in storage at :pki:keys:{id}. The identity carries the id; the storage holds the key material.

The Struct

The Class

class Identity
  attr_reader :id, :name, :roles, :type, :code_version, :token, :scopes
end

Query methods: human?, service?, scope?(:name).

claims returns a JWT-ready hash. to_h is an alias for claims.

Keys Are Not On The Identity

Identity is metadata only. No public_key, no private_key fields. The id IS the reference — Activities::PKI.sign(storage, identity.id, payload) looks up the keypair at :pki:keys:{id}. Multiple runtimes can share an identity metadata struct while the actual key material varies by storage mount (dev uses in-memory, prod uses SSM-provisioned, etc.).

Where Identity Appears

Source File

wanderland-core/lib/wanderland/identity.rb

Site Audit

wanderland.dev

oculus-view: fence: fence execute HTTP 404