Skip to content

OpenSearch ​

Parity grade: A · SDK aws-sdk-go-v2/service/opensearch@v1.85.0 · last audited 2026-10-12 (0c1472972)

Category: Analytics · View PARITY.md on GitHub · All Services

In-memory OpenSearch Service control plane with a built-in data-plane engine, and OpenSearch Serverless operations on the same handler.

Quick start ​

bash
export AWS_ENDPOINT_URL=http://localhost:8000

aws opensearch create-domain --domain-name my-search \
    --engine-version OpenSearch_2.11 \
    --cluster-config InstanceType=t3.small.search,InstanceCount=1
aws opensearch describe-domain --domain-name my-search
aws opensearch list-domain-names
aws opensearch delete-domain --domain-name my-search

Supported operations ​

AreaOperations
DomainsCreateDomain, DescribeDomain, DescribeDomains, ListDomainNames, DeleteDomain, DescribeDomainConfig, UpdateDomainConfig, DescribeDomainNodes, domain change progress, auto-tune, maintenance and health operations
Versions and upgradesListVersions, GetCompatibleVersions, UpgradeDomain, GetUpgradeStatus, GetUpgradeHistory, DescribeInstanceTypeLimits, ListInstanceTypeDetails
Software updatesStartServiceSoftwareUpdate, CancelServiceSoftwareUpdate, scheduled actions
Packagescreate, describe, update, delete, associate, dissociate, list, version history
Connectionscross-cluster inbound and outbound connections: create, accept, reject, describe, delete
VPC endpointsCreateVpcEndpoint, UpdateVpcEndpoint, DeleteVpcEndpoint, ListVpcEndpoints, DescribeVpcEndpoints, ListVpcEndpointsForDomain, AuthorizeVpcEndpointAccess, RevokeVpcEndpointAccess, ListVpcEndpointAccess
Applications and data sourcesapplications, data sources, direct-query data sources, default application settings
Reserved instancesDescribeReservedInstanceOfferings, PurchaseReservedInstanceOffering, DescribeReservedInstances
IndicesCreateIndex, GetIndex, UpdateIndex, DeleteIndex
Insights and migrationsinsights, migrations
TagsAddTags, RemoveTags, ListTags
OpenSearch Serverlesscollections, collection groups, security policies and configs, access policies, lifecycle policies, VPC endpoints, indices, account settings, tags

Data plane on the built-in engine: index create, get and delete, document index, get and delete, _search, _count and _bulk.

Configuration ​

FlagEnvDefaultPurpose
--opensearch-engineOPENSEARCH_ENGINEstubstub or docker. docker is reserved: both modes use the built-in in-memory engine
--opensearch-endpoint-strategyOPENSEARCH_ENDPOINT_STRATEGYAWS-style es.amazonaws.com hostDomain endpoint format: domain or path
--opensearch-multi-clusterOPENSEARCH_MULTI_CLUSTERtruefalse makes every domain in a region share one index store
--opensearch-custom-backendOPENSEARCH_CUSTOM_BACKENDnoneURL of an existing OpenSearch cluster that serves every domain's data-plane requests

Differences from AWS ​

IMPORTANT

No real OpenSearch or Elasticsearch process runs. Domain endpoints are served by a built-in engine that covers the routes above, not the full OpenSearch API. Set OPENSEARCH_CUSTOM_BACKEND to use a real cluster for the data plane.

  • Fine-grained access control covers the routes the built-in engine serves. Document-level security, field-level security and masking apply to _search, _count and document get only. A _bulk request lacking indices:data/write/bulk is rejected whole, and a bulk item denied for permissions is reported per item.
  • With OPENSEARCH_CUSTOM_BACKEND set, requests are proxied untouched and the upstream security plugin judges credentials. Emulated users, roles and mappings are not mirrored into it.
  • Security plugin tenants are stored and served by the REST API, but tenant_permissions are not enforced. JWT, SAML and IAM federation options are stored, but no JWT or SAML login is performed. Role-mapping hosts are not evaluated.
  • MigrationSummary.Error is never emitted: migrations always settle SUCCEEDED.

Parity & Coverage ​

MetricValue
PARITY entries audited19 (18 ok, 1 partial)
Feature families13 (13 ok)
Known gaps3
Structural gaps (can't be emulated)1
Deferred items0
Resource leaksclean

Known Gaps ​

  • FGAC enforcement on the built-in engine covers the routes it serves (doc index/get/delete, _search, _count, _bulk, index create/delete/get); DLS/FLS/masking apply to _search, _count and doc get only, and a bulk item denied for permissions is reported per item while a bulk request lacking cluster indices:data/write/bulk is rejected as a whole (gopherstack-49qct.92).
  • With OPENSEARCH_CUSTOM_BACKEND set, requests are proxied untouched and the upstream engine's own security plugin judges credentials; the emulated users/roles/mappings are not mirrored into it (gopherstack-49qct.92).
  • Security plugin tenants are stored and served by the REST API, but tenant_permissions are not enforced (no Dashboards), JWT/SAML/IAM-federation options are validated and stored but no JWT or SAML login is performed, and role-mapping hosts are not evaluated (gopherstack-49qct.92).

Structural Gaps ​

These do not block an A grade — no implementation could produce real data here because the underlying data source cannot exist in an emulator.

  • MigrationSummary.Error is never emitted: migrations always settle SUCCEEDED because the emulator has no saved-object store to migrate, so there is no real failure source.

Audited Operations ​

19 audited operations
OperationWireErrorsStatePersist
CreateDomainokokokok
DescribeDomainokokokok
DescribeDomainsokokokok
DeleteDomainokokokok
ListDomainNamesokokokok
UpdateDomainConfigokokokok
DescribeDomainConfigokokokok
ListTagsokokokok
AddTagsokokokok
RemoveTagsokokokok
CancelDomainConfigChangeokokokok
StartServiceSoftwareUpdateokokokok
CancelServiceSoftwareUpdateokokokok
RollbackServiceSoftwareUpdateokokokok
ListApplicationsokokokok
ListDataSourceAttachmentsokokokok
ListMigrationsokpartialokok
ListVpcEndpointsokokokok
ListVpcEndpointsForDomainokokokok

Audited Feature Families ​

Feature FamilyStatus
cross_cluster_connectionsok
vpc_endpointsok
packagesok
indicesok
applicationsok
reserved_instancesok
scheduled_actionsok
data_sources_direct_queryok
serverlessok
data_source_attachmentsok
capabilitiesok
insightsok
migrationsok

Released under the MIT License.