{"record":{"id":"f46af251dc9a2df5","repo":"microsoft/aspire","slug":"secret-store-storename-references-a-manifest-at-manifestpath-f46af2","errorCode":null,"errorMessage":"Secret store '{storeName}' references a manifest at '{manifestPath}' that is malformed YAML with an unbalanced sequence. Provide a single well-formed encrypted Bitnami SealedSecret document.","messagePattern":"Secret store '(.+?)' references a manifest at '(.+?)' that is malformed YAML with an unbalanced sequence\\. Provide a single well-formed encrypted Bitnami SealedSecret document\\.","errorType":"validation","errorClass":"InvalidOperationException","httpStatus":null,"severity":"error","filePath":"src/Aspire.Hosting.Radius/Secrets/SealedSecretManifest.cs","lineNumber":618,"sourceCode":"                if (stack.Count == 0)\n                {\n                    throw CreateInvalidManifestException(\n                        storeName,\n                        manifestPath,\n                        \"is malformed YAML with an unbalanced mapping. Provide a single well-formed encrypted Bitnami SealedSecret document.\");\n                }\n\n                stack.Pop();\n            }\n            else if (yamlEvent is SequenceStart)\n            {\n                stack.Push(MappingFrame.s_sequence);\n            }\n            else if (yamlEvent is SequenceEnd)\n            {\n                if (stack.Count == 0)\n                {\n                    throw CreateInvalidManifestException(\n                        storeName,\n                        manifestPath,\n                        \"is malformed YAML with an unbalanced sequence. Provide a single well-formed encrypted Bitnami SealedSecret document.\");\n                }\n\n                stack.Pop();\n            }\n        }\n    }\n\n    private static bool HasExplicitTag(NodeEvent nodeEvent) =>\n        !nodeEvent.Tag.IsEmpty &&\n        !string.Equals(nodeEvent.Tag.Value, \"!\", StringComparison.Ordinal);\n\n    private static void RegisterNodeWithParent(\n        string storeName, string manifestPath, ParsingEvent yamlEvent, Stack<MappingFrame> stack)\n    {\n        if (stack.Count == 0)","sourceCodeStart":600,"sourceCodeEnd":636,"githubUrl":"https://github.com/microsoft/aspire/blob/25830f84bd145686607ad00c057b3f84e2e51d43/src/Aspire.Hosting.Radius/Secrets/SealedSecretManifest.cs#L600-L636","documentation":"Like mappings, SequenceStart/SequenceEnd events must pair up. An unbalanced sequence close in the manifest's event stream triggers this error instead of an internal exception, signaling malformed YAML rather than a valid SealedSecret document.","triggerScenarios":"ReadMetadataFromYaml -> ValidateStructure handles a SequenceEnd event while the frame stack is empty, i.e. a `]`-style sequence terminator with no open sequence.","commonSituations":"Malformed flow-style sequences `[a, b` left unclosed then closed later; corrupted file transfer; generator bugs emitting extra sequence ends.","solutions":["Run the file through yamllint or `yq` to locate the unbalanced sequence and repair it","Regenerate the SealedSecret manifest as a single well-formed document","Inspect the file for accidental duplication/concatenation of documents that unbalances brackets"],"exampleFix":"// before\nspec:\n  encryptedData: [key1, key2\n// after\nspec:\n  encryptedData:\n    key1: \"AgA...==\"\n    key2: \"AgB...==\"","handlingStrategy":"validation","validationCode":"try { new YamlDotNet.RepresentationModel.YamlStream().Load(new StringReader(File.ReadAllText(manifestPath))); }\ncatch (Exception ex) { throw new InvalidOperationException($\"{manifestPath} has unbalanced YAML structure: {ex.Message}\"); }","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Close all flow-style sequences `[...]` and block sequences consistently","Lint with yamllint before use","Regenerate manifests from tools instead of hand-joining fragments"],"tags":["yaml","malformed","structure","sealed-secrets"],"backgroundTag":"yaml-parse-error","analyzedSha":"25830f84bd145686607ad00c057b3f84e2e51d43","analyzedAt":"2026-09-16T11:10:06.193Z","contentChangedAt":"2026-09-16T11:10:06.193Z","schemaVersion":2},"datasetVersion":"2026-09-21T09:17:21.228Z"}