prom3theu5 / aspirational-manifests

Handle deployments of .NET Aspire AppHost Projects
MIT License
702 stars 36 forks source link

Kustomize is messing up special characters in YAML #253

Open ExtremeSwat opened 3 months ago

ExtremeSwat commented 3 months ago

🔥 Bug Description

The final config map (in the kustomize file that gets generated in the end) has issues, for example, I'm referencing a property called TenantData which contains various passwords and stuff per tenant

- TenantData={"19d74b3c-2955-4667-9bc5-15d67212469e":{&quot I have attempted tackling this issue multiple ways, but none work....

I have tried with this: project.WithEnvironment("TenantData", tenantDataEnv);

By directly attaching the serialized dictionary, or individually per tenant project.WithEnvironment($"TenantData__{key}__Sql__ConnectionString", tenantDictionary[key].Sql.ConnectionString);

No matter what I do, it will always escape special characters like >, <, &, ", etc