Fetches the secret rule identified by the UUID.
curl --request GET \
--url https://api.endorlabs.com/v1/namespaces/{tenant_meta.namespace}/secret-rules/{uuid}{
"meta": {
"name": "<string>",
"annotations": {},
"create_time": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"description": "<string>",
"index_data": {
"data": [
"<string>"
],
"search_score": 123,
"tenant": "<string>",
"will_be_deleted_at": "2023-11-07T05:31:56Z"
},
"kind": "<string>",
"parent_kind": "<string>",
"parent_uuid": "<string>",
"references": {},
"tags": [
"<string>"
],
"update_time": "2023-11-07T05:31:56Z",
"updated_by": "<string>",
"upsert_time": "2023-11-07T05:31:56Z",
"version": "<string>"
},
"spec": {
"allowlist": {
"commits": [
"<string>"
],
"description": "<string>",
"paths": [
"<string>"
],
"regex_target": "<string>",
"regexes": [
"<string>"
],
"stop_words": [
"<string>"
]
},
"description": "<string>",
"disabled": true,
"entropy": 123,
"keywords": [
"<string>"
],
"path": "<string>",
"regex": "<string>",
"rule_id": "<string>",
"secret_group": 123,
"tags": [
"<string>"
],
"validation": {
"allowed_template_params": [
{
"name": "TEMPLATE_PARAM_NAME_UNSPECIFIED",
"regex": "<string>"
}
],
"description": "<string>",
"h_request": {
"body": [
{
"authz": true,
"key": "<string>",
"separator": "<string>",
"value": "<string>"
}
],
"header": [
{
"authz": true,
"key": "<string>",
"separator": "<string>",
"value": "<string>"
}
],
"method": "<string>",
"method_name": "<string>",
"query": [
{
"authz": true,
"key": "<string>",
"separator": "<string>",
"value": "<string>"
}
],
"uri": "<string>"
},
"h_response": {
"failed_auth_codes": [
123
],
"invalid_code_regex": "<string>",
"status_code": "<string>",
"successful_auth_codes": [
123
],
"successful_response_data": {},
"successful_response_text": "<string>"
},
"hmac_auth": {
"hdr_name": "<string>",
"secret": "<string>"
},
"http_request": {
"body": [
{
"authz": true,
"key": "<string>",
"separator": "<string>",
"value": "<string>"
}
],
"header": [
{
"authz": true,
"key": "<string>",
"separator": "<string>",
"value": "<string>"
}
],
"method": "<string>",
"method_name": "<string>",
"query": [
{
"authz": true,
"key": "<string>",
"separator": "<string>",
"value": "<string>"
}
],
"uri": "<string>"
},
"http_response": {
"failed_auth_codes": [
123
],
"invalid_code_regex": "<string>",
"status_code": "<string>",
"successful_auth_codes": [
123
],
"successful_response_data": {},
"successful_response_text": "<string>"
},
"name": "<string>",
"request_body": "<string>",
"template_params": [
{
"values": [
{
"name": "TEMPLATE_PARAM_NAME_UNSPECIFIED",
"value": "<string>"
}
]
}
]
}
},
"propagate": true,
"tenant_meta": {
"namespace": "<string>"
},
"uuid": "<string>"
}Namespaces are a way to organize organizational units into virtual groupings of resources. Namespaces must be a fully qualified name, for example, the child namespace of namespace "endor.prod" called "app" is called "endor.prod.app".
The UUID of the requested resource.
List of fields to return (all fields are returned by default).
A successful response.
Common fields for all Endor Labs resources.
Show child attributes
Internal specification of the object.
Follows the specification of the gitleaks configuration object defined here: https://github.com/gitleaks/gitleaks/blob/master/config/rule.go
Show child attributes
Propagate indicates that the object should be visible in children namespaces.
Tenant related data for the tenant containing the resource.
Show child attributes
The UUID of the secret rule.
curl --request GET \
--url https://api.endorlabs.com/v1/namespaces/{tenant_meta.namespace}/secret-rules/{uuid}{
"meta": {
"name": "<string>",
"annotations": {},
"create_time": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"description": "<string>",
"index_data": {
"data": [
"<string>"
],
"search_score": 123,
"tenant": "<string>",
"will_be_deleted_at": "2023-11-07T05:31:56Z"
},
"kind": "<string>",
"parent_kind": "<string>",
"parent_uuid": "<string>",
"references": {},
"tags": [
"<string>"
],
"update_time": "2023-11-07T05:31:56Z",
"updated_by": "<string>",
"upsert_time": "2023-11-07T05:31:56Z",
"version": "<string>"
},
"spec": {
"allowlist": {
"commits": [
"<string>"
],
"description": "<string>",
"paths": [
"<string>"
],
"regex_target": "<string>",
"regexes": [
"<string>"
],
"stop_words": [
"<string>"
]
},
"description": "<string>",
"disabled": true,
"entropy": 123,
"keywords": [
"<string>"
],
"path": "<string>",
"regex": "<string>",
"rule_id": "<string>",
"secret_group": 123,
"tags": [
"<string>"
],
"validation": {
"allowed_template_params": [
{
"name": "TEMPLATE_PARAM_NAME_UNSPECIFIED",
"regex": "<string>"
}
],
"description": "<string>",
"h_request": {
"body": [
{
"authz": true,
"key": "<string>",
"separator": "<string>",
"value": "<string>"
}
],
"header": [
{
"authz": true,
"key": "<string>",
"separator": "<string>",
"value": "<string>"
}
],
"method": "<string>",
"method_name": "<string>",
"query": [
{
"authz": true,
"key": "<string>",
"separator": "<string>",
"value": "<string>"
}
],
"uri": "<string>"
},
"h_response": {
"failed_auth_codes": [
123
],
"invalid_code_regex": "<string>",
"status_code": "<string>",
"successful_auth_codes": [
123
],
"successful_response_data": {},
"successful_response_text": "<string>"
},
"hmac_auth": {
"hdr_name": "<string>",
"secret": "<string>"
},
"http_request": {
"body": [
{
"authz": true,
"key": "<string>",
"separator": "<string>",
"value": "<string>"
}
],
"header": [
{
"authz": true,
"key": "<string>",
"separator": "<string>",
"value": "<string>"
}
],
"method": "<string>",
"method_name": "<string>",
"query": [
{
"authz": true,
"key": "<string>",
"separator": "<string>",
"value": "<string>"
}
],
"uri": "<string>"
},
"http_response": {
"failed_auth_codes": [
123
],
"invalid_code_regex": "<string>",
"status_code": "<string>",
"successful_auth_codes": [
123
],
"successful_response_data": {},
"successful_response_text": "<string>"
},
"name": "<string>",
"request_body": "<string>",
"template_params": [
{
"values": [
{
"name": "TEMPLATE_PARAM_NAME_UNSPECIFIED",
"value": "<string>"
}
]
}
]
}
},
"propagate": true,
"tenant_meta": {
"namespace": "<string>"
},
"uuid": "<string>"
}