fix: separate public object store TLS
This commit is contained in:
@@ -118,6 +118,7 @@ func TestProductionAPIAcceptsHardenedConfiguration(t *testing.T) {
|
||||
cfg.ObjectStoreAccessKey = strings.Repeat("a", 40)
|
||||
cfg.ObjectStoreSecretKey = strings.Repeat("s", 40)
|
||||
cfg.ObjectStoreSecure = true
|
||||
cfg.ObjectStorePublicSecure = true
|
||||
cfg.EmbeddingProvider = "ark"
|
||||
cfg.ArkBaseURL = "https://ark.cn-beijing.volces.com/api/v3"
|
||||
cfg.ArkAPIKey = strings.Repeat("k", 40)
|
||||
@@ -150,6 +151,7 @@ func TestProductionRejectsReusedSigningSecrets(t *testing.T) {
|
||||
cfg.ObjectStoreAccessKey = strings.Repeat("a", 40)
|
||||
cfg.ObjectStoreSecretKey = strings.Repeat("s", 40)
|
||||
cfg.ObjectStoreSecure = true
|
||||
cfg.ObjectStorePublicSecure = true
|
||||
cfg.EmbeddingProvider = "ark"
|
||||
cfg.ArkBaseURL = "https://ark.cn-beijing.volces.com/api/v3"
|
||||
cfg.ArkAPIKey = strings.Repeat("k", 40)
|
||||
@@ -182,6 +184,7 @@ func TestProductionWorkerRequiresRealArkContentGenerator(t *testing.T) {
|
||||
cfg.ObjectStoreAccessKey = strings.Repeat("a", 40)
|
||||
cfg.ObjectStoreSecretKey = strings.Repeat("s", 40)
|
||||
cfg.ObjectStoreSecure = true
|
||||
cfg.ObjectStorePublicSecure = true
|
||||
if err = cfg.Validate(); err == nil || !strings.Contains(err.Error(), "content generation") {
|
||||
t.Fatalf("Validate() error=%v, want local content generator production gate", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user