Segmentation Troubleshooting Service
APIs to troubleshoot Segmentation.
Troubleshooting
The Troubleshooting service provides methods to debug segmentation policies and rules.
Operations
ResourceAccess
PolicyClasses
Describe
AccessGrant
Describes a rule or policy that grants access between zones.
| Field | Description | Validation Rule |
|---|---|---|
from | string | – |
to | string | – |
grantedBy | string | – |
AnnotationSource
Describes an annotation-based zone assignment.
| Field | Description | Validation Rule |
|---|---|---|
key | string | – |
value | string | – |
DescribeRequest
Request message for describing an access decision and the policies responsible for it.
| Field | Description | Validation Rule |
|---|---|---|
orgFqn | string | string = { |
sourceFqn | string | string = { |
targetFqn | string | string = { |
includeResources | bool | – |
DescribeResponse
The response describes an access decision between a source and target resource, showing the segmentation zones each belongs to, the rules that grant or deny access, and optionally the full resource definitions.
Example default output for an ALLOWED decision:
Source: organizations/tetrate/tenants/dev/workspaces/eshop
Zone: ring/yellow
Assigned by: organizations/tetrate/segmentation/memberships/ring-membership
Selector: organizations/tetrate/tenants/dev/workspaces/eshop
Target: organizations/tetrate/tenants/dev/workspaces/payments
Zone: ring/amber
Assigned by: organizations/tetrate/segmentation/memberships/ring-membership
Selector: organizations/tetrate/tenants/dev/workspaces/payments
Result: ALLOWED [connect]
Access granted by:
- organizations/tetrate/segmentation/rules/ring-policies
Rule: ring/yellow -\> ring/amber
| Field | Description | Validation Rule |
|---|---|---|
sourceFqn | string | – |
targetFqn | string | – |
decision | tetrateio.api.tsb.segmentation.v1.AccessDecision | – |
operations | List of string | – |
sourceZones | List of tetrateio.api.tsb.segmentation.v1.ZoneAssignment | – |
targetZones | List of tetrateio.api.tsb.segmentation.v1.ZoneAssignment | – |
accessGrants | List of tetrateio.api.tsb.segmentation.v1.AccessGrant | – |
resources | List of tetrateio.api.tsb.segmentation.v1.SegmentationResource | – |
OperationsRequest
Request message for retrieving allowed operations between resources.
| Field | Description | Validation Rule |
|---|---|---|
orgFqn | string | string = { |
sourceFqn | string | string = { |
targetFqn | string | string = { |
OperationsResponse
The response contains the operations that are allowed from a source resource to a given target.
| Field | Description | Validation Rule |
|---|---|---|
operations | List of string | – |
PolicyClassOperations
Operations associated with a single policy class.
| Field | Description | Validation Rule |
|---|---|---|
policyClass | string | – |
operations | List of string | – |
PolicyClassesRequest
Request message for retrieving per-policy-class operations breakdown.
| Field | Description | Validation Rule |
|---|---|---|
orgFqn | string | string = { |
sourceFqn | string | string = { |
targetFqn | string | string = { |
PolicyClassesResponse
The response contains the overall allowed operations and a per-policy-class breakdown.
| Field | Description | Validation Rule |
|---|---|---|
allowedOperations | List of string | – |
policyClasses | List of tetrateio.api.tsb.segmentation.v1.PolicyClassOperations | – |
deniedPolicyClasses | List of tetrateio.api.tsb.segmentation.v1.PolicyClassOperations | – |
ResourceAccessRequest
Request message for retrieving allowed access relationships between resources.
Either source_fqn or target_fqn must be set, but not both.
- If
source_fqnis set, returns the target resources the source is allowed to access. - If
target_fqnis set, returns the source resources allowed to access the target.
| Field | Description | Validation Rule |
|---|---|---|
orgFqn | string | string = { |
sourceFqn | string oneof _resource_fqn | – |
targetFqn | string oneof _resource_fqn | – |
ResourceAccessResponse
Response message for an ResourceAccessRequest.
| Field | Description | Validation Rule |
|---|---|---|
accesses | map<string, google.protobuf.ListValue> That means that the source is allowed to connect to these 4 resources and their descendants. | – |
SegmentationResource
A segmentation resource involved in an access decision.
| Field | Description | Validation Rule |
|---|---|---|
fqn | string | – |
kind | string | – |
resource | google.protobuf.Struct | – |
redacted | bool | – |
ZoneAssignment
Describes how a resource is assigned to a segmentation zone.
| Field | Description | Validation Rule |
|---|---|---|
zone | string | – |
membershipFqn | string oneof _assigned_by | – |
annotation | tetrateio.api.tsb.segmentation.v1.AnnotationSource oneof _assigned_by | – |
selector | string | – |
AccessDecision
The result of an access decision evaluation.
| Field | Number | Description |
|---|---|---|
ACCESS_DECISION_UNSPECIFIED | 0 | Unspecified. |
ALLOWED | 1 | The source is allowed to perform the operations on the target. |
DENIED | 2 | The source is denied access to the target. |