8000 Release v1.3.0 · codenotary/immugw · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

v1.3.0

Compare
Choose a tag to compare
{{ refName }}
@arriqaaq arriqaaq released this 07 Dec 10:36
· 4 commits to master since this release
df2e512

immugw [1.3.0]

Important: immugw 1.3.0 contains a breaking change. Review the breaking changes before attempting to upgrade.

This release adds support to handle concurrent requests to multiple databases. This requires a major change in the API endpoints. As this release has a breaking change, users are advised to review the breaking change to determine whether configuration changes are needed when upgrading.

Feature

  • Added support for multiple database handlers in the API. Concurrent requests to multiple databases were not supported prior to this release, but now you can easily send simultaneous requests to multiple databases

Breaking change

  • The API base endpoints has changed from from /db/x/y to /db/{database_name}/x/y.
    GET/POST requests on immugw would need to specify the database name in the URL path. #21. If you have scripts that make GET/POST requests to endpoints /db/x/y, change them to add the database name in the URL /db/{database_name}/x/y before updating to 1.3.0.

Test Setup

Run immudb

You can find instructions to run immudb here

./immudb

Run immugw

You can find instructions to run immugw here

./immugw

CURL examples

Login
curl --location --request POST '127.0.0.1:3323/login' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "user": "aW1tdWRi",
    "password": "aW1tdWRi"
}' | jq .token
Use Database
  • Use token from the Login step
curl --location --request GET '127.0.0.1:3323/db/use/defaultdb' \
--header 'Content-Type: application/json' \
--header 'Authorization: {{token}}' | jq .token
Verified Set
  • Use token from the Use Database step
curl --location --request POST '127.0.0.1:3323/db/defaultdb/verified/set' \
--header 'Content-Type: application/json' \
--header 'Authorization: {{token}}' \
--data-raw '{
  "setRequest": {
    "KVs": [
      {
        "key": "a2V5MQ==",
           "value": "dmFsMQ=="
      }
    ]
  }
}'
Verified Get
  • Use token from the Use Database step
curl --location --request POST '127.0.0.1:3323/db/defaultdb/verified/get' \
--header 'Content-Type: application/json' \
--header 'Authorization: {{token}}' \
--data-raw '{
  "keyRequest": {
    "key": "a2V5MQ=="
  }
}'

Changelog

  • fixed bug for database corruption error when concurrency requests are sent to immugw for multiple databases
  • api urls changed from /db/x/y to /db/{database_name}/x/y (BREAKING CHANGE)
  • fix(ci): secure docker login command for password by @arriqaaq in #24
  • WIP: (feat) multidatabase handler support by @arriqaaq in #25

Full Changelog: v1.2.0...v1.3.0-RC1

Downloads

Docker image
https://hub.docker.com/r/codenotary/immugw

immugw Binaries

File SHA256
immugw-v1.3.0-darwin-amd64 b5dcce8ef1e5eaa26dcab5a94bbd65ea9b9fd03fe0075fabcaa14d3e6a9385b9
immugw-v1.3.0-freebsd-amd64 67bb64c7658a05c0f64696e83ccb41a4e588af2ee1df8f6097fd9f178306606c
immugw-v1.3.0-linux-amd64 a6d08317aca6bcdf8abb62e8121033173b24559343d54bf06ec7cd76bd18f6ee
immugw-v1.3.0-linux-amd64-static a5b7638419ed738aff3512b58b76e32a2d692613692f69f5d8c996b2cc8bb3e5
immugw-v1.3.0-linux-arm64 f04c3fb8796dde9bac54f7247ac7d7ad35d8d5f62370145ec8c4dd7e41a2cd2b
immugw-v1.3.0-linux-s390x 38ad0fed01e3089c1bcd73bdeb6474b74b967a389597aa493fc893048bba0af3
immugw-v1.3.0-windows-amd64.exe ebba04fd33c2c2919acd60ba52f4ce7dda4171421fe1ebbd75018bf7356c2478
0