Skip to main content
logoTetrate Service BridgeVersion: next

Set Up the Platform

The Platform Owner completes these steps once, before onboarding the first application.

The Platform Owner ("Platform") will prepare the platform with the following steps:

  • Deploy TSB: Begin by deploying TSB, and onboarding the intended Workload clusters.
  • Enable Strict (Zero-Trust) Security: Configure the platform to follow 'require-mTLS' and 'deny-all' Zero-Trust security policies.
  • Enable GitOps Integration: Enable GitOps integration so that the Application Owner users can interact with the platform without needing Tetrate privileged access.
  • Enable Additional Integrations: Enable the optional platform services that later steps in this guide rely on, such as rate limiting and DNS automation.

When the platform is ready, use the onboarding runbook to create the namespaces, Workspace and Ingress Gateways for each application.

RunBook​

  1. Platform: Deploy TSB​

    Follow the product instructions to deploy the TSB management plane (either on-prem or hosted) and familiarize yourself with its operation, particularly managing users and assigning permissions.

    Onboard the workload clusters (on-prem or hosted) that will host the applications you plan to manage using TSB.

  2. Platform: Enable Strict Security​

    You should use TSB to configure your platform to function in a zero-trust manner. Specifically:

    • All communications between components and app-owner services are secured using mTLS. This means that external third-parties such as other services in the cluster or with access to the data path cannot read transactions, modify transactions or impersonate clients or services.
    • All communication is denied by default. The platform owner must explicitly open-up the required communication paths. This means that only explicitly-allowed communications are permitted.

    Strict Security​

    In Tetrate products, the default settings are associated with the top-level Organization, which is user-definable in TSB.

    You'll find the security settings in the OrganizationSetting.spec.defaultSecuritySetting stanza in the OrganizationSetting named default-setting. They will initially be empty:

    tctl get OrganizationSetting -o yaml
    • To require mTLS by default, set authenticationSettings.trafficMode to REQUIRED
    • To declare Deny-All by default, set authorization.rules.denyAll to true
    • Leave propagationStrategy set to REPLACE, so that each Workspace can open up the traffic it needs. Do not use STRICTER with this design: child resources could then only tighten these settings, so the WORKSPACE authorization mode that each application's Workspace uses could not relax the organization-wide Deny-All

    Edit the settings using tctl or the Tetrate UI:

    tctl edit OrganizationSetting
    tctl edit OrganizationSetting
    apiVersion: api.tsb.tetrate.io/v2
    kind: OrganizationSetting
    metadata:
    displayName: default-setting
    name: default-setting
    organization: tetrate
    spec:
    defaultSecuritySetting:
    displayName: default-setting
    authenticationSettings:
    trafficMode: REQUIRED
    authorization:
    mode: RULES
    rules:
    denyAll: true
    propagationStrategy: REPLACE
    defaultTrafficSetting:
    displayName: default-setting
    displayName: default-setting
    fqn: organizations/tetrate/settings/default-setting

    These settings are described in the TSB API reference.

    You will later override these settings selectively to allow permitted flows: first within each application's Workspace, and then between Workspaces where needed.

  3. Platform: Enable GitOps Integration​

    GitOps Integration is a convenience, but is not essential

    The Tetrate platform can accept configuration through the Tetrate APIs (REST, gRPC), the Tetrate UI, using the tctl CLI tool or from Kubernetes resource configuration ('GitOps').

    Most commonly:

    • Platform-wide configuration is provided using tctl, and the calling user needs to authenticate against the Tetrate API server
    • Per-application configuration is provided using kubectl, and the calling user needs to authenticate against the Kubernetes API server

    This means that:

    • Platform Owners use tctl or the Tetrate APIs/UI to perform platform-wide configuration
    • Cluster Onboarding and configuration is automated and configuration provided using either GitOps or the Tetrate API
    • Application Owners deploy applications to target clusters using a pipeline; the pipeline provides the necessary per-application Tetrate configuration using GitOps

    In this guide, we'll present per-application configuration with both GitOps and Tetrate APIs for your convenience.

    What is 'GitOps'?​

    Tetrate's GitOps integration allows users to provide platform-wide configuration using the Kubernetes API. GitOps should be enabled on one or more clusters; the process installs the CRDs for the Tetrate platform-wide configuration, and any resources are automatically pushed up from the cluster to the Tetrate API server.

    GitOps is disabled by default. To use it on a workload cluster, enable GitOps in the ControlPlane resource. The cluster's service account also needs permission to push configuration to the Management Plane.

    To enable GitOps on a cluster:

    tctl x gitops grant <cluster-name>

    In most cases, you'll want to limit this grant to the scope that users on the cluster need. For example, to require that GitOps resources only apply to a named tenant or tenant-and-workspace, limit the grant as follows:

    tctl x gitops grant <cluster-name> --tenant <tenant-name> --workspace <workspace-name>

    The Tetrate GitOps reconciler will look for Tetrate GitOps resources in all namespaces. You can use Kubernetes RBAC to control which users can create GitOps resources in which namespaces.

    The onboarding runbook runs this command for each application's Workspace on each of its clusters. Without the --tenant and --workspace options, the grant covers the entire organization.

    In summary, GitOps is not just for GitOps use cases. It is useful even before an organization has adopted a GitOps posture for managing configuration; GitOps can also be used to allow selected K8s users to manage Tetrate configuration. This means that users do not have to have a Tetrate user/role, and they can use the K8s tools they are already accustomed to.

    GitOps does not check which Workspace a resource targets

    Kubernetes RBAC can limit which TSB resources a user can create in a namespace, but not their contents. A user could create a resource in their own namespace that targets another Workspace, provided the cluster's grant covers it. To restrict the Tenants, Workspaces and Groups that can be referenced from each namespace, use a policy tool such as OPA Gatekeeper. For more information, refer to Kubernetes ClusterRole objects and TSB APIs.

  4. Platform: Enable Additional Integrations​

    Some of the later steps in this guide rely on optional platform services. Enable the ones you plan to use: