Policy types for @turbot/servicenow-gcp-secretmanager
- GCP > Secret Manager > Secret > ServiceNow
- GCP > Secret Manager > Secret > ServiceNow > Configuration Item
- GCP > Secret Manager > Secret > ServiceNow > Configuration Item > Record
- GCP > Secret Manager > Secret > ServiceNow > Configuration Item > Table Definition
- GCP > Secret Manager > Secret > ServiceNow > Table
- GCP > Secret Manager > Secret > ServiceNow > Table > Definition
GCP > Secret Manager > Secret > ServiceNow
tmod:@turbot/servicenow-gcp-secretmanager#/policy/types/secretServiceNow
GCP > Secret Manager > Secret > ServiceNow > Configuration Item
Synchronize the data for the GCP > Secretmanager > Secret
based on the policies GCP > Secretmanager > Secret > ServiceNow > Configuration Item > *
The Configuration Item control is responsible for automatically synchronizing records in a designated ServiceNow table, maintaining an up-to-date reflection of the GCP > Secretmanager > Secret
information within the ServiceNow CMDB.
tmod:@turbot/servicenow-gcp-secretmanager#/policy/types/secretServiceNowConfigurationItem
[ "Skip", "Check: Archived", "Check: Deleted", "Check: Sync", "Enforce: Archived", "Enforce: Deleted", "Enforce: Sync", "Enforce: Sync, archive on delete"]
{ "type": "string", "enum": [ "Skip", "Check: Archived", "Check: Deleted", "Check: Sync", "Enforce: Archived", "Enforce: Deleted", "Enforce: Sync", "Enforce: Sync, archive on delete" ], "example": [ "Skip" ], "default": "Skip"}
GCP > Secret Manager > Secret > ServiceNow > Configuration Item > Record
The policy facilitates the accurate representation of cloud resource within the ServiceNow environment, ensuring that critical data is effectively mapped and managed. Attribute of an GCP > Secretmanager > Secret
is systematically mapped to a specific column in a ServiceNow table.
The policy allows enabling organizations to select and map only those attributes that are most relevant to their operational needs. It significantly reduces the manual effort involved in data transfer and minimizes the risk of errors, thereby enhancing the overall efficiency of data management.
tmod:@turbot/servicenow-gcp-secretmanager#/policy/types/secretServiceNowConfigurationItemRecord
"{\n resource: secret{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
"annotations: {{ $.resource.data.annotations | dump | safe }}\ncreate_time: {{ $.resource.data.createTime | dump | safe }}\netag: {{ $.resource.data.etag | dump | safe }}\nexpire_time: {{ $.resource.data.expireTime | dump | safe }}\nlabels: {{ $.resource.data.labels | dump | safe }}\nreplication: {{ $.resource.data.replication | dump | safe }}\nrotation: {{ $.resource.data.rotation | dump | safe }}\nsecret_name: {{ $.resource.data.secretName | dump | safe }}\ntopics: {{ $.resource.data.topics | dump | safe }}\nttl: {{ $.resource.data.ttl | dump | safe }}\nversion_aliases: {{ $.resource.data.versionAliases | dump | safe }}\n"
{ "type": "object"}
GCP > Secret Manager > Secret > ServiceNow > Configuration Item > Table Definition
This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the GCP > Secretmanager > Secret
data will be stored, and the details of the columns used for archiving purposes.
tmod:@turbot/servicenow-gcp-secretmanager#/policy/types/secretServiceNowConfigurationItemTableDefinition
[ "{\n serviceNowInstance: resources(filter: \"resourceTypeId:tmod:@turbot/servicenow#/resource/types/instance level:self limit:1\") {\n items {\n turbot {\n id\n }\n }\n }\n}\n", "{\n tableDefinition: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow-gcp-secretmanager#/policy/types/secretServiceNowTableDefinition resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n applicationScope: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow#/policy/types/serviceNowApplicationScope resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n}\n"]
"tableName: "{%- if $.applicationScope.items | length == 0 or $.tableDefinition.items | length == 0 %} {%- else %}{{$.applicationScope.items[0].value}}_{{$.tableDefinition.items[0].value.table.name | lower}}{% endif %}"\n"
{ "type": "object", "additionalProperties": false, "required": [ "tableName" ], "properties": { "tableName": { "type": "string" }, "archiveColumns": { "type": "object" } }}
GCP > Secret Manager > Secret > ServiceNow > Table
Configure a Table for GCP > Secretmanager > Secret
resource type in ServiceNow via the GCP > Secretmanager > Secret > ServiceNow > Table > *
policies.
tmod:@turbot/servicenow-gcp-secretmanager#/policy/types/secretServiceNowTable
[ "Skip", "Check: Configured", "Enforce: Configured"]
{ "type": "string", "enum": [ "Skip", "Check: Configured", "Enforce: Configured" ], "example": [ "Skip" ], "default": "Skip"}
GCP > Secret Manager > Secret > ServiceNow > Table > Definition
The policy enables the definition of ServiceNow table properties, including its name and the base table from which it extends, and details the specific columns required for representing GCP > Secretmanager > Secret
data.
tmod:@turbot/servicenow-gcp-secretmanager#/policy/types/secretServiceNowTableDefinition
{ "type": "object", "additionalProperties": false, "required": [ "table", "columns" ], "properties": { "table": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string", "pattern": "^([0-9a-z_])+$" }, "label": { "type": "string" }, "extendsTable": { "type": "string", "pattern": "^([0-9a-z_])+$" } } }, "columns": { "type": "array", "description": "An array of columns with their mappings to the CMDB.", "default": [], "items": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string", "description": "The name of the column in the table.", "pattern": "^([0-9a-z_])+$" }, "label": { "type": "string", "description": "The label for the column." }, "type": { "description": "The data type of the column.", "type": "string" }, "size": { "type": "integer", "description": "The length for data type." } } } } }, "default": { "table": { "name": "guardrails_gcp_secretmanager_secret", "label": "GCP > Secretmanager > Secret", "extendsTable": "cmdb_ci" }, "columns": [ { "name": "annotations", "label": "Annotations", "type": "string", "size": 1000 }, { "name": "create_time", "label": "Create Time" }, { "name": "etag", "label": "Etag" }, { "name": "expire_time", "label": "Expire Time" }, { "name": "labels", "label": "Labels" }, { "name": "replication", "label": "Replication", "type": "string", "size": 1000 }, { "name": "rotation", "label": "Rotation", "type": "string", "size": 1000 }, { "name": "secret_name", "label": "Secret Name" }, { "name": "topics", "label": "Topics", "type": "string", "size": 1000 }, { "name": "ttl", "label": "TTL" }, { "name": "version_aliases", "label": "Version Aliases", "type": "string", "size": 1000 } ] }}