How ridecell/ridectl works
Ridectl is an employee-facing CLI for interacting with SummonPlatform and microservice environments. Users choose a command and target; Ridectl resolves the Kubernetes instance and performs an operation such as opening a shell, inspecting database access, restarting workloads, or editing encrypted secrets. The graph includes documented capabilities even where their implementation was not sampled; links for those features rely on README evidence. Source excerpts show shell execution, restart actions, and the secret-editing flow; unsampled internals are not inferred.
Main entry points: root.go Command root · object.go Secret objects · shell.go Interactive shell · pyshell.go Python shell
Components 22
CLI and access
- CLI entry
cmd/ridectl/main.go - Command root
pkg/cmd/root.go - Access and config
pkg/utils/utils.go - Command execution
pkg/exec/exec.go
Workload operations
- Interactive shell
pkg/cmd/shell.go - Python shell
pkg/cmd/pyshell.go - Restart workloads
pkg/cmd/restart.go
Secret management
- Secret edit flow
pkg/cmd/edit.go - Secret objects
pkg/cmd/edit/object.go - Secret API types
pkg/apis/secrets/v1beta2/decryptedsecret_types.go - Encrypt secrets
pkg/cmd/encrypt.go - Decrypt secrets
pkg/cmd/decrypt.go
Status and database
- Database shell
pkg/cmd/dbshell.go - Connection details
pkg/cmd/password.go - Instance status
pkg/cmd/status.go - Postgres dump
pkg/cmd/postgresdump.go - AWS utilities
pkg/cmd/aws.go
Other components
- Employee
- Kubernetes cluster
- AWS KMS
- Local editor
- Teleport / tsh
Connections 32
- Employee → CLI entry: runs
README.md - CLI entry → Command root: executes
cmd/ridectl/main.go - Command root → Interactive shell: dispatches
- Command root → Python shell: dispatches
- Command root → Database shell: dispatches
- Command root → Connection details: dispatches
README.md - Command root → Restart workloads: dispatches
README.md - Command root → Secret edit flow: dispatches
- Command root → Encrypt secrets: dispatches
- Command root → Decrypt secrets: dispatches
- Command root → Instance status: dispatches
- Command root → Postgres dump: dispatches
- Interactive shell → Access and config: resolves target
pkg/cmd/shell.go - Python shell → Access and config: resolves target
pkg/cmd/pyshell.go - Interactive shell → Kubernetes cluster: lists pods
pkg/cmd/shell.go - Python shell → Kubernetes cluster: lists pods
pkg/cmd/pyshell.go - Interactive shell → Command execution: runs kubectl
pkg/cmd/shell.go - Python shell → Command execution: runs kubectl
pkg/cmd/pyshell.go - Restart workloads → Kubernetes cluster: deletes workloads
pkg/cmd/restart.go - Database shell → Kubernetes cluster: reads credentials
pkg/cmd/dbshell.go - Database shell → Command execution: runs database commands
pkg/cmd/dbshell.go - Database shell → Teleport / tsh: connects database
pkg/cmd/dbshell.go - Instance status → Kubernetes cluster: fetches status
pkg/cmd/status.go - Postgres dump → Kubernetes cluster: queries backup jobs
- Secret edit flow → Secret objects: parses and correlates
pkg/cmd/edit.go - Secret edit flow → Local editor: opens tempfile
pkg/cmd/edit.go - Secret objects → Secret API types: uses API types
pkg/cmd/edit/object.go - Secret objects → AWS KMS: encrypts and decrypts
pkg/cmd/edit/object.go - Encrypt secrets → Secret objects: uses secret editing
pkg/cmd/encrypt.go - Decrypt secrets → Secret objects: uses secret editing
pkg/cmd/decrypt.go - AWS utilities → AWS KMS: uses AWS KMS
- Access and config → Teleport / tsh: checks login
pkg/utils/utils.go