New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(core): add a schema for policy files #733
Draft
boneskull
wants to merge
2
commits into
main
Choose a base branch
from
boneskull/new-policy-schema
base: main
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Oct 6, 2023
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @boneskull and the rest of your teammates on Graphite |
boneskull
force-pushed
the
boneskull/core-types
branch
from
October 6, 2023 20:28
2ea1ab5
to
3587bcb
Compare
boneskull
force-pushed
the
boneskull/new-policy-schema
branch
from
October 6, 2023 20:28
5baf379
to
b13fbce
Compare
boneskull
force-pushed
the
boneskull/core-types
branch
from
October 11, 2023 22:01
3587bcb
to
f19d012
Compare
boneskull
force-pushed
the
boneskull/new-policy-schema
branch
from
October 11, 2023 22:01
b13fbce
to
1839cd8
Compare
boneskull
force-pushed
the
boneskull/core-types
branch
from
October 12, 2023 22:13
f19d012
to
328dc8e
Compare
boneskull
force-pushed
the
boneskull/new-policy-schema
branch
2 times, most recently
from
October 12, 2023 23:36
f11e27f
to
313063a
Compare
boneskull
force-pushed
the
boneskull/core-types
branch
from
October 17, 2023 20:47
ba28275
to
0a2f1a9
Compare
boneskull
force-pushed
the
boneskull/new-policy-schema
branch
from
October 17, 2023 20:48
313063a
to
920c41f
Compare
boneskull
force-pushed
the
boneskull/core-types
branch
from
October 18, 2023 22:12
0a2f1a9
to
6d067b6
Compare
boneskull
force-pushed
the
boneskull/new-policy-schema
branch
from
October 18, 2023 22:12
920c41f
to
2d84984
Compare
boneskull
force-pushed
the
boneskull/core-types
branch
from
October 19, 2023 21:46
6d067b6
to
6b32b92
Compare
boneskull
force-pushed
the
boneskull/new-policy-schema
branch
from
October 19, 2023 21:46
2d84984
to
b59d7a8
Compare
boneskull
force-pushed
the
boneskull/core-types
branch
from
October 23, 2023 22:35
6b32b92
to
62d861f
Compare
boneskull
force-pushed
the
boneskull/new-policy-schema
branch
from
October 23, 2023 22:35
b59d7a8
to
75ac647
Compare
boneskull
force-pushed
the
boneskull/core-types
branch
from
October 26, 2023 19:12
62d861f
to
8e39609
Compare
boneskull
force-pushed
the
boneskull/new-policy-schema
branch
from
October 26, 2023 19:12
75ac647
to
acb3fb5
Compare
boneskull
force-pushed
the
boneskull/core-types
branch
from
October 26, 2023 22:54
8e39609
to
1040401
Compare
boneskull
force-pushed
the
boneskull/new-policy-schema
branch
from
October 27, 2023 20:20
acb3fb5
to
4276e87
Compare
boneskull
force-pushed
the
boneskull/core-types
branch
from
November 1, 2023 19:24
1040401
to
aef0ea4
Compare
boneskull
force-pushed
the
boneskull/new-policy-schema
branch
from
November 1, 2023 19:24
4276e87
to
cf32124
Compare
boneskull
force-pushed
the
boneskull/core-types
branch
from
November 6, 2023 22:29
aef0ea4
to
e32cc45
Compare
boneskull
force-pushed
the
boneskull/new-policy-schema
branch
from
November 6, 2023 22:29
cf32124
to
fc983c0
Compare
This was referenced Nov 7, 2023
boneskull
force-pushed
the
boneskull/new-policy-schema
branch
6 times, most recently
from
March 8, 2024 22:06
2fe1a70
to
91e86c7
Compare
boneskull
force-pushed
the
boneskull/new-policy-schema
branch
4 times, most recently
from
March 18, 2024 21:37
2c268f3
to
185deb5
Compare
boneskull
changed the base branch from
main
to
boneskull/zap-aa-macos-perf-test
March 19, 2024 19:40
boneskull
force-pushed
the
boneskull/new-policy-schema
branch
from
March 19, 2024 19:40
185deb5
to
98180b4
Compare
This was referenced Mar 19, 2024
boneskull
force-pushed
the
boneskull/zap-aa-macos-perf-test
branch
from
March 19, 2024 20:29
166c953
to
8fcab2f
Compare
boneskull
force-pushed
the
boneskull/new-policy-schema
branch
from
March 19, 2024 20:29
98180b4
to
c51040d
Compare
boneskull
force-pushed
the
boneskull/new-policy-schema
branch
4 times, most recently
from
March 27, 2024 19:50
4b9ea76
to
73df997
Compare
boneskull
force-pushed
the
boneskull/new-policy-schema
branch
from
April 9, 2024 20:49
73df997
to
bec7503
Compare
boneskull
force-pushed
the
boneskull/new-policy-schema
branch
from
April 29, 2024 18:51
bec7503
to
6ff5549
Compare
I pulled in [ajv](https://npm.im/ajv) for this. I had tried to use [z-schema](https://npm.im/z-schema) but I couldn't get it working quickly (apparently you need to supply the metaschema??) so abandoned it. If there's a more lightweight, _maintained_ solution, I'm happy to try it.
boneskull
force-pushed
the
boneskull/new-policy-schema
branch
from
May 2, 2024 19:29
6ff5549
to
91fd5dc
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
chore
overhead, tests, dev env, etc.
dependencies
Pull requests that update a dependency file
documentation
Docs, examples, tutorials, and associated tooling
enhancement
New feature or request
pkg:lavamoat-core
Changes in package lavamoat-core
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Continuation of #620.
This seems like a reasonable idea for schema versioning.
To test in VS Code, you can add this property to any policy file: