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

[BUG] Missing documentation for security plugin reloadcerts endpoints #530

Closed
peternied opened this issue Apr 27, 2022 · 15 comments · Fixed by #753
Closed

[BUG] Missing documentation for security plugin reloadcerts endpoints #530

peternied opened this issue Apr 27, 2022 · 15 comments · Fixed by #753
Assignees
Labels
Closed - Complete Issue: Work is done and associated PRs closed good first issue Good for newcomers
Milestone

Comments

@peternied
Copy link
Member

peternied commented Apr 27, 2022

What is the bug?

The _opendistro/_security/api/ssl/{certType}/reloadcerts/ API is not documented on https://opensearch.org/docs/latest/security-plugin/index/

How can one reproduce the bug?

Look through the security APIs or search opensearch.org for reloadcerts, it cannot be found

What is the expected behavior?

All APIs for the security plugin should be documented, see some javadocs on that API already https://github.com/opensearch-project/security/blob/565f47e804ec03aeeba02ca8def563b91307fcc7/src/main/java/org/opensearch/security/ssl/rest/SecuritySSLReloadCertsAction.java#L50

Do you have any additional context?

I think this is a tip-of-the-iceberg kind of issue, there are likely many other APIs that are not documented. Quickly checking a subset of the APIs in security with query for BaseRestHandler shows the following gaps:

Documented API Path Http Verbs Code Reference Notes
🚫 /_plugins/_security/dashboardsinfo GET & PUT DashboardsInfoAction
🚫 /_plugins/_security/kibanainfo GET & PUT DashboardsInfoAction should be deprecated?
🚫 /_plugins/_security/whoami GET & POST SecurityWhoAmIAction No java docs
🚫 /_opendistro/_security/sslinfo GET SecuritySSLInfoAction
✔️ _opendistro/_security/api/ssl/{certType}/reloadcerts/ PUT SecuritySSLReloadCertsAction Has java documentation
🚫 /permissionsinfo GET PermissionsInfoAction Internal only API?
🚫 /_plugins/_security/authinfo GET & POST SecurityInfoAction
🚫 /_plugins/_security/tenantinfo GET & POST TenantInfoAction
🚫 /_plugins/_security/configupdate PUT SecurityConfigUpdateAction
@cliu123
Copy link
Member

cliu123 commented May 2, 2022

Duplicate of the issue #535. Please close this one.

@peternied
Copy link
Member Author

While the request is very similar to issue #535, this contains more context on other missing areas. I'd like the maintainers of this repo to weigh to handle the path forward.

@Naarcha-AWS
Copy link
Collaborator

I decided to close the older issue #535, in favor of this one.

@Naarcha-AWS
Copy link
Collaborator

Remember to assign to Chris.

@hdhalter hdhalter assigned hdhalter and cwillum and unassigned hdhalter Jun 29, 2022
@hdhalter hdhalter added 2 - In progress Issue/PR: The issue or PR is in progress. and removed bug Technical problem with the doc site or broken link labels Jun 29, 2022
@peternied
Copy link
Member Author

peternied commented Jul 6, 2022

@cwillum This issue tracks several other APIs that are missing documentation. Would it make sense to keep this issue open or migrate those other APIs in another issue?

@cwillum
Copy link
Contributor

cwillum commented Jul 6, 2022

@peternied Good question. I ran this by the team earlier and the consensus was that it would be better to break the APIs into separate issues. There should be advantages to tracking them separately.

@peternied
Copy link
Member Author

Gotcha - until we have those issues file could we keep this open, and went we have them all we close this issue?

@Naarcha-AWS Naarcha-AWS reopened this Jul 6, 2022
@Naarcha-AWS Naarcha-AWS added 5 - Editorial review PR: Editorial review in progress and removed 2 - In progress Issue/PR: The issue or PR is in progress. 5 - Editorial review PR: Editorial review in progress labels Jul 6, 2022
@cwillum
Copy link
Contributor

cwillum commented Jul 6, 2022

Will close this issue again once there are separate issues for the other APIs mentioned above. Those can be referenced back to this issue.

@hdhalter hdhalter added Closed - Complete Issue: Work is done and associated PRs closed 2 - In progress Issue/PR: The issue or PR is in progress. and removed Closed - Complete Issue: Work is done and associated PRs closed labels Aug 1, 2022
@hdhalter hdhalter added Closed - Complete Issue: Work is done and associated PRs closed and removed 2 - In progress Issue/PR: The issue or PR is in progress. labels Aug 11, 2022
@peternied
Copy link
Member Author

@hdhalter Could you reference the pull request or other issue are associated with this?

@hdhalter
Copy link
Contributor

Sorry, Peter! It's unclear what is left to do on this issue. @cwillum - can you please make notes to indicate what is done and what is left to do?

@hdhalter hdhalter reopened this Aug 11, 2022
@kolchfa-aws
Copy link
Collaborator

@hdhalter @Naarcha-AWS @cwillum should these be added to #424?

@cwillum
Copy link
Contributor

cwillum commented Aug 12, 2022

I count eight more issues in need of attention in the list above. The reloadcerts API (central to this issue) is in our documentation.
@hdhalter @peternied I can add these new issues. After that we can close this one.
@kolchfa-aws @Naarcha-AWS Once I have issues for the remaining eight APIs, I'll add those to #424.

@Naarcha-AWS
Copy link
Collaborator

@cwillum and @peternied: Moved the table with the other eight APIs to a new issue. Since these are specific to the security plugin and not OpenSearch core, let's avoid adding these to #424.

@peternied
Copy link
Member Author

@Naarcha-AWS Thanks for creating #887 I'm good to close out this issue

@cwillum
Copy link
Contributor

cwillum commented Aug 15, 2022

Closing this issue.
Remaining eight security APIs that need documentation are covered by #887.
The reloadcerts API is covered by #753.

@cwillum cwillum closed this as completed Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed - Complete Issue: Work is done and associated PRs closed good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants