-
Notifications
You must be signed in to change notification settings - Fork 3
ACP #12
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
Merged
Merged
ACP #12
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Root ACR for the agent account | ||
@prefix acl: <http://www.w3.org/ns/auth/acl#>. | ||
@prefix acp: <http://www.w3.org/ns/solid/acp#>. | ||
|
||
# The owner has full access to every resource in their pod. | ||
# Other agents have no access rights, | ||
# unless specifically authorized in other ACRs. | ||
<#root> | ||
a acp:AccessControlResource; | ||
# Set the access to the root storage folder itself | ||
acp:resource <./>; | ||
# The homepage is readable by the public | ||
acp:accessControl <#fullOwnerAccess>, <#publicReadAccess>; | ||
# All resources will inherit this authorization | ||
acp:memberAccessControl <#fullOwnerAccess>. | ||
|
||
# The public only has read access | ||
<#publicReadAccess> | ||
a acp:AccessControl; | ||
acp:apply [ | ||
a acp:Policy; | ||
acp:allow acl:Read; | ||
acp:anyOf [ | ||
a acp:Matcher; | ||
acp:agent acp:PublicAgent | ||
] | ||
]. | ||
|
||
# The owner has all of the access modes allowed | ||
<#fullOwnerAccess> | ||
a acp:AccessControl; | ||
acp:apply [ | ||
a acp:Policy; | ||
acp:allow acl:Read, acl:Write, acl:Control; | ||
acp:allOf [ | ||
a acp:Matcher; | ||
acp:agent <{{webId}}> | ||
acp:client <https://solid.pondersource.com/clientid.jsonld> | ||
] | ||
]. |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@prefix pim: <http://www.w3.org/ns/pim/space#>. | ||
|
||
<> a pim:Storage. |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Welcome to your pod | ||
|
||
## A place to store your data | ||
Your pod is a **secure storage space** for your documents and data. | ||
<br> | ||
You can choose to share those with other people and apps. | ||
|
||
As the owner of this pod, | ||
identified by <a href="{{webId}}">{{webId}}</a>, | ||
you have access to all of your documents. | ||
|
||
## Working with your pod | ||
The easiest way to interact with pods | ||
is through Solid apps. | ||
<br> | ||
For example, | ||
you can open your pod in [Databrowser](https://solidos.github.io/mashlib/dist/browse.html?uri={{podBaseUrl}}). | ||
|
||
## Learn more | ||
The [Solid website](https://solidproject.org/) | ||
and the people on its [forum](https://forum.solidproject.org/) | ||
will be glad to help you on your journey. |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@prefix acl: <http://www.w3.org/ns/auth/acl#>. | ||
@prefix acp: <http://www.w3.org/ns/solid/acp#>. | ||
|
||
<#card> | ||
a acp:AccessControlResource; | ||
acp:resource <./README>; | ||
acp:accessControl <#publicReadAccess>. | ||
|
||
<#publicReadAccess> | ||
a acp:AccessControl; | ||
acp:apply [ | ||
a acp:Policy; | ||
acp:allow acl:Read; | ||
acp:anyOf [ | ||
a acp:Matcher; | ||
acp:agent acp:PublicAgent | ||
] | ||
]. |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/>. | ||
@prefix solid: <http://www.w3.org/ns/solid/terms#>. | ||
@prefix space: <http://www.w3.org/ns/pim/space#>. | ||
@prefix ldp: <http://www.w3.org/ns/ldp#>. | ||
<> | ||
a foaf:PersonalProfileDocument; | ||
foaf:maker <{{webId}}>; | ||
foaf:primaryTopic <{{webId}}>. | ||
|
||
<{{webId}}> | ||
{{#if name}}foaf:name "{{name}}";{{/if}} | ||
space:storage <../>; | ||
ldp:inbox <../inbox/>; | ||
space:preferencesFile <../settings/prefs.ttl>; | ||
solid:privateTypeIndex <../settings/privateTypeIndex.ttl>; | ||
solid:publicTypeIndex <../settings/publicTypeIndex.ttl>; | ||
{{#if oidcIssuer}}solid:oidcIssuer <{{oidcIssuer}}>;{{/if}} | ||
a foaf:Person. |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# ACR for the WebID profile document | ||
@prefix acl: <http://www.w3.org/ns/auth/acl#>. | ||
@prefix acp: <http://www.w3.org/ns/solid/acp#>. | ||
|
||
# The WebID profile is readable by the public. | ||
# This is required for discovery and verification, | ||
# e.g. when checking identity providers. | ||
<#card> | ||
a acp:AccessControlResource; | ||
acp:resource <./card>; | ||
acp:accessControl <#publicReadAccess>. | ||
|
||
<#publicReadAccess> | ||
a acp:AccessControl; | ||
acp:apply [ | ||
a acp:Policy; | ||
acp:allow acl:Read; | ||
acp:anyOf [ | ||
a acp:Matcher; | ||
acp:agent acp:PublicAgent | ||
] | ||
]. |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Root ACR for the agent account | ||
@prefix acl: <http://www.w3.org/ns/auth/acl#>. | ||
@prefix acp: <http://www.w3.org/ns/solid/acp#>. | ||
|
||
# The owner has full access to every resource in their pod. | ||
# Other agents have no access rights, | ||
# unless specifically authorized in other ACRs. | ||
<#root> | ||
a acp:AccessControlResource; | ||
# Set the access to the root storage folder itself | ||
acp:resource <./>; | ||
# The homepage is readable by the public | ||
acp:accessControl <#publicReadAccess>; | ||
# All resources will inherit this authorization | ||
acp:memberAccessControl <#publicReadAccess>. | ||
|
||
# The public has read access to anything under this folder | ||
<#publicReadAccess> | ||
a acp:AccessControl; | ||
acp:apply [ | ||
a acp:Policy; | ||
acp:allow acl:Read; | ||
acp:anyOf [ | ||
a acp:Matcher; | ||
acp:agent acp:PublicAgent | ||
] | ||
]. | ||
|
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
User-agent: * | ||
# Allow all crawling (subject to ACLs as usual, of course) | ||
Disallow: |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
@prefix dct: <http://purl.org/dc/terms/>. | ||
@prefix pim: <http://www.w3.org/ns/pim/space#>. | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/>. | ||
@prefix solid: <http://www.w3.org/ns/solid/terms#>. | ||
|
||
<> | ||
a pim:ConfigurationFile; | ||
|
||
dct:title "Preferences file" . | ||
|
||
{{#if email}}<{{webId}}> foaf:mbox <{{email}}> .{{/if}} | ||
|
||
<{{webId}}> | ||
solid:publicTypeIndex <publicTypeIndex.ttl> ; | ||
solid:privateTypeIndex <privateTypeIndex.ttl> . |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@prefix solid: <http://www.w3.org/ns/solid/terms#>. | ||
<> | ||
a solid:TypeIndex ; | ||
a solid:UnlistedDocument. |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@prefix acl: <http://www.w3.org/ns/auth/acl#>. | ||
@prefix acp: <http://www.w3.org/ns/solid/acp#>. | ||
|
||
<#card> | ||
a acp:AccessControlResource; | ||
acp:resource <./README>; | ||
acp:accessControl <#publicReadAccess>. | ||
|
||
<#publicReadAccess> | ||
a acp:AccessControl; | ||
acp:apply [ | ||
a acp:Policy; | ||
acp:allow acl:Read; | ||
acp:anyOf [ | ||
a acp:Matcher; | ||
acp:agent acp:PublicAgent | ||
] | ||
]. |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@prefix solid: <http://www.w3.org/ns/solid/terms#>. | ||
<> | ||
a solid:TypeIndex ; | ||
a solid:ListedDocument. |
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.
Uh oh!
There was an error while loading. Please reload this page.