snapshot of https://github.com/cortezaproject/corteza.git (2024.9.x, 2026-09-18; blobs > 131072B omitted)
Some checks failed
SonarQube / SonarQube (push) Failing after 5m28s
E2e test on main branch push / server and client test (map[name:admin port:8080]) (push) Failing after 3m33s
Server and lib tests / Library test (js) (push) Failing after 1m36s
Server and lib tests / Library test (vue) (push) Successful in 2m24s
Server and lib tests / Web client test (admin) (push) Successful in 2m52s
Server and lib tests / Web client test (compose) (push) Successful in 3m23s
Server and lib tests / Web client test (discovery) (push) Successful in 2m49s
Server and lib tests / Web client test (one) (push) Successful in 2m52s
Server and lib tests / Web client test (privacy) (push) Successful in 2m44s
Server and lib tests / Web client test (reporter) (push) Successful in 2m56s
Server and lib tests / Web client test (workflow) (push) Successful in 3m0s
Server and lib tests / Server tests (push) Failing after 4m55s
E2e test on main branch push / notify-failure (push) Failing after 9s
Server and lib tests / Send matrix testing notification (push) Successful in 2s
Mark stale issues and pull requests / stale (push) Successful in 40s
Some checks failed
SonarQube / SonarQube (push) Failing after 5m28s
E2e test on main branch push / server and client test (map[name:admin port:8080]) (push) Failing after 3m33s
Server and lib tests / Library test (js) (push) Failing after 1m36s
Server and lib tests / Library test (vue) (push) Successful in 2m24s
Server and lib tests / Web client test (admin) (push) Successful in 2m52s
Server and lib tests / Web client test (compose) (push) Successful in 3m23s
Server and lib tests / Web client test (discovery) (push) Successful in 2m49s
Server and lib tests / Web client test (one) (push) Successful in 2m52s
Server and lib tests / Web client test (privacy) (push) Successful in 2m44s
Server and lib tests / Web client test (reporter) (push) Successful in 2m56s
Server and lib tests / Web client test (workflow) (push) Successful in 3m0s
Server and lib tests / Server tests (push) Failing after 4m55s
E2e test on main branch push / notify-failure (push) Failing after 9s
Server and lib tests / Send matrix testing notification (push) Successful in 2s
Mark stale issues and pull requests / stale (push) Successful in 40s
This commit is contained in:
163
server/compose/service/attachment_actions.yaml
Normal file
163
server/compose/service/attachment_actions.yaml
Normal file
@@ -0,0 +1,163 @@
|
||||
# List of loggable service actions
|
||||
|
||||
resource: compose:attachment
|
||||
service: attachment
|
||||
|
||||
# Default sensitivity for actions
|
||||
defaultActionSeverity: notice
|
||||
|
||||
# default severity for errors
|
||||
defaultErrorSeverity: alert
|
||||
|
||||
import:
|
||||
- github.com/cortezaproject/corteza/server/compose/types
|
||||
|
||||
props:
|
||||
- name: size
|
||||
type: int64
|
||||
- name: name
|
||||
- name: mimetype
|
||||
- name: url
|
||||
- name: attachment
|
||||
type: "*types.Attachment"
|
||||
fields: [ name, kind, url, previewUrl, meta, ownerID, ID, namespaceID ]
|
||||
- name: filter
|
||||
type: "*types.AttachmentFilter"
|
||||
fields: [ filter, kind, sort ]
|
||||
- name: namespace
|
||||
type: "*types.Namespace"
|
||||
fields: [ name, slug, ID ]
|
||||
- name: record
|
||||
type: "*types.Record"
|
||||
fields: [ ID, moduleID, namespaceID ]
|
||||
- name: page
|
||||
type: "*types.Page"
|
||||
fields: [ handle, title, ID ]
|
||||
- name: module
|
||||
type: "*types.Module"
|
||||
fields: [ handle, name, ID ]
|
||||
|
||||
actions:
|
||||
- action: search
|
||||
log: "searched for attachments"
|
||||
severity: info
|
||||
|
||||
- action: lookup
|
||||
log: "looked-up for a {{attachment}}"
|
||||
severity: info
|
||||
|
||||
- action: create
|
||||
log: "created {{attachment}}"
|
||||
|
||||
- action: delete
|
||||
log: "deleted {{attachment}}"
|
||||
|
||||
errors:
|
||||
- error: notFound
|
||||
message: "attachment not found"
|
||||
severity: warning
|
||||
|
||||
- error: namespaceNotFound
|
||||
message: "namespace not found"
|
||||
severity: warning
|
||||
|
||||
- error: moduleNotFound
|
||||
message: "module not found"
|
||||
severity: warning
|
||||
|
||||
- error: pageNotFound
|
||||
message: "page not found"
|
||||
severity: warning
|
||||
|
||||
- error: recordNotFound
|
||||
message: "record not found"
|
||||
severity: warning
|
||||
|
||||
- error: invalidID
|
||||
message: "invalid ID"
|
||||
severity: warning
|
||||
|
||||
- error: invalidNamespaceID
|
||||
message: "invalid namespace ID"
|
||||
severity: warning
|
||||
|
||||
- error: invalidModuleID
|
||||
message: "invalid module ID"
|
||||
severity: warning
|
||||
|
||||
- error: invalidModuleField
|
||||
message: "invalid module field"
|
||||
severity: warning
|
||||
|
||||
- error: invalidPageID
|
||||
message: "invalid page ID"
|
||||
severity: warning
|
||||
|
||||
- error: invalidRecordID
|
||||
message: "invalid record ID"
|
||||
severity: warning
|
||||
|
||||
- error: tooLarge
|
||||
message: "file too large"
|
||||
log: "could not upload this file, file size too large"
|
||||
|
||||
- error: notAllowedToUploadThisType
|
||||
message: "file type not allowed"
|
||||
log: "could not upload this file, file type not allowed"
|
||||
|
||||
- error: notAllowedToListAttachments
|
||||
message: "not allowed to list attachments"
|
||||
log: "could not list attachments; insufficient permissions"
|
||||
|
||||
- error: notAllowedToCreate
|
||||
message: "not allowed to create attachments"
|
||||
log: "could not create attachments; insufficient permissions"
|
||||
|
||||
- error: notAllowedToCreateEmptyAttachment
|
||||
message: "not allowed to create empty attachments"
|
||||
log: "failed to create attachment; empty file"
|
||||
|
||||
- error: failedToExtractMimeType
|
||||
message: "could not extract mime type"
|
||||
|
||||
- error: failedToStoreFile
|
||||
message: "could not extract store file"
|
||||
|
||||
- error: failedToProcessImage
|
||||
message: "could not process image"
|
||||
|
||||
- error: notAllowedToRead
|
||||
message: "not allowed to read this module"
|
||||
log: "could not delete {{module}}; insufficient permissions"
|
||||
|
||||
- error: notAllowedToSearch
|
||||
message: "not allowed to search or list modules"
|
||||
log: "could not search or list modules; insufficient permissions"
|
||||
|
||||
- error: notAllowedToReadNamespace
|
||||
message: "not allowed to read this namespace"
|
||||
log: "could not delete {{namespace}}; insufficient permissions"
|
||||
|
||||
- error: notAllowedToReadPage
|
||||
message: "not allowed to read this page"
|
||||
log: "could not read {{page}}; insufficient permissions"
|
||||
|
||||
- error: notAllowedToReadRecord
|
||||
message: "not allowed to read this record"
|
||||
log: "could not read {{record}}; insufficient permissions"
|
||||
|
||||
- error: notAllowedToUpdatePage
|
||||
message: "not allowed to update this page"
|
||||
log: "could not update {{page}}; insufficient permissions"
|
||||
|
||||
- error: notAllowedToCreateRecords
|
||||
message: "not allowed to create records"
|
||||
log: "could not create records; insufficient permissions"
|
||||
|
||||
- error: notAllowedToUpdateRecord
|
||||
message: "not allowed to update this record"
|
||||
log: "could not update {{record}}; insufficient permissions"
|
||||
|
||||
- error: notAllowedToUpdateNamespace
|
||||
message: "not allowed to update this namespace"
|
||||
log: "could not update {{namespace}}; insufficient permissions"
|
||||
Reference in New Issue
Block a user