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: add new endpoint for config-db push agent #574

Merged
merged 2 commits into from
Sep 26, 2023

Conversation

adityathebe
Copy link
Member

@@ -161,7 +160,8 @@ func createHTTPServer(ctx api.Context) *echo.Echo {
upstreamGroup := e.Group("/upstream", rbac.Authorization(rbac.ObjectAgentPush, rbac.ActionWrite))
upstreamGroup.POST("/push", upstream.PushUpstream)
upstreamGroup.GET("/pull/:agent_name", upstream.Pull)
upstreamGroup.GET("/canary/pull/:agent_name", canary.Pull)
upstreamGroup.GET("/canary/pull/:agent_name", upstream.PullCanaries)
Copy link
Member

Choose a reason for hiding this comment

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

Can we add rbac for these ?

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 already have it on the /upstream endpoint group.

upstreamGroup := e.Group("/upstream", rbac.Authorization(rbac.ObjectAgentPush, rbac.ActionWrite))

@moshloop moshloop merged commit 9a660cc into main Sep 26, 2023
3 of 4 checks passed
@moshloop moshloop deleted the feat/upstream-config-db branch September 26, 2023 19:50
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