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(tools): update OpenAPI tools #157

Merged
merged 2 commits into from
Jan 17, 2025
Merged

feat(tools): update OpenAPI tools #157

merged 2 commits into from
Jan 17, 2025

Conversation

xjacka
Copy link
Contributor

@xjacka xjacka commented Jan 16, 2025

No description provided.

Signed-off-by: Lukáš Janeček <[email protected]>
@xjacka xjacka requested a review from a team as a code owner January 16, 2025 14:15
@xjacka xjacka requested a review from pilartomas January 16, 2025 14:16
Comment on lines 49 to 50
export const redactKey = (key: string) =>
key.replace(key.substring(2, key.length - 2), '*'.repeat(10));
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion:

I'd add length guard that requires some fixed minimum size of the key to ensure large enough segment is redacted. In case of the key being too short, we can either fail or redact the whole thing.

@xjacka xjacka enabled auto-merge (squash) January 17, 2025 10:41
@xjacka xjacka merged commit 1feb69e into main Jan 17, 2025
5 checks passed
@xjacka xjacka deleted the openAPI_updates branch January 17, 2025 10:42
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