Skip to content

Commit

Permalink
Merge pull request #313 from aserto-dev/model-v2
Browse files Browse the repository at this point in the history
Model V2
  • Loading branch information
ronenh authored Feb 23, 2024
2 parents 3b4c337 + 90b83e2 commit 9e4ac65
Show file tree
Hide file tree
Showing 82 changed files with 3,076 additions and 2,530 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@ FROM alpine

RUN apk add --no-cache bash tzdata

RUN mkdir /config && \
mkdir /certs && \
mkdir /db && \
mkdir /decisions
VOLUME ["/config", "/certs", "/db", "/decisions"]

WORKDIR /app

COPY dist/topaz*_linux_amd64_v1/topaz* /app/

ENTRYPOINT ["./topazd"]
CMD ["run", "-c", "/config/config.yaml"]
7 changes: 7 additions & 0 deletions Dockerfile.goreleaser
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@ FROM alpine

RUN apk add --no-cache bash tzdata

RUN mkdir /config && \
mkdir /certs && \
mkdir /db && \
mkdir /decisions
VOLUME ["/config", "/certs", "/db", "/decisions"]

WORKDIR /app

COPY topaz* /app/

ENTRYPOINT ["./topazd"]
CMD ["run", "-c", "/config/config.yaml"]
16 changes: 16 additions & 0 deletions assets/citadel/citadel_relations.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,14 @@
"subject_type": "user",
"subject_id": "[email protected]"
},
{
"object_type": "group",
"object_id": "editor",
"relation": "member",
"subject_type": "group",
"subject_id": "admin",
"subject_relation": "member"
},
{
"object_type": "group",
"object_id": "evil_genius",
Expand All @@ -139,6 +147,14 @@
"relation": "member",
"subject_type": "user",
"subject_id": "[email protected]"
},
{
"object_type": "group",
"object_id": "viewer",
"relation": "member",
"subject_type": "group",
"subject_id": "editor",
"subject_relation": "member"
}
]
}
16 changes: 16 additions & 0 deletions assets/citadel/ds-load/citadel.json
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,14 @@
"subject_type": "user",
"subject_id": "[email protected]"
},
{
"object_type": "group",
"object_id": "editor",
"relation": "member",
"subject_type": "group",
"subject_id": "admin",
"subject_relation": "member"
},
{
"object_type": "group",
"object_id": "evil_genius",
Expand All @@ -324,6 +332,14 @@
"relation": "member",
"subject_type": "user",
"subject_id": "[email protected]"
},
{
"object_type": "group",
"object_id": "viewer",
"relation": "member",
"subject_type": "group",
"subject_id": "editor",
"subject_relation": "member"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion assets/citadel/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ types:
group:
relations:
### display_name: group#member ###
member: user
member: user | group#member

12 changes: 8 additions & 4 deletions assets/gdrive.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,21 @@
"name": "gdrive",
"description": "Google Drive",
"assets": {
"manifest": "simple-rbac/manifest.yaml",
"manifest": "gdrive/manifest.yaml",
"policy": {
"name": "gdrive",
"resource": "ghcr.io/aserto-policies/policy-rebac:latest"
},
"idp_data": [
"gdrive/gdrive_objects.json",
"gdrive/gdrive_relations.json"
"citadel/citadel_objects.json",
"citadel/citadel_relations.json"
],
"domain_data": [
"gdrive/gdrive_objects.json",
"gdrive/gdrive_relations.json"
],
"assertions": []
"assertions": [
"gdrive/test/gdrive_assertions.json"
]
}
}
Loading

0 comments on commit 9e4ac65

Please sign in to comment.