cloudposse / cloudposse/atmos

OPA Policy Not Running When Using Nested Abstract Components

Open
#404 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
1.4k
Forks
175
Avg merge
2d 3h
Merged PRs (30d)
134

Description

### Describe the Bug

When I add an OPA policy to a component that has nested abstract inheritance, the OPA policy isn't running.

### Expected Behavior

I would expect "atmos validate" etc. to run the policy.

### Steps to Reproduce

1, Create 3 abstract components, each inheriting from the previous one
2. Create a real component that inherits from the last abstracted component
3. Place OPA policy settings/validation on any of the components
4. Run atmos validate

Note that simply inheriting the very first abstract component into a real component will work. But when the abstract components inherit from each other, an OPA policy doesn't run when validating a real component that inherits from such abstracts, even if the OPA policy is on the first abstract component.

### Screenshots

_No response_

### Environment

_No response_

### Additional Context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.