Repository navigation
docs: network adapter deployment modes -- ADR-0001, READMEs, CHANGELOGs, Postman (#55, #66) #89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kelvinprabhu
wants to merge
10
commits into
development
Choose a base branch
from
docs/55-network-adapter-deployment-modes
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
5da9ba8
docs: network adapter deployment modes -- ADR-0001, READMEs, CHANGELO…
kelvinprabhu d2875a2
docs: follow #87 review -- mode set once, no scaling extras (#55, #66)
kelvinprabhu a3b58a0
docs: setup guide for single and multi modes; simpler READMEs (#55, #66)
kelvinprabhu 8437e51
docs: switch modes with one value; state why the probe keys were rena…
kelvinprabhu 2a82193
docs: adapter naming, deploymentMode, config folders and make targets…
kelvinprabhu 00b8b6e
docs: -adapter example names; quick-start routing in mode folders (#5…
kelvinprabhu 584eac6
docs: safe quick-start reset; ADR alternatives match the decision (#5…
kelvinprabhu 2f1bc0b
docs: quick-start mode and profile names single-adapter / multi-adapt…
kelvinprabhu 1cd9b26
docs: the quick-start mode is set once in .env, for make and docker c…
kelvinprabhu 37f4b6b
docs: use NETWORK_ADAPTER_DEPLOYMENT_MODE instead of MODE (#55, #66)
kelvinprabhu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
162 changes: 162 additions & 0 deletions
162
api-collection/OpenAgriNet.network-adapter.local-environment.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,162 @@ | ||
| { | ||
| "id": "oan-local-environment-single", | ||
| "name": "OpenAgriNet local (single mode)", | ||
| "values": [ | ||
| { | ||
| "key": "consumer-adapter-host", | ||
| "value": "http://127.0.0.1:9201", | ||
| "enabled": true, | ||
| "type": "default", | ||
| "description": "Where discover and select enter. Single mode: the one adapter, so all three adapter hosts are the same URL. NETWORK_ADAPTER_PORT in .env." | ||
| }, | ||
| { | ||
| "key": "provider-adapter-host", | ||
| "value": "http://127.0.0.1:9201", | ||
| "enabled": true, | ||
| "type": "default", | ||
| "description": "Where publish enters. Single mode: the same adapter as consumer-adapter-host. NETWORK_ADAPTER_PORT in .env." | ||
| }, | ||
| { | ||
| "key": "network-adapter-host", | ||
| "value": "http://127.0.0.1:9201", | ||
| "enabled": true, | ||
| "type": "default", | ||
| "description": "Used only by the health check. Single mode: the same adapter; its network tier sits under /_internal/ and is not called from Postman. NETWORK_ADAPTER_PORT in .env." | ||
| }, | ||
| { | ||
| "key": "discovery-host", | ||
| "value": "http://127.0.0.1:8090", | ||
| "enabled": true, | ||
| "type": "default", | ||
| "description": "The catalogue index. Reached through an adapter, not directly, so only its health check is here. DISCOVERY_PORT in .env." | ||
| }, | ||
| { | ||
| "key": "registry-host", | ||
| "value": "http://127.0.0.1:8081", | ||
| "enabled": true, | ||
| "type": "default", | ||
| "description": "Participants and capability bindings, seeded by bin/setup.py. HOST ONLY: the API base is /api/v1, so a request spells it out. REGISTRY_PORT in .env." | ||
| }, | ||
| { | ||
| "key": "keycloak-host", | ||
| "value": "http://127.0.0.1:8080", | ||
| "enabled": true, | ||
| "type": "default", | ||
| "description": "Issues the registry write token, and authenticates nothing else -- it is Sunbird RC's, not the network's. KEYCLOAK_PORT in .env." | ||
| }, | ||
| { | ||
| "key": "keycloak-realm", | ||
| "value": "sunbird-rc", | ||
| "enabled": true, | ||
| "type": "default", | ||
| "description": "KEYCLOAK_REALM in .env." | ||
| }, | ||
| { | ||
| "key": "keycloak-client-id", | ||
| "value": "registry-frontend", | ||
| "enabled": true, | ||
| "type": "default", | ||
| "description": "The client that logs a user in. admin-api is the one that mints tokens and is not used from here. KEYCLOAK_CLIENT_ID in .env." | ||
| }, | ||
| { | ||
| "key": "registry-user", | ||
| "value": "no-user", | ||
| "enabled": true, | ||
| "type": "default", | ||
| "description": "REGISTRY_ADMIN_USER in .env. A shipped default, so it is public until changed." | ||
| }, | ||
| { | ||
| "key": "registry-password", | ||
| "value": "no-user-password", | ||
| "enabled": true, | ||
| "type": "default", | ||
| "description": "REGISTRY_ADMIN_PASSWORD in .env. A shipped default, so it is public until changed." | ||
| }, | ||
| { | ||
| "key": "consumer-participant-id", | ||
| "value": "consumer.oan.dev", | ||
| "enabled": true, | ||
| "type": "default", | ||
| "description": "The consumer adapter's network identity, and what its signatures verify against. CONSUMER_SUBSCRIBER_ID in .env." | ||
| }, | ||
| { | ||
| "key": "consumer-base-url", | ||
| "value": "https://consumer.oan.dev", | ||
| "enabled": true, | ||
| "type": "default", | ||
| "description": "The address PEERS are told to POST to, published in the registry row. Nothing in this stack resolves it, so a wrong value costs nothing locally and everything on a shared network -- and the registry cannot correct it. CONSUMER_BASE_URL in .env." | ||
| }, | ||
| { | ||
| "key": "consumer-participant-key", | ||
| "value": "", | ||
| "enabled": true, | ||
| "type": "default", | ||
| "description": "EMPTY ON PURPOSE. The public half lives in quick-start/keys/keys.json, which bin/setup.py generates; paste it in before registering. setup.py has already registered this participant, so it is normally not needed." | ||
| }, | ||
| { | ||
| "key": "mausamgram-participant-id", | ||
| "value": "mausamgram", | ||
| "enabled": true, | ||
| "type": "default", | ||
| "description": "IMD Mausamgram, the weather upstream. Half of its binding key. MAUSAMGRAM_PARTICIPANT_ID in .env." | ||
| }, | ||
| { | ||
| "key": "mausamgram-capability", | ||
| "value": "openagrinet:WeatherObservation", | ||
| "enabled": true, | ||
| "type": "default", | ||
| "description": "MAUSAMGRAM_CAPABILITY in .env." | ||
| }, | ||
| { | ||
| "key": "mausamgram-binding-key", | ||
| "value": "mausamgram|openagrinet:WeatherObservation", | ||
| "enabled": true, | ||
| "type": "default", | ||
| "description": "<participant-id>|<capability>. Used to look up the binding's osid. The provider adapter builds this from the incoming payload, so it must match the registry row exactly -- a mismatch is a 404." | ||
| }, | ||
| { | ||
| "key": "mausamgram-base-url", | ||
| "value": "https://mausamgram.imd.gov.in", | ||
| "enabled": true, | ||
| "type": "default", | ||
| "description": "MAUSAMGRAM_BASE_URL in .env." | ||
| }, | ||
| { | ||
| "key": "mausamgram-path", | ||
| "value": "/nwpapi/get-daily", | ||
| "enabled": true, | ||
| "type": "default", | ||
| "description": "MAUSAMGRAM_PATH in .env." | ||
| }, | ||
| { | ||
| "key": "mausamgram-mapping-url", | ||
| "value": "https://raw.githubusercontent.com/OpenAgriNet/helmcharts/0.0.1/quick-start/config/mappings/mausamgram/weather-observation.select.yaml", | ||
| "enabled": true, | ||
| "type": "default", | ||
| "description": "What the binding row publishes and the provider adapter fetches. A TAG ref, so what a running stack reads is fixed at 0.0.1 and a later push does not move it. MAUSAMGRAM_MAPPING_URL in .env." | ||
| }, | ||
| { | ||
| "key": "capability-code", | ||
| "value": "openagrinet:WeatherObservation", | ||
| "enabled": true, | ||
| "type": "default", | ||
| "description": "WHICH CAPABILITY THE 4. Capability Schemas FOLDER OPERATES ON -- the one variable to change to work on another, because the schemaUrl and the display name are derived from it rather than written down. The four this deployment serves are openagrinet:WeatherObservation, openagrinet:MandiPrice, openagrinet:KnowledgeAdvisory and openagrinet:AgricultureFacility; network-specs carries four more packs no capability uses yet." | ||
| }, | ||
| { | ||
| "key": "schema-pack-ref", | ||
| "value": "main", | ||
| "enabled": true, | ||
| "type": "default", | ||
| "description": "The ref in OpenAgriNet/network-specs that a derived schemaUrl points at. SCHEMA_PACK_REF in .env, which is what bin/setup.py seeds the rows from -- keep the two the same or a create here disagrees with a seeded row. MAIN IS A 404 FOR THESE PATHS TODAY; only schema-packs-v0.1 serves them. The registry checks the URL's shape and never fetches it, so a row stores either way, and main is the ref that becomes correct once the packs merge." | ||
| }, | ||
| { | ||
| "key": "schema-pack-version", | ||
| "value": "v0.1", | ||
| "enabled": true, | ||
| "type": "default", | ||
| "description": "The pack version, and the row's version field. All eight packs are v0.1 today. Per capability in setup.py rather than one setting for all four, because a capability can move to v0.2 while the others stay -- so if you point capability-code at one that has, change this too." | ||
| } | ||
| ], | ||
| "_postman_variable_scope": "environment", | ||
| "_postman_exported_using": "hand-written, tracked in this repo" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.