ocm

Package
github.com/cs3org/reva/v3/internal/http/services/opencloudmesh/ocmd
Source
internal/http/services/opencloudmesh/ocmd · Go reference

Enable it

Add this table to the revad configuration file:

[http.services.ocm]
# settings below
This package has no documentation yet. Add a package doc comment or a README.md in internal/http/services/opencloudmesh/ocmd, then run make gen-doc.

Configuration

KeyTypeDefaultDescription
gatewaysvcstringshared gatewaysvcsource
expose_recipient_display_namebool-source
token_managerstring"jwt"source
token_managersmap[string]map[string]any-source
machine_secretstring-MachineSecret is the shared secret used to impersonate the recipient of an incoming OCM share when auto-registering its remote sender/owner as accepted users. source
auto_accept_providers[]string-AutoAcceptProviders is a list of regular expressions matched against the sender’s provider domain. A match activates auto-registration of the share’s remote users for all OCM share types (embedded shares are always auto-registered). source
trust_forwarded_forbool-TrustForwardedFor reads the sender IP from X-Forwarded-For. Enable it only behind a reverse proxy that sets the header, else peers can spoof it. source
endpointstringsharedconf.GetPublicURL()Endpoint is the public URL of this server, the same as the endpoint of the wellknown ocmprovider. Signatures are verified against it, not against the Host header that the client sets. This stops the replay of signed requests. If it is empty, the shared public_url is used. source
http_sig_modestring-HTTPSigMode is permissive (the default) or strict. Strict rejects every unsigned request. Permissive rejects an unsigned request only from a server that lists http-sig. source
ocm_client_insecurebool-OCMClientInsecure skips TLS verification when probing a remote provider’s discovery endpoint. Off by default; turning it on exposes discovery to MITM. source
ocm_client_timeoutint10OCMClientTimeout is the per-request timeout, in seconds, for probing a remote provider’s discovery endpoint. Defaults to 10 when unset or zero. source
allow_loopback_federationbool-AllowLoopbackFederation lets inbound share discovery dial loopback. Off by default; only local two-provider integration topologies should enable it. source
ocm_client_use_env_proxybool-OCMClientUseEnvProxy lets inbound share discovery honor HTTP_PROXY, HTTPS_PROXY, and NO_PROXY. Off by default; public-only discovery stays direct unless operators opt in. source
allowed_federation_cidrs[]string-AllowedFederationCIDRs is an explicit private-network exception list for inbound share discovery. Off by default; only controlled federation deployments with private RFC 1918 / IPv6 ULA destinations should set it. Each entry must be a canonical CIDR wholly inside RFC 1918 or fc00::/7; any invalid element fails service startup before discovery runs. source
Includes the settings of ratelimit.ServiceConfig.