Back to all work
BigObject Inc.

Data Galaxy Foundation

BigObject's existing product, Data Planet, runs on premises at each installation. As the first engineer on a new cloud team, I built the identity, analytics, and deployment base for its connected cloud service, Data Galaxy.

Software EngineerFeb to Jun 2024PrelaunchFour-month build

How each installation sees only its own data

Blue boxes are what I built. Follow the token from the embedded report down to PostgreSQL, then the release path at the bottom.

Data Galaxy prelaunch system. Each on-premises Data Planet installation gets an OAuth2 identity from Keycloak and calls the Django Data Galaxy API with a bearer token. An embedded Looker Studio report passes a tenant JWT through a community connector to the same API, which derives tenant scope from token claims and reads metrics from PostgreSQL. Airflow loads behavior logs from daily Elasticsearch indices and identity records from Keycloak into PostgreSQL and computes daily metrics. Releases go from image build to a container registry to Ansible paths per environment.Customer siteBigObject cloudAWS-hosted servicesAnalytics proof of concept · containersGoogleRelease pathData Planeton-premisesone per customer siteKeycloakOAuth2 / OIDCinstallation identitiesservice rolesData Galaxy APIDjango, token middlewaretenant scope from claimsmetrics by date range1Looker Studioembedded reportConnectorcommunity connectorpasses tenant JWTAirflowDAGs: events, identitiesdaily metrics, catch-up3PostgreSQLevents, identitiesdaily metricssystem of record2Elasticsearchdaily log indicesImage buildDockerContainer registryversioned imagesAnsiblepaths per environmentstaging, production-oriented4Targetsweb portal, KeycloakData Galaxy, analytics stackData Planet environmentsOAuth2HTTPS · bearer tokenverifyJWTbehavior logsdaily indexidentitieswriteSQL · tenant + datespushpulldeployData Galaxy prelaunch system. Each on-premises Data Planet installation gets an OAuth2 identity from Keycloak and calls the Django Data Galaxy API with a bearer token. An embedded Looker Studio report passes a tenant JWT through a community connector to the same API, which derives tenant scope from token claims and reads metrics from PostgreSQL. Airflow loads behavior logs from daily Elasticsearch indices and identity records from Keycloak into PostgreSQL and computes daily metrics. Releases go from image build to a container registry to Ansible paths per environment.Looker Studio reportembedded report, GoogleCommunity connectorpasses the tenant JWTData Galaxy APIDjango · token middlewaretenant scope from claims1KeycloakOAuth2OIDCidentitiesPostgreSQLevents, identitiesdaily metrics2Airflowdaily DAGs with catch-upevents + identities → metrics3Elasticsearchdaily log indicesData Planeton-premises, one per customer sitecalls the API with its tokenImage buildDockerContainer registryversioned imagesAnsiblepaths per environmentstaging, production-oriented4Targetsweb portal, KeycloakData Galaxy, analytics stackData Planet environmentstenant JWT paramHTTPS · bearer JWTverifySQL · tenant + datesidentitieswritedaily indexOAuth2 tokenbehavior logspushpulldeployQuery path, top to bottomRelease path
Simplified reconstruction of the prelaunch system. Data Planet was the existing on-premises product.
  1. 1Tenant scope comes from the token, inside our API

    Chose
    Shared Django middleware validates the Keycloak bearer token and derives the tenant from its claims. The embedded Looker Studio report passes a tenant JWT through a community connector to the same API.
    Instead of
    Trusting a tenant identifier in each request, or giving every customer a Google account.
    Result
    A caller cannot reach another installation's metrics through request parameters. Later cloud services can reuse the same access pattern.
  2. 2Metrics stay in PostgreSQL

    Chose
    PostgreSQL as the system of record for events, identities, and daily metrics, read only through the authenticated API.
    Instead of
    Copying metrics into BigQuery, as my earlier Linc prototype did.
    Result
    Looker Studio stays a presentation layer. Tenant isolation is enforced in one place.
  3. 3Airflow owns ingestion and recovery

    Chose
    Airflow DAGs that move behavior logs from daily Elasticsearch indices and identity records from Keycloak into PostgreSQL, then compute daily metrics with catch-up enabled.
    Instead of
    Chained cron jobs, like the Linc pipeline I worked on before.
    Result
    Missed days catch up through the same tasks.
  4. 4Releases do not depend on one machine

    Chose
    Container image builds, a registry, and Ansible paths per environment for the web portal, Keycloak, Data Galaxy, the analytics stack, and Data Planet deployments.
    Instead of
    Deploying from one engineer's machine.
    Result
    The two engineers I mentored continued the system after the handoff.

StackAWS, Python, Django, Keycloak, OAuth2/OIDC, Apache Airflow, PostgreSQL, Elasticsearch, Docker, Ansible, Looker Studio

Full records: identity, deployment, analytics

Authenticated Data Galaxy API

Established a Keycloak-backed Django service boundary for installation identities and tenant-scoped metric queries.

Problem
Existing on-premises installations needed access to new cloud services without trusting a tenant identifier supplied in each request or creating a separate authorization model for every API.
Implementation
Registered installation identities and service roles in Keycloak, validated OAuth2 bearer tokens in shared Django middleware, derived tenant scope from token claims, and enforced that boundary on the analytics API.
Reasoning
Keeping identity, service permissions, and tenant selection in one boundary prevented callers from querying another installation through request parameters alone and gave future cloud services a reusable access pattern.
Outcome
Established the authenticated service path used by the prelaunch analytics and BI flows.

AWS environments and repeatable deployment

Established repeatable release paths across AWS-hosted cloud services and connected Data Planet environments using Docker, Ansible, environment inventories, and a container registry.

Problem
The new team had to operate a web portal, Keycloak, Data Galaxy, analytics services, and existing installation deployments across multiple environments before the platform or team had stabilized.
Implementation
Created environment-specific Ansible paths for the portal, Keycloak, and Data Planet, containerized Data Galaxy and the analytics stack, and separated image build and registry promotion from staging and production-oriented deployment configuration.
Reasoning
Encoding service allocation and environment differences made releases reviewable and reproducible instead of depending on one engineer's machine during a fixed four-month engagement.
Outcome
Left a deployment foundation that the incoming engineers could continue after the handoff.

Tenant-scoped analytics proof of concept

Validated an end-to-end path from behavior logs and identity data to embedded, tenant-isolated BI without requiring customer Google accounts or moving metrics into BigQuery.

Problem
The new cloud service needed to prove it could produce useful per-installation metrics and expose them safely through an embedded report before the product launched.
Implementation
Built Airflow DAGs that moved Elasticsearch behavior logs and Keycloak identity records into PostgreSQL, calculated daily metrics with catch-up enabled, exposed them through the authenticated Django API, and passed an embedded tenant JWT through a Looker Studio community connector.
Reasoning
Airflow owned scheduling and recovery, PostgreSQL remained the system of record, and the authenticated API enforced tenant isolation while Looker Studio stayed a presentation layer.
Outcome
Completed the prelaunch analytics path and validated the BI access mechanism.
Operating context
Prelaunch cloud foundation, Fixed four-month delivery window, Development, staging, and production-oriented paths
Role
Software Engineer, first engineer on the new cloud-product team
Ownership
The authenticated Django service boundary, cloud environments and deployment automation, and an end-to-end tenant-scoped analytics proof of concept.

Where the idea started

At Linc I prototyped a tenant-aware Looker Studio path. Here I built that path with metrics kept behind our own authenticated API.