Skip to main content
Version: 0.12.0

Reaching it

Whoever can open an instance's administrative socket may do everything the surface offers, and a caller that cannot open it receives nothing. There is no policy about operators and no read-only role: the boundary is the socket's file mode, and the host enforces it. Who the caller is is still established, from the account the operating system reports behind the connection, and it is written on every change the caller makes, so the record says who acted. This page gives the boundary in each form, how the actor is established and where it lands, what a connection is, and how a dead one is closed.

Reaching the socket is the whole of the authorisation​

  • There is no policy about operators. Nothing in the Registry says what an administrative caller may do, and nothing inside the Core consults who is calling before performing an operation.
  • A caller that reached the socket holds all of that surface's authority. There is no read-only operator, and no operation that requires more than the connection did.
  • A caller that cannot reach it receives nothing. The refusal is the kernel's, and there is no surface to carry it.
FormThe boundaryWhat may be separated
servicethe instance root at 2750 and each socket at 0660, owned by the deployment's groupthe two sockets may be given different groups, so the shell projection can be narrower than the operator one
applicationthe instance root at 0700 under the launching accountnothing: both belong to one account

Where the projections are separated, they are separated by file modes, never by a check inside the Core.

The actor​

Every administrative change produces a durable record, and the record names who acted. That name is taken from the channel, never from the request.

StepWhat happens
1the peer credential of the accepted connection is read from the socket: the account, the primary group, the process
2the account is resolved to a name through the host's account database
3the result is the actor for everything this caller does
  • Established once per connection on the shell projection, and once per call on the operator projection.
  • An account with no name is recorded as a number, never refused. The numeric identifier is recorded, marked as unresolved.
  • No request carries an actor field, at any level of the contract.
  • Where the socket admits exactly one account, nothing further is asked: the host authenticated that person at login.

Where the actor lands​

Written toAsBy
an event's actorthe class operator, carrying the person's identityevery operation that emits an event
the Registry's decision recordits actorenable, disable, grant, withdraw
a log entry's actorits actorevery operation that changes anything, and a connection's opening and closing

An operation that changes nothing writes nothing: a read, a query of the log and a subscription leave no durable trace.

A connection​

A connection is a person or a tool attached to this surface. It is not a Session, which is what a Plugin unit holds with the Core.

It carries
an identityassigned by the Core when it opened, unique within this life of the instance, never reused
a projectionthe one it arrived on
an actoras established above
an opening instantthe Core's clock when it was accepted
the subscriptions it holdsthe standing one, and any the caller took

What makes it a subject is something held open on it:

A subjectFor how long
a shell connectionyeswhile the person is there
an operator call whose answer is a streamyeswhile the stream lasts
an operator call that asks and is answerednonothing accumulates on it
  • Its identity is issued when the connection opens, or when the streaming call is accepted.
  • connection.opened and connection.closed are ordinary events, and who is on this instance, and since when is answered by a read.
  • A call that ends is a connection that closes, with a reason: cancelled when the caller ended it, dropped when the transport went, and completed when the Core ended a stream it was answering.

Liveness​

The Core probes a connection's transport every 10 s and closes it after 3 probes go unanswered. A client that went away without closing is closed that way; no operation exists for the case.

Ending somebody else's connection​

Reading who is connected is an operation. Ending a connection is not, and a request to end one is refused operation.unknown: reaching the surface is the whole of the authorisation, so the other caller would reconnect holding exactly what it held.