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
102 lines
2.3 KiB
YAML
102 lines
2.3 KiB
YAML
# List of loggable service actions
|
|
|
|
resource: system:sink
|
|
service: sink
|
|
|
|
# Default sensitivity for actions
|
|
defaultActionSeverity: notice
|
|
|
|
# default severity for errors
|
|
defaultErrorSeverity: alert
|
|
|
|
import:
|
|
- github.com/cortezaproject/corteza/server/system/types
|
|
|
|
props:
|
|
- name: url
|
|
- name: responseStatus
|
|
type: int
|
|
- name: contentType
|
|
- name: sinkParams
|
|
type: "*SinkRequestUrlParams"
|
|
- name: mailHeader
|
|
type: "*types.MailMessageHeader"
|
|
fields: [ to, CC, BCC, from, replyTo, raw ]
|
|
|
|
actions:
|
|
- action: sign
|
|
log: "signed sink request URL"
|
|
severity: notice
|
|
|
|
- action: preprocess
|
|
|
|
- action: request
|
|
log: "sink request processed"
|
|
|
|
|
|
errors:
|
|
- error: failedToSign
|
|
message: "could not sign request params: {{err}}"
|
|
severity: error
|
|
|
|
- error: failedToCreateEvent
|
|
message: "failed to create sink event from request"
|
|
severity: error
|
|
|
|
- error: failedToProcess
|
|
message: "failed to process request"
|
|
severity: error
|
|
|
|
- error: failedToRespond
|
|
message: "failed to respond to request"
|
|
severity: error
|
|
|
|
- error: missingSignature
|
|
message: "missing sink signature parameter"
|
|
httpStatus: StatusBadRequest
|
|
|
|
- error: invalidSignatureParam
|
|
message: "invalid sink signature parameter"
|
|
httpStatus: StatusUnauthorized
|
|
|
|
- error: badSinkParamEncoding
|
|
message: "bad encoding of sink parameters"
|
|
httpStatus: StatusBadRequest
|
|
|
|
- error: invalidSignature
|
|
message: "invalid signature"
|
|
httpStatus: StatusUnauthorized
|
|
|
|
- error: invalidSinkRequestUrlParams
|
|
message: "invalid sink request url params"
|
|
httpStatus: StatusInternalServerError
|
|
|
|
- error: invalidHttpMethod
|
|
message: "invalid HTTP method"
|
|
httpStatus: StatusUnauthorized
|
|
|
|
- error: invalidContentType
|
|
message: "invalid content-type header"
|
|
httpStatus: StatusUnauthorized
|
|
|
|
- error: invalidPath
|
|
message: "invalid path"
|
|
httpStatus: StatusUnauthorized
|
|
|
|
- error: misplacedSignature
|
|
message: "signature misplaced"
|
|
httpStatus: StatusBadRequest
|
|
|
|
- error: signatureExpired
|
|
message: "signature expired"
|
|
httpStatus: StatusGone
|
|
|
|
- error: contentLengthExceedsMaxAllowedSize
|
|
message: "content length exceeds max size limit"
|
|
httpStatus: StatusRequestEntityTooLarge
|
|
|
|
- error: processingError
|
|
message: "sink request process error"
|
|
httpStatus: StatusInternalServerError
|
|
|