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: implement ENV interceptor #56

Merged
merged 8 commits into from
Nov 8, 2023
Merged

feat: implement ENV interceptor #56

merged 8 commits into from
Nov 8, 2023

Conversation

waynexia
Copy link
Member

@waynexia waynexia commented Apr 28, 2023

Which issue does this PR close?

Closes #

Rationale for this change

In some cases, we may need to reference secret things in SQL, like the AWS token. This ENV interceptor provides a way to write sqlness cases with secret string.

What changes are included in this PR?

Implement the ENV interceptor

Are there any user-facing changes?

No

How does this change test

Unit test and integration test

Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
@jiacai2050
Copy link
Member

@waynexia Ping, do you have free time to push this further? If not, I will continue based on your branch.

@waynexia
Copy link
Member Author

@waynexia Ping, do you have free time to push this further? If not, I will continue based on your branch.

Sorry for the delay. I'm not available in these few days. Is it okay to deliver it 3~5 days later?

@jiacai2050
Copy link
Member

@waynexia Ping, do you have free time to push this further? If not, I will continue based on your branch.

Sorry for the delay. I'm not available in these few days. Is it okay to deliver it 3~5 days later?

Of course, take it easy.

@waynexia waynexia marked this pull request as ready for review October 7, 2023 14:17
Signed-off-by: Ruihang Xia <[email protected]>
@waynexia
Copy link
Member Author

PTAL @jiacai2050

@jiacai2050
Copy link
Member

@waynexia I will review this week.

sqlness/src/interceptor/env.rs Show resolved Hide resolved
sqlness/src/interceptor/env.rs Outdated Show resolved Hide resolved
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
@jiacai2050 jiacai2050 merged commit 8aada16 into main Nov 8, 2023
3 checks passed
@jiacai2050 jiacai2050 deleted the env-interceptor branch November 8, 2023 09:19
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