open-vault/sdk
Anton Averchenkov f3aea876b9
Add mount path into the default generated openapi.json spec (#17839)
The current behaviour is to only add mount paths into the generated `opeanpi.json` spec if a `generic_mount_paths` flag is added to the request. This means that we would have to maintain two different `openapi.json` files, which is not ideal. The new solution in this PR is to add `{mount_path}` into every path with a default value specified:

```diff
--    "/auth/token/accessors/": {
++    "/auth/{mount_path}/accessors/": {
      "parameters": [
        {
          "name": "mount_path",
          "description": "....",
          "in": "path",
          "schema": {
            "type": "string",
++          "default": "token"
          }
        }
      ],
```

Additionally, fixed the logic to generate the `operationId` (used to generate method names in the code generated from OpenAPI spec). It had a bug where the ID had `mountPath` in it. The new ID will look like this:

```diff
-- "operationId": "listAuthMountpathAccessors",
++ "operationId": "listTokenAccessors",
```
2022-11-10 15:44:43 -05:00
..
database update protoc version to 3.21.7 oss (#17499) 2022-10-26 16:49:44 -07:00
framework Add mount path into the default generated openapi.json spec (#17839) 2022-11-10 15:44:43 -05:00
helper Removed the legacy env var: LOGXI_FORMAT (#17822) 2022-11-04 22:16:18 +00:00
logical update protoc version to 3.21.7 oss (#17499) 2022-10-26 16:49:44 -07:00
physical VAULT-6938 Remove license from being cache exempt (#17265) 2022-09-26 10:26:07 -04:00
plugin update protoc version to 3.21.7 oss (#17499) 2022-10-26 16:49:44 -07:00
queue sdk/queue: move lock before checking queue length (#13146) 2021-11-29 14:54:00 -05:00
version Bump version in SDK to 1.13 for next major release (#17233) 2022-09-20 15:40:06 -04:00
README.md
go.mod update vault sdk and api go-plugin version to v1.4.5 (#17734) 2022-10-31 08:52:04 -05:00
go.sum update vault sdk and api go-plugin version to v1.4.5 (#17734) 2022-10-31 08:52:04 -05:00

README.md

Vault SDK libs

This package provides the sdk package which contains code useful for developing Vault plugins.

Although we try not to break functionality, we reserve the right to reorganize the code at will and may occasionally cause breaks if they are warranted. As such we expect the tag of this module will stay less than v1.0.0.

For any major changes we will try to give advance notice in the CHANGES section of Vault's CHANGELOG.md.