ocisim guide

Overview

ocisim compiles floci-oci 0.5.0 together with a native CLI and two-layer OCI authentication and IAM policy engine (Main, AuthConfig, OciAuthFilter, OciPolicyEngine) into a single standalone executable on 127.0.0.1:4599. Object Storage, Identity (IAM), Queue, Streaming, Vault, KMS, and Secrets run in-process without Java, Docker, or an Oracle Cloud tenancy.

Architecture and multi-tenancy isolation

Even in default open mode (--auth open), ocisim parses the tenancy OCID from the keyId parameter of incoming Authorization: Signature headers so buckets, compartments, and queues are isolated per tenancy. When a client such as lmoci connects without explicit credentials, it uses the default local identity (namespace floci-local, region us-ashburn-1, tenancy ocid1.tenancy.oc1..flocilocaltenancy0000000000000000000000000000000000000000) and synthesizes an ephemeral RSA-2048 signing keypair.

Two-layer enforcement (--auth enforce)

Passing --auth enforce --auth-config auth.json (or setting OCISIM_AUTH=enforce / SIM_AUTH=enforce and OCISIM_AUTH_CONFIG / SIM_AUTH_CONFIG) activates OciAuthFilter and OciPolicyEngine on every request except GET /_floci-oci/health:

Template-driven LMScript integration (examples/templates.lms)

examples/templates.lms demonstrates end-to-end LMScript integration against ocisim across both open and enforce modes: