From 9572f152aca0945cc104576054f36950363b9dac Mon Sep 17 00:00:00 2001 From: Shashank Kumar Shankar Date: Thu, 29 Mar 2018 09:40:12 -0700 Subject: Add TODO comments for removing global endpoints Change-Id: I1d4b1c15a0bf027d4ebeae4298a46a495405b15f Issue-ID: MUSIC-55 Signed-off-by: Shashank Kumar Shankar --- src/dkv/main.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/dkv/main.go b/src/dkv/main.go index 5bf076f..ba8f9e9 100644 --- a/src/dkv/main.go +++ b/src/dkv/main.go @@ -51,6 +51,8 @@ func main() { router.HandleFunc("/v1/config/load-default", api.HandleDefaultConfigLoad).Methods("GET") // Direct Consul queries. router.HandleFunc("/v1/getconfig/{token}/{key}", api.HandleGET).Methods("GET") + // TODO(sshank): Following methods should not be allowed for all users. Remove it or make sure + // its accessible only by admin. router.HandleFunc("/v1/deleteconfig/{key}", api.HandleDELETE).Methods("DELETE") router.HandleFunc("/v1/getconfigs", api.HandleGETS).Methods("GET") -- cgit 1.2.3-korg