Skip to content

Commit f9d960c

Browse files
authored
Nsr/4 to 5 migration docs (#1060)
* initial v4 -> v5 migration doc * add 5.0 Migration Notes * No need for seperate migration document This reverts commit 105ef61. * bump release candidate number * update nsprc
1 parent 9f09401 commit f9d960c

3 files changed

Lines changed: 40 additions & 9 deletions

File tree

.nsprc

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
{
2-
"1113686": {
3-
"active": true,
4-
"notes": "minimatch is a transitive dependency of @redocly/cli and redoc, used only for API documentation rendering. The vulnerable wildcard pattern matching is not exposed to user input in our usage context, making ReDoS exploitation not feasible.",
5-
"expiry": "2026-04-25"
6-
},
72
"1113461": {
83
"active": true,
94
"notes": "minimatch is a transitive dependency of @redocly/cli and redoc, used only for API documentation rendering. The vulnerable wildcard pattern matching is not exposed to user input in our usage context, making ReDoS exploitation not feasible.",
@@ -33,7 +28,5 @@
3328
"active": true,
3429
"notes": "minimatch is a transitive dependency of @redocly/cli and redoc, used only for API documentation rendering. The vulnerable wildcard pattern matching is not exposed to user input in our usage context, making ReDoS exploitation not feasible.",
3530
"expiry": "2026-04-25"
36-
},
37-
"1114017": {"active": true, "notes": "temp override while merging dependebot PRs", "expiry": "2026-03-12"},
38-
"1114153": {"active": true, "notes": "temp override while merging dependebot PRs", "expiry": "2026-03-12"}
31+
}
3932
}

docs/deployment/index.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,44 @@ The outputs of the pre- and post-hooks are validated and, if they don't comply w
680680
name, reindex the existing index into the newly-created index, delete and re-created
681681
the existing index by creating a collection, and reindex back into the index.
682682

683+
### 5.0.0
684+
685+
#### New collection to index name mapping
686+
687+
In previous versions, stac-server named OpenSearch indices identically
688+
to the collections that they backed. Due to OpenSearch's inflexibility
689+
in naming indices (only lowercase letters are allowed), stac-server now
690+
uses the naming scheme
691+
692+
```
693+
lowercase(collectionName) + simpleHash(collectionName)
694+
```
695+
696+
This means that if a stac-server instance of version `5.0.0` or newer
697+
connects to a OpenSearch cluster created with an onlder version of
698+
stac-server, the newer server will not be able to find collection
699+
indices. The recommended work around for this is to add all existing
700+
collections to `COLLECTION_TO_INDEX_MAPPINGS` before upgrading to `v5`.
701+
702+
Here is an example `jq` script that will accomplish this:
703+
704+
```jq
705+
# script.jq
706+
(
707+
.collections
708+
| map({(.id): .id})
709+
| map(to_entries)
710+
| flatten
711+
| from_entries
712+
) + $EXISTING_MAPPINGS
713+
```
714+
715+
```sh
716+
curl $STAC_SERVER_URL/collections | jq --argjson EXISTING_MAPPINGS $COLLECTION_TO_INDEX_MAPPINGS -f script.jq | tee new-mappings.json
717+
export COLLECTION_TO_INDEX_MAPPINGS=$(cat new-mappings.json)
718+
```
719+
720+
683721
### 4.1.0
684722

685723
#### Thumbnails feature disabled by default

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"displayName": "stac-server",
33
"description": "A STAC API running on stac-server",
4-
"version": "5.0.0-rc1",
4+
"version": "5.0.0-rc.2",
55
"repository": "https://github.com/stac-utils/stac-server",
66
"author": "Alireza Jazayeri, Matthew Hanson, Sean Harkins, Phil Varner, Nate Rubin",
77
"license": "MIT",

0 commit comments

Comments
 (0)