8000 [ENHANCEMENT] Use secret in the proxy by Nexucis · Pull Request #1377 · perses/perses · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[ENHANCEMENT] Use secret in the proxy #1377

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

Merged
merged 4 commits into from
Aug 24, 2023
Merged

Conversation

Nexucis
Copy link
Member
@Nexucis Nexucis commented Aug 23, 2023

This PR is adding the usage of the secret in the proxy.

I have also a bit refactor how the proxy middleware is designed. It doesn't change that much but I think the new different steps makes more sense.
Alors introducing a struct will be the occasion for later to introduce a cache to avoid to get the datasource each time from the database. The redirection to the datasource will be then faster

Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
@Nexucis Nexucis force-pushed the nexucis/use-secret-in-proxy branch from 7714860 to dd938c5 Compare August 23, 2023 12:15
@Nexucis Nexucis marked this pull request as draft August 23, 2023 13:21
@Nexucis Nexucis force-pushed the nexucis/use-secret-in-proxy branch from 27fe346 to 5b8cf90 Compare August 23, 2023 14:02
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
@Nexucis Nexucis force-pushed the nexucis/use-secret-in-proxy branch from 5b8cf90 to 24008d1 Compare August 23, 2023 14:08
@Nexucis Nexucis marked this pull request as ready for review August 23, 2023 14:30
Copy link
Member
@celian-garcia celian-garcia left a comment

Choose a reason for hiding this comment

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

I can't wait to try the SkipTLS :x. I guess I will be the one having to deal with the conflcts hehe they seem to be easy though

}

func (e *Proxy) getProjectSecret(projectName string, dtsName string, name string) (*v1.SecretSpec, error) {
scrt, err := e.Secret.Get(projectName, name)
Copy link
Member

Choose a reason for hiding this comment

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

sometimes I hate Golang ...

Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
@Nexucis Nexucis merged commit 4c8bf1e into main Aug 24, 2023
@Nexucis Nexucis deleted the nexucis/use-secret-in-proxy branch August 24, 2023 08:50
Sign up for 5FA7 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
0