This is a repo used to demonstrate bugs in Styra DAS Git integration
- root
- rego
- folder1
- rules1.rego
- folder2
- rules2.rego
- folder1
- rego
- Delete the files already there (rules.rego and test.rego)
- Set it to read-only, as we do not intend to use the UI to edit rules, but instead let them flow from the source control system
- Set up Git integration. You will need to create a Personal Access Token.
- Follow instructions in the 'install' tab of the settings.
- Send POST to your local OPA to the url http://localhost:8181/data/folder1, you should receive a allow = false of some kind unless you specify the right input.
- See branch "Working-1" in this repo.
- Commit, wait, and test the system again.
- Folder1 gets deleted, so this bug is now fixed
Make it look like this:
-
root
- rego
- folder2
- subfolder1
- rules1.rego
- subfolder2
- rules2.rego
- subfolder1
- folder2
- rego
-
Adjust package names
-
Commit, wait, and test the system again.
- Delete what looks bad

- Do a whitespace change to each file in the subfolder
- Commit, push and wait
- Looks good again:

-
Delete the files in folder2
-
Commit, but don't push yet
-
Re-add the files in a new folder structure:
-
root
- rego
- folder2
- subfolder1
- v1
- rules1.rego
- v2
- rules2.rego
- v1
- subfolder1
- folder2
- rego
-
Commit, push and wait


