Skip to content
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

Part 15/n - Minor plugin related changes #113

Merged
merged 6 commits into from
Feb 5, 2024

Conversation

cipherboy
Copy link
Member

This:

  • Fixes OpenAPI spec generation to use the remaining plugins,
  • Synchronizes the number of plugins expected in various tests,
  • Fixes CLI prediction tests to correctly list remaining plugins,
  • Correct some plugin ordering changes & swap plugins to remaining plugins,
  • Removed references to some already deprecated & removed plugins, including app-id which was referenced in some tests.

Part of #68; broken up for reviewability.

openapi.sh is used to generate the OpenAPI data; to function, it needs
to know a list of all plugins supported by OpenBao in order to
accurately map the dynamically generated APIs.

Note that this does mean that OpenAPI-based data will differ based on
the numbers and types of loaded plugins. Our OpenAPI generated clients
will reflect that supported by the core OpenBao, but if we wish to
generate additional APIs for external-but-supported plugins, we'll have
to re-add them here and modify the script.

Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com>
This updates various tests that count the number of expected plugins,
ensuring they match as a sanity check.

Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com>
Command prediction was tested including some information of available
plugins; since these have changed, the candidates for prediction also
changed and thus this test was out of date.

Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com>
Plugin response ordering depended on the name of the plugin; this was
wrong with the initial rename from GitHub/Consul to AppRole and K/V.

Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com>
In forking OpenBao, we opted as part of openbao#53 to not include already
deprecated plugins present in upstream. This saves us some maintenance
burden as we won't have to have a temporary release with support and a
later release doing the removal.

Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com>
App-Id, a deprecated and removed auth method, was expected to be present
in certain test scenarios in the plugin list and elsewhere; remove it
and rely on a plugin that still remains.

Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com>
@naphelps naphelps self-requested a review February 5, 2024 14:43
@naphelps naphelps merged commit e13f392 into openbao:main Feb 5, 2024
3 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants