GlassOps™
Governance-first Salesforce DevOps.
Status
GlassOps is a CI-agnostic command line tool that acts as the CI/CD layer for Salesforce delivery, with other platforms possible later. It is written in Go and replaces the older GitHub Action runtime that this repository once held.
The current release is v1.4.0. It adds governed operations: commands declared in glassops.yaml that run against a target under their own PERMIT from gate --ops, with values such as a site name bound at gate and signed into the PERMIT, run as an argument list with no shell, and run again later with glassops op. It also installs pinned sf plugins with glassops setup, keeps the PERMIT key and the CI token request variables out of every sf call and exec step, adds named logins on one target, and records the validate behind each decision in the PERMIT. v1.2.0 let each target choose a full or delta plan, ran pipeline exec steps logged in to a target under the PERMIT, and denied a PERMIT after a failed validate on production. v1.1.0 added opt-in Sigstore signing, Rego rules, a pull request comment and OpenTelemetry export. v1.0.0 was the first final release. All releases are on the releases page. GlassOps has deployed a real Salesforce project to production through its full deploy pipeline: plan, validate, gate, deploy, verify and report, in a protected GitHub environment. What is in which release lists every command and feature with the release that first has it.
What Exists Today
The glassops CLI
The CLI lives at the repository root (cmd/, internal/, schemas/). Each step is its own command, and glassops run runs a whole pipeline of them. Salesforce is the built-in provider, and provider exec runs your own commands for any other deploy tool. The CI layers are GitHub Actions, Bitbucket Pipelines and GitLab CI. The last two have not run on a real runner yet.
| Command | What it does |
|---|---|
init |
Detects the provider and CI system, then writes glassops.yaml and a CI file |
doctor |
Checks the config, tools, git checkout and environment variables. With --auth it also logs in to targets |
describe |
Logs in to a target, runs the org Id guard and records what the target reports |
plan |
Works out the change set between two git refs |
validate |
Runs a check-only validate of the change set. On a scratch org it first seeds what a destructive change needs |
gate |
Evaluates the policy rules for a target into a signed PERMIT |
permit verify |
Checks that a PERMIT is signed, unexpired and bound to this target, commit, plan and config |
deploy |
Deploys the change set, only under a valid PERMIT, then moves the deployed tag |
verify |
After a deploy, checks that the target holds what the plan says |
report |
Summarises every result as markdown and SARIF |
env create, env delete, env sweep |
Create, delete and sweep ephemeral scratch orgs that later steps use |
test |
Runs Apex tests with coverage on a target and writes JUnit XML |
check |
Runs your own project scripts |
analyze |
Runs the Code Analyzer and records violation counts. Needs analyze.enabled: true and the glassops-analyzer image |
run |
Runs a named pipeline from glassops.yaml, such as the default pr and deploy |
Commands exit 0 on pass, 1 on a failed check and 2 on a tool error, and every command except report writes a result file to .glassops/results/. See the CLI reference, the configuration reference, PERMIT and rules, Run a pipeline and the GitHub deploy guide.
Learn More
- Architecture overview:
overview.md - CLI reference:
cli.md - Configuration reference:
config.md - PERMIT and rules:
permit-and-rules.md - Run a pipeline:
run-a-pipeline.md - Deploy with GitHub:
deploy-with-github.md - Bitbucket and GitLab:
other-ci.md - Scratch org definitions and settings:
scratch-org-settings.md - The exec provider:
exec-provider.md - Sigstore signing (opt-in):
sigstore-signing.md - Rego rules (opt-in):
rego-rules.md - Pull request comment and OpenTelemetry export (opt-in):
pr-comment-and-telemetry.md - Verify, coverage and YAML settings:
verify-and-coverage-settings.md - Releases, images and licenses:
releases-and-licenses.md - Design history (direction and earlier designs, not current functionality): the vision, the white paper and the ADRs are kept in the repository and are not part of the docs site
Who This Is For
Teams that:
- Already use (or want to use) GitHub Actions
- Care about auditability and compliance
- Prefer transparent systems over black boxes
Quick Start
The image to use is ghcr.io/glassops-platform/glassops:v1, which follows the latest 1.x release. For a reproducible run, use ghcr.io/glassops-platform/glassops:1.0.0 or pin the image by digest. To build from a checkout instead, run go build -o glassops ./cmd/glassops for the CLI or docker build -t glassops . for the container image.
On GitHub, examples/consumer/ is the smallest working layout. It holds a glassops.yaml and two short workflows that call the reusable workflows glassops-pr.yml and glassops-deploy.yml from this repository. The deploy caller passes GLASSOPS_PERMIT_KEY by name, and the value lives only as a secret of the protected glassops-deploy environment. See the GitHub deploy guide. Or run glassops init in a Salesforce DX project to generate a similar setup.
Contributing
- Report bugs or suggest features
- Improve the Go CLI
- See
CONTRIBUTING.mdfor details.
License
- Code: Apache 2.0. See LICENSE
- Documentation: Creative Commons Attribution 4.0 International. See docs/LICENSE
Contact
- Issues: GitHub Issues
- Author: Ryan Bumstead (@rdbumstead)
- Maintainer: Ryan Bumstead (@rdbumstead)