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

Added OpenAPI response structures for sys endpoints #18515

Merged
merged 31 commits into from
Feb 15, 2023

Conversation

lursu
Copy link
Collaborator

@lursu lursu commented Dec 21, 2022

adding response objects for the sys endpoints laid out in VAULT-12143.

@lursu lursu requested a review from a team December 21, 2022 16:20
@hashicorp-cla
Copy link

hashicorp-cla commented Dec 21, 2022

CLA assistant check
All committers have signed the CLA.

@lursu lursu requested review from AnPucel and averche December 22, 2022 18:28
@lursu lursu added this to the 1.13.0-rc1 milestone Dec 22, 2022
@lursu lursu requested review from danielehc and dhuckins and removed request for danielehc January 4, 2023 15:41
vault/logical_system_paths.go Outdated Show resolved Hide resolved
vault/logical_system_paths.go Outdated Show resolved Hide resolved
vault/logical_system_paths.go Outdated Show resolved Hide resolved
vault/logical_system_paths.go Outdated Show resolved Hide resolved
vault/logical_system_paths.go Outdated Show resolved Hide resolved
vault/logical_system_paths.go Outdated Show resolved Hide resolved
vault/logical_system_paths.go Show resolved Hide resolved
vault/logical_system_paths.go Outdated Show resolved Hide resolved
vault/logical_system_paths.go Outdated Show resolved Hide resolved
vault/login_mfa.go Outdated Show resolved Hide resolved
lursu and others added 9 commits January 9, 2023 10:14
…thub.com:hashicorp/vault into VAULT-12143/added_responses_for_sys_subsection_2
@lursu lursu requested a review from dhuckins January 9, 2023 15:39
Copy link
Contributor

@dhuckins dhuckins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

think there's a few questions @averche should take a look at but lgtm

vault/login_mfa.go Outdated Show resolved Hide resolved
vault/logical_system_paths.go Show resolved Hide resolved
vault/logical_system_paths.go Outdated Show resolved Hide resolved
vault/logical_system_paths.go Outdated Show resolved Hide resolved
@lursu lursu requested a review from dhuckins January 24, 2023 17:43
vault/logical_system_paths.go Outdated Show resolved Hide resolved
vault/logical_system_paths.go Outdated Show resolved Hide resolved
vault/logical_system_paths.go Outdated Show resolved Hide resolved
Comment on lines 1998 to 2001
"keys_info": {
Type: framework.TypeMap,
Required: false,
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not see this parameter anywhere in the response, not sure if I'm missing something.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry is actually "key_info" not keys... related line from handler.

"key_info": nsScopedKeyInfo,

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code you referenced seems to only apply to PolicyTypeEGP whereas the function deals with PolicyTypeACL.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh dang good catch.

Comment on lines 2020 to 2023
"keys_info": {
Type: framework.TypeMap,
Required: false,
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

vault/logical_system_test.go Outdated Show resolved Hide resolved
Co-authored-by: Anton Averchenkov <[email protected]>
averche
averche previously approved these changes Feb 2, 2023
Copy link
Contributor

@averche averche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@averche averche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update other tests for the affected functionality (e.g. https://github.com/hashicorp/vault/blob/main/vault/external_tests/mfa/login_mfa_test.go for sys/mfa)

@lursu lursu modified the milestones: 1.13.0-rc1, 1.14 Feb 13, 2023
Copy link
Contributor

@averche averche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Before merging, please adjust the title & PR description (references to the RFC + related PR's would be great)

@lursu lursu changed the title Vault 12143/added responses for sys subsection 2 Added OpenAPI response structures for sys endpoints Feb 15, 2023
@lursu lursu merged commit 4d29d00 into main Feb 15, 2023
@lursu lursu deleted the VAULT-12143/added_responses_for_sys_subsection_2 branch February 21, 2023 17:15
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.

5 participants