Skip to content
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

Add permissions to documents POST / PATCH /documents/{documentId} #139

Closed
mfriesen opened this issue Jun 18, 2023 · 0 comments
Closed

Add permissions to documents POST / PATCH /documents/{documentId} #139

mfriesen opened this issue Jun 18, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request invalid This doesn't seem right
Milestone

Comments

@mfriesen
Copy link
Member

mfriesen commented Jun 18, 2023

Extended the POST /documents and PATCH /documents/{documentId} to allow the adding of document level permissions (read/write/delete).

{
"permissions":{
"read":["read1","read2"],
"write":["write1","write2"],
"delete":["delete1","delete2"]
}
}

Everytime a API /documents/{documentId} request is made, if the documents has permissions then access is checked.

Document permissions are inherited from parent folder by default

@mfriesen mfriesen added this to the v1.12.0 milestone Jun 18, 2023
@mfriesen mfriesen added the enhancement New feature or request label Jun 22, 2023
@mfriesen mfriesen self-assigned this Jun 22, 2023
mfriesen added a commit that referenced this issue Jul 22, 2023
* updated library dependencies / gradle

* replaced @ReflectableImport with graalvm annotationProcessor

* #130 added PUT/PATCH /documents/{documentId}/tags

* 138 post documents with reservered tag keys (#141)

* updated localstack from 0.12.2 to 2.1

* #138 - POST /documents with reservered tag keys

* #139 - Add permissions to documents POST / PATCH /documents/{documentId}

* updated to aws-cognito 1.5.1

* change Folder 'indexKey' to not be UrlEncoded.

* added ApiAuthorizationInterceptor

* added GET / POST / DELETE /folders

* added ApiRequestHandlerResponseInterceptor

* added FolderIndexRecord

* added interceptor before request is processed

* FolderIndexProcessor: added getFoldersByDocumentId
mfriesen added a commit that referenced this issue Jul 22, 2023
* #139 - Add permissions to documents POST / PATCH /documents/{documentId}

* updated to aws-cognito 1.5.1

* change Folder 'indexKey' to not be UrlEncoded.

* added ApiAuthorizationInterceptor

* added DynamoDbServiceExtension

* added GET / POST / DELETE /folders

* added ApiRequestHandlerResponseInterceptor

* added FolderIndexRecord

* added FolderIndexProcessor: getFolderByDocumentId

* added interceptor before request is processed

* FolderIndexProcessor: added getFoldersByDocumentId
@mfriesen mfriesen added the invalid This doesn't seem right label Jul 22, 2023
@mfriesen mfriesen closed this as not planned Won't fix, can't repro, duplicate, stale Jul 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant