Instrumentation: removes option to return uname as header (#62929)

Signed-off-by: bergquist <carl.bergquist@gmail.com>
This commit is contained in:
Carl Bergquist 2023-02-07 10:04:20 +01:00 committed by GitHub
parent 39537043ec
commit 9d66b18b9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 0 additions and 16 deletions

View File

@ -56,7 +56,6 @@ Alpha features might be changed or removed without prior notice.
| Feature toggle name | Description |
| ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `returnUnameHeader` | Return user login as header for authenticated requests |
| `alertingBigTransactions` | Use big transactions for alerting database writes |
| `dashboardPreviews` | Create and show thumbnails for dashboard search results |
| `live-pipeline` | Enable a generic live processing pipeline |

View File

@ -16,7 +16,6 @@
export interface FeatureToggles {
[name: string]: boolean | undefined; // support any string value
returnUnameHeader?: boolean;
alertingBigTransactions?: boolean;
trimDefaults?: boolean;
disableEnvelopeEncryption?: boolean;

View File

@ -214,11 +214,6 @@ func (h *ContextHandler) Middleware(next http.Handler) http.Handler {
}
}
// this can be used by proxies to identify certain users
if h.features.IsEnabled(featuremgmt.FlagReturnUnameHeader) {
w.Header().Add("grafana-uname", reqContext.Login)
}
next.ServeHTTP(w, r)
})
}

View File

@ -9,11 +9,6 @@ package featuremgmt
var (
// Register each toggle here
standardFeatureFlags = []FeatureFlag{
{
Name: "returnUnameHeader",
Description: "Return user login as header for authenticated requests",
State: FeatureStateAlpha,
},
{
Name: "alertingBigTransactions",
Description: "Use big transactions for alerting database writes",

View File

@ -7,10 +7,6 @@
package featuremgmt
const (
// FlagReturnUnameHeader
// Return user login as header for authenticated requests
FlagReturnUnameHeader = "returnUnameHeader"
// FlagAlertingBigTransactions
// Use big transactions for alerting database writes
FlagAlertingBigTransactions = "alertingBigTransactions"