Skip to content

Latest commit

 

History

History
142 lines (106 loc) · 18.8 KB

File metadata and controls

142 lines (106 loc) · 18.8 KB

Contrast

Contrast Action Attributes

This document defines semantic convention attributes in the Contrast namespace

Attribute Type Description Examples Stability
contrast.action string The type of action that was observed. file-open-create; authn-request Experimental

contrast.action has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

Value Description Stability
authn-request Functions that perform authentication actions Experimental
authz-request Functions that perform authorization actions Experimental
el-execution Spring expression language execution Experimental
file-open-create file open or create action Experimental
host-cmd-exec system shell command execution Experimental
ldap-query Functions that result in and ldap query operation Experimental
ognl-execution Object-Graph Navigation Language expression execution. Experimental
outbound_service_call Functions that result in external calls to other services Experimental
smtp-exec Functions that result in an SMTP command execution Experimental
storage-query Functions that execute queries Experimental
url-forward Any function designed to forward a request to another URL Experimental
url-redirect Function that result in an http 302 redirect code sent to the client Experimental

Contrast Action Authn Attributes

Describes attributes for Contrast Action span of type authn-request

Attribute Type Description Examples Stability
contrast.authentication.mechanism string An authentication mechanism is a specific method or approach used to verify the identity of a user, system, or entity attempting to access a resource. password; token; biometric Experimental
contrast.authentication.protocol string An authentication protocol is a set of rules and procedures that dictate how authentication mechanisms should operate to establish trust and verify identities securely. oauth; saml; ldap; custom Experimental

contrast.authentication.mechanism has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

Value Description Stability
biometric file open or create action Experimental
certificate x509 certificate authentication or similar Experimental
mfa Two or more of the above mechanisms are used Experimental
password Users provide a username and password. Experimental
token Involves using a physical or virtual token to authenticate a user Experimental

contrast.authentication.protocol has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

Value Description Stability
kerberos kerberos Experimental
ldap Lightweight Directory Access Protocol Experimental
oauth Open Authentication and OIDC Experimental
saml Security Assertion Markup Language Experimental

Contrast Action Authz Attributes

Describes attributes for Contrast Action span of type authz-request

Attribute Type Description Examples Stability
contrast.authorization.dac.permission string Permission requested for access to the resource. The values here are very domain specific, but will always be normalized to a lowercase value in the data here. read; write; append; delete Experimental
contrast.authorization.mac.labels string Labels on the requested resource. The values here are very domain specific, but will always be normalized to a lowercase value in the data here. top_secret; confidential; internal; public Experimental
contrast.authorization.mechanism string How are authz decisions made for the resource. rbac; dac; pbac Experimental
contrast.authorization.rbac.role string Role Requested for authz check. The values here are very domain specific, but will always be normalized to a lowercase value in the data here. user; editor; manager Experimental

contrast.authorization.mechanism has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

Value Description Stability
abac Attribute Based Access Control Experimental
dac Discretionary Access Control (DAC) is a model where owners of resources have the discretion to control access to their resources. Experimental
hbac History Based Access Control Experimental
mac Mandatory Access Control (MAC) is a security model where access to resources is determined by the security labels assigned to subjects (users or processes) and objects (resources). Experimental
pbac Policy Based Access Control Experimental
rbac Role Based Access Control Experimental
tbac Time Based Access Control Experimental

Contrast Action File Open Create Attributes

Describes attributes for Contrast Action span of type file-open-create.

Attribute Type Description Examples Stability
contrast.file.open.flags string The flags used when the file was opened or created. o_rdonly; o_rdwr Experimental
contrast.file.open.path string The absolute path that was accessed. /etc/myconfig; /foo/bar; /some/tmp Experimental

contrast.file.open.flags has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

Value Description Stability
o_rdonly Read only access Experimental
o_rdwr Read/write access Experimental
o_wronly Write only access Experimental

Contrast Code Exec Attributes

Attributes that refer to code execution operations

Attribute Type Description Examples Stability
contrast.code.contents string The code representing the expression being executed. #{'String1 ' + 'string2'}; #{20 - 1}; 'Just a string value'.substring(5) Experimental

Contrast Host Cmd Exec Attributes

Describes attributes for Contrast Action span of type host-cmd-exec.

Attribute Type Description Examples Stability
contrast.host_cmd_exec.cmd string String of executed command with its arguments. ls /foo; bash -c somebin; chmod 755 foobar Experimental

Contrast Resource Attributes

contrast defined resources for observability data

Attribute Type Description Examples Stability
contrast.deployment string deployment environment QA; DEVELOPMENT; PRODUCTION Experimental
contrast.semconv.version string The version of contrast semantic conventions the data adheres to. 0.3.0 Experimental
otel.semconv.version string The version of otel semantic conventions the data adheres to. 1.22.0 Experimental

contrast.deployment has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

Value Description Stability
DEVELOPMENT development environment Experimental
PRODUCTION production environment Experimental
QA quality assurance environment Experimental