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

feat(encryption): add rest api translations #940

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

Abhinandan-Purkait
Copy link
Member

  • Add openapi changes

@Abhinandan-Purkait Abhinandan-Purkait requested review from a team as code owners February 20, 2025 10:31
"".to_string(),
))?
.into();
Ok(Self { cipher, key })
Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we validate the encryption key vector and len match?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it's done in data-plane. But yes we can do that.

key_name:
description: |-
Name of the key.
type: string
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add max name len?

Copy link
Member Author

Choose a reason for hiding this comment

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

We can probably? Should I?

Copy link
Contributor

@tiagolobocastro tiagolobocastro left a comment

Choose a reason for hiding this comment

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

Could you lint the openapi file as a separate commit? Example: bdd6649

@Abhinandan-Purkait
Copy link
Member Author

Abhinandan-Purkait commented Feb 21, 2025

@tiagolobocastro @dsharma-dc I don't think this would be enough, I think we need options to pass both secret name or the parameters itself. Since anyhow we will read the secret from core. Done

@Abhinandan-Purkait Abhinandan-Purkait marked this pull request as draft February 21, 2025 12:42
@Abhinandan-Purkait Abhinandan-Purkait force-pushed the encr_rest branch 2 times, most recently from f13a05f to 236342f Compare February 21, 2025 13:23
@Abhinandan-Purkait Abhinandan-Purkait marked this pull request as ready for review February 21, 2025 13:26
Signed-off-by: Abhinandan Purkait <[email protected]>
@Abhinandan-Purkait
Copy link
Member Author

Could you lint the openapi file as a separate commit? Example: bdd6649

Done.

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.

2 participants