Skip to content

Commit

Permalink
update regex to allow special characters
Browse files Browse the repository at this point in the history
  • Loading branch information
pulak-opti committed Oct 4, 2024
1 parent b804cef commit 789c59e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ client:
## Validation Regex on the request SDK Key
## By default Agent assumes only alphanumeric characters as part of the SDK Key string.
## https://github.com/google/re2/wiki/Syntax
sdkKeyRegex: "^\\w+(:\\w+)?$"
SdkKeyRegex: "^[a-zA-Z0-9=-]+(:[a-zA-Z0-9=-]+)?$"
## configure optional User profile service
userProfileService:
default: ""
Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func NewDefaultConfig() *AgentConfig {
DatafileURLTemplate: "https://cdn.optimizely.com/datafiles/%s.json",
EventURL: "https://logx.optimizely.com/v1/events",
// https://github.com/google/re2/wiki/Syntax
SdkKeyRegex: "^\\w+(:\\w+)?$",
SdkKeyRegex: "^[a-zA-Z0-9=-]+(:[a-zA-Z0-9=-]+)?$",
UserProfileService: UserProfileServiceConfigs{
"default": "",
"services": map[string]interface{}{},
Expand Down

0 comments on commit 789c59e

Please sign in to comment.