summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-04-02 17:51:59 -0600
committermo khan <mo@mokhan.ca>2025-04-02 17:51:59 -0600
commitd8bb19101c155adddd942e3fa908ebec5b5ae7c1 (patch)
treed97d4612daebea18091cd30046521cb931d0bc8f
parent678aaa9789e15e765acf5b3761606704bf13b6b0 (diff)
chore: use cedar cli to fix entities.json
-rw-r--r--.tool-versions2
-rw-r--r--pkg/policies/entities.json287
2 files changed, 147 insertions, 142 deletions
diff --git a/.tool-versions b/.tool-versions
index 954cfe16..b141417e 100644
--- a/.tool-versions
+++ b/.tool-versions
@@ -1,3 +1,5 @@
+cargo latest
golang 1.24.0
protoc 3.19.6
ruby 3.4.2
+rust stable
diff --git a/pkg/policies/entities.json b/pkg/policies/entities.json
index 2a7aa96a..75d08750 100644
--- a/pkg/policies/entities.json
+++ b/pkg/policies/entities.json
@@ -27,169 +27,172 @@
"type": "User",
"id": "1"
},
+ "attrs": {},
"parents": []
},
{
"uid": {
"type": "Organization",
- "id": "1",
- "attrs": {
- "name": "default"
- }
- }
+ "id": "1"
+ },
+ "attrs": {
+ "name": "default"
+ },
+ "parents": []
},
{
"uid": {
"type": "Organization",
- "id": "2",
- "attrs": {
- "name": "gitlab"
- }
- }
+ "id": "2"
+ },
+ "attrs": {
+ "name": "gitlab"
+ },
+ "parents": []
},
{
"uid": {
"type": "Group",
- "id": "1",
- "attrs": {
- "name": "A"
- },
- "parents": [
- {
- "type": "Organization",
- "id": "1"
- }
- ]
- }
+ "id": "1"
+ },
+ "attrs": {
+ "name": "A"
+ },
+ "parents": [
+ {
+ "type": "Organization",
+ "id": "1"
+ }
+ ]
},
{
"uid": {
"type": "Group",
- "id": "2",
- "attrs": {
- "name": "B"
- },
- "parents": [
- {
- "type": "Organization",
- "id": "1"
- }
- ]
- }
+ "id": "2"
+ },
+ "attrs": {
+ "name": "B"
+ },
+ "parents": [
+ {
+ "type": "Organization",
+ "id": "1"
+ }
+ ]
},
{
"uid": {
"type": "Group",
- "id": "3",
- "attrs": {
- "name": "gitlab-org"
- },
- "parents": [
- {
- "type": "Organization",
- "id": "2"
- }
- ]
- }
+ "id": "3"
+ },
+ "attrs": {
+ "name": "gitlab-org"
+ },
+ "parents": [
+ {
+ "type": "Organization",
+ "id": "2"
+ }
+ ]
},
{
"uid": {
"type": "Group",
- "id": "4",
- "attrs": {
- "name": "gitlab-com"
- },
- "parents": [
- {
- "type": "Organization",
- "id": "2"
- }
- ]
- }
+ "id": "4"
+ },
+ "attrs": {
+ "name": "gitlab-com"
+ },
+ "parents": [
+ {
+ "type": "Organization",
+ "id": "2"
+ }
+ ]
},
{
"uid": {
"type": "Group",
- "id": "5",
- "attrs": {
- "name": "gl-security"
+ "id": "5"
+ },
+ "attrs": {
+ "name": "gl-security"
+ },
+ "parents": [
+ {
+ "type": "Organization",
+ "id": "2"
},
- "parents": [
- {
- "type": "Organization",
- "id": "2"
- },
- {
- "type": "Group",
- "id": "4"
- }
- ]
- }
+ {
+ "type": "Group",
+ "id": "4"
+ }
+ ]
},
{
"uid": {
"type": "Group",
- "id": "6",
- "attrs": {
- "name": "test-projects"
+ "id": "6"
+ },
+ "attrs": {
+ "name": "test-projects"
+ },
+ "parents": [
+ {
+ "type": "Organization",
+ "id": "2"
},
- "parents": [
- {
- "type": "Organization",
- "id": "2"
- },
- {
- "type": "Group",
- "id": "5"
- }
- ]
- }
+ {
+ "type": "Group",
+ "id": "5"
+ }
+ ]
},
{
"uid": {
"type": "Group",
- "id": "7",
- "attrs": {
- "name": "support"
+ "id": "7"
+ },
+ "attrs": {
+ "name": "support"
+ },
+ "parents": [
+ {
+ "type": "Organization",
+ "id": "2"
},
- "parents": [
- {
- "type": "Organization",
- "id": "2"
- },
- {
- "type": "Group",
- "id": "4"
- }
- ]
- }
+ {
+ "type": "Group",
+ "id": "4"
+ }
+ ]
},
{
"uid": {
"type": "Group",
- "id": "8",
- "attrs": {
- "name": "toolbox"
+ "id": "8"
+ },
+ "attrs": {
+ "name": "toolbox"
+ },
+ "parents": [
+ {
+ "type": "Organization",
+ "id": "2"
},
- "parents": [
- {
- "type": "Organization",
- "id": "2"
- },
- {
- "type": "Group",
- "id": "7"
- }
- ]
- }
+ {
+ "type": "Group",
+ "id": "7"
+ }
+ ]
},
{
"uid": {
"type": "Project",
- "id": "1",
- "attrs": {
- "name": "A1"
- }
+ "id": "1"
+ },
+ "attrs": {
+ "name": "A1"
},
"parents": [
{
@@ -201,10 +204,10 @@
{
"uid": {
"type": "Project",
- "id": "2",
- "attrs": {
- "name": "B1"
- }
+ "id": "2"
+ },
+ "attrs": {
+ "name": "B1"
},
"parents": [
{
@@ -216,10 +219,10 @@
{
"uid": {
"type": "Project",
- "id": "3",
- "attrs": {
- "name": "gitlab"
- }
+ "id": "3"
+ },
+ "attrs": {
+ "name": "gitlab"
},
"parents": [
{
@@ -231,10 +234,10 @@
{
"uid": {
"type": "Project",
- "id": "4",
- "attrs": {
- "name": "eicar-test-project"
- }
+ "id": "4"
+ },
+ "attrs": {
+ "name": "eicar-test-project"
},
"parents": [
{
@@ -246,10 +249,10 @@
{
"uid": {
"type": "Project",
- "id": "5",
- "attrs": {
- "name": "disclosures"
- }
+ "id": "5"
+ },
+ "attrs": {
+ "name": "disclosures"
},
"parents": [
{
@@ -261,10 +264,10 @@
{
"uid": {
"type": "Project",
- "id": "6",
- "attrs": {
- "name": "changelog-parser"
- }
+ "id": "6"
+ },
+ "attrs": {
+ "name": "changelog-parser"
},
"parents": [
{
@@ -276,10 +279,10 @@
{
"uid": {
"type": "Project",
- "id": "7",
- "attrs": {
- "name": "handbook"
- }
+ "id": "7"
+ },
+ "attrs": {
+ "name": "handbook"
},
"parents": [
{
@@ -291,10 +294,10 @@
{
"uid": {
"type": "Project",
- "id": "8",
- "attrs": {
- "name": "www-gitlab-com"
- }
+ "id": "8"
+ },
+ "attrs": {
+ "name": "www-gitlab-com"
},
"parents": [
{