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
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-searchSupported operations
| Area | Operations |
|---|---|
| Domains | CreateDomain, DescribeDomain, DescribeDomains, ListDomainNames, DeleteDomain, DescribeDomainConfig, UpdateDomainConfig, DescribeDomainNodes, domain change progress, auto-tune, maintenance and health operations |
| Versions and upgrades | ListVersions, GetCompatibleVersions, UpgradeDomain, GetUpgradeStatus, GetUpgradeHistory, DescribeInstanceTypeLimits, ListInstanceTypeDetails |
| Software updates | StartServiceSoftwareUpdate, CancelServiceSoftwareUpdate, scheduled actions |
| Packages | create, describe, update, delete, associate, dissociate, list, version history |
| Connections | cross-cluster inbound and outbound connections: create, accept, reject, describe, delete |
| VPC endpoints | CreateVpcEndpoint, UpdateVpcEndpoint, DeleteVpcEndpoint, ListVpcEndpoints, DescribeVpcEndpoints, ListVpcEndpointsForDomain, AuthorizeVpcEndpointAccess, RevokeVpcEndpointAccess, ListVpcEndpointAccess |
| Applications and data sources | applications, data sources, direct-query data sources, default application settings |
| Reserved instances | DescribeReservedInstanceOfferings, PurchaseReservedInstanceOffering, DescribeReservedInstances |
| Indices | CreateIndex, GetIndex, UpdateIndex, DeleteIndex |
| Insights and migrations | insights, migrations |
| Tags | AddTags, RemoveTags, ListTags |
| OpenSearch Serverless | collections, 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
| Flag | Env | Default | Purpose |
|---|---|---|---|
--opensearch-engine | OPENSEARCH_ENGINE | stub | stub or docker. docker is reserved: both modes use the built-in in-memory engine |
--opensearch-endpoint-strategy | OPENSEARCH_ENDPOINT_STRATEGY | AWS-style es.amazonaws.com host | Domain endpoint format: domain or path |
--opensearch-multi-cluster | OPENSEARCH_MULTI_CLUSTER | true | false makes every domain in a region share one index store |
--opensearch-custom-backend | OPENSEARCH_CUSTOM_BACKEND | none | URL 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,_countand document get only. A_bulkrequest lackingindices:data/write/bulkis rejected whole, and a bulk item denied for permissions is reported per item. - With
OPENSEARCH_CUSTOM_BACKENDset, 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_permissionsare 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.Erroris never emitted: migrations always settleSUCCEEDED.
Parity & Coverage
| Metric | Value |
|---|---|
| PARITY entries audited | 19 (18 ok, 1 partial) |
| Feature families | 13 (13 ok) |
| Known gaps | 3 |
| Structural gaps (can't be emulated) | 1 |
| Deferred items | 0 |
| Resource leaks | clean |
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
| Operation | Wire | Errors | State | Persist |
|---|---|---|---|---|
CreateDomain | ok | ok | ok | ok |
DescribeDomain | ok | ok | ok | ok |
DescribeDomains | ok | ok | ok | ok |
DeleteDomain | ok | ok | ok | ok |
ListDomainNames | ok | ok | ok | ok |
UpdateDomainConfig | ok | ok | ok | ok |
DescribeDomainConfig | ok | ok | ok | ok |
ListTags | ok | ok | ok | ok |
AddTags | ok | ok | ok | ok |
RemoveTags | ok | ok | ok | ok |
CancelDomainConfigChange | ok | ok | ok | ok |
StartServiceSoftwareUpdate | ok | ok | ok | ok |
CancelServiceSoftwareUpdate | ok | ok | ok | ok |
RollbackServiceSoftwareUpdate | ok | ok | ok | ok |
ListApplications | ok | ok | ok | ok |
ListDataSourceAttachments | ok | ok | ok | ok |
ListMigrations | ok | partial | ok | ok |
ListVpcEndpoints | ok | ok | ok | ok |
ListVpcEndpointsForDomain | ok | ok | ok | ok |
Audited Feature Families
| Feature Family | Status |
|---|---|
cross_cluster_connections | ok |
vpc_endpoints | ok |
packages | ok |
indices | ok |
applications | ok |
reserved_instances | ok |
scheduled_actions | ok |
data_sources_direct_query | ok |
serverless | ok |
data_source_attachments | ok |
capabilities | ok |
insights | ok |
migrations | ok |
