You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
- **fix(control-plane):** Remove `ensureCredentialRoleBindings` from
`kube_reconciler.go` — this was creating K8s `RoleBinding` objects
referencing a non-existent `credential:token-reader` ClusterRole,
blocking session provisioning. The runner authenticates via `BOT_TOKEN`
(control-plane JWT injected as a secret), not K8s SA token, so the
binding was vestigial and served no purpose.
- **fix(control-plane):** `project_reconciler.go` `EventDeleted` now
calls `DeprovisionNamespace` instead of logging "namespace retained for
safety" (was a deliberate no-op that was never wired up).
- **feat(cli):** Wire `credentials` into generic `acpctl
get/delete/describe` verbs (was returning "unknown resource type").
- **feat(cli):** Add `kind: Credential` support to `acpctl apply`.
- **feat(cli):** Add `-o json` to `acpctl agent start`.
- **feat(cli):** Add `demo-github.sh` — end-to-end GitHub credential
demo script alongside `demo-kind.sh`.
## Test plan
- [ ] Start a session with a credential bound to an agent — should no
longer fail with `clusterroles.rbac.authorization.k8s.io
"credential:token-reader" not found`
- [ ] Delete a project — namespace should be deprovisioned (previously
retained indefinitely)
- [ ] `acpctl get credentials` / `acpctl describe credential <id>` /
`acpctl delete credential <id>` work as generic verbs
- [ ] `acpctl apply` with a `kind: Credential` YAML creates/patches the
credential
- [ ] `acpctl agent start <agent> -o json` returns JSON session object
- [ ] `./components/ambient-cli/demo-github.sh` runs end-to-end with a
GitHub PAT
🤖 Generated with [Claude Code](https://claude.ai/code)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
## Release Notes
* **New Features**
* Added JSON output format (`--output/-o`) for agent start command
* Added credential management: create, list, view, and delete
credentials via CLI
* Included demo script for GitHub credential workflow
* **Improvements**
* Projects now automatically clean up their namespaces upon deletion
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Ambient Code Bot <bot@ambient-code.local>
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments