You will package an index from one provider’s public description, serve it, and then, as an
application, ask it which Registry Evidence service can answer a question.
Outcome
One local Discovery index, one resolved requirement, and one provider to select.
Time
About 15 minutes after the release assets are available
Level
Local development with synthetic data
Prerequisites
GitPython 3curlLocal ports 38080 and 38090The tools required by the release verification procedure
Download one exact rstack-vX.Y.Z-install.sh and the verification material from the same Registry
Stack release. Follow the
release verification procedure
before running the installer. From the verified release directory, install the discovery
component:
Terminal window
tag="vX.Y.Z"
bash"rstack-${tag}-install.sh"discovery
rstackdiscovery--version
The managed installation exposes rstack on your PATH. The discovery component supplies the
Discovery runtime and its command-line tools from the same release.
Clone the same release for the example project and synthetic provider description:
You also say which Evidence types meet a requirement an application may have.
discovery-project/mappings/adult-status.yaml maps the adult-status requirement to one type:
the index advertises an address on the reader's own machine; production refuses it
next: Publish HTTPS URLs on non-loopback hosts.
0 errors, 1 warning in 3 files
The third file is runtime.yaml, which you use to serve the index. The check never contacts the
provider URL; a refused file gets one finding per problem, with its line, column, and fix.
the index advertises an address on the reader's own machine; production refuses it
next: Publish HTTPS URLs on non-loopback hosts.
Packaging fetched the description once. The catalogue revision digests what the descriptions mean
and the mapping revision digests your mappings, so they match on any machine; the package digest
also covers when this run fetched, so yours differs.
Stop the publication server with Ctrl+C. Discovery never contacts a provider while it serves.
discovery-project/runtime.yaml names the listener, the limits, and a package root read from
DISCOVERY_PACKAGE_ROOT. Both paths must be absolute. In the first shell, start Discovery:
Now play the application. It knows it must establish that a person is an adult, but not which
provider can say so. Ask Discovery which Evidence types satisfy that requirement:
originContentDigest is the SHA-256 of the exact bytes the provider published.
The application saves a selection: the recordId and bindingId it chose, and the two revisions
it chose under. A selection is public metadata, not a credential. Whether to trust
endpointUrl is decided by the application’s own Evidence configuration, and the call to it never
passes through Discovery. The Discovery namespace of the
Registry Stack client runs these searches and
saves selections from Rust, Node.js, or Python.
Discovery is still running. Package and run a Discovery index
continues from here, with HTTPS origins and a pinned package. To stop instead, press Ctrl+C in
the first shell and remove discovery-project.
You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.