StackGuardian / StackGuardian/tirith
fix(providers): dotted keys are addressable from terraform_plan but not from json/kubernetes
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 165
- Forks
- 42
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 11
Description
terraform_plan resolves each path segment through pydash.get, which honours a backslash escape;
the shared engine used by json and kubernetes does a bare key_path.split('.'), and every
spelling — plain, escaped, bracketed — returns []. A Kubernetes annotation
(metadata.annotations."foo.bar/baz") is reachable from a plan and unreachable from the same
manifest through the json provider.
Fix. Honour the same backslash escape in providers/common.py.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in providers/common.py and compare the shared json and kubernetes path handling with terraform_plan's pydash.get behavior. Done when plain, escaped, and bracketed paths containing dotted keys resolve correctly for json and kubernetes manifests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 85/100