Test proxy data source against Kernel - #93
Conversation
0d5cd8c to
85aa723
Compare
607deeb to
8435357
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 8435357. Configure here.
85aa723 to
9efab09
Compare
3c04dbb to
aef4842
Compare
18d0ba6 to
f69c074
Compare
aef4842 to
a403a63
Compare
f69c074 to
1d90c74
Compare
0b9b8a8 to
865b9c0
Compare
29bde95 to
8de340c
Compare
865b9c0 to
750b91d
Compare
8de340c to
d4fbaf8
Compare
750b91d to
42c6a21
Compare
d4fbaf8 to
5af11e7
Compare
42c6a21 to
15f7e92
Compare
KERNEL-1559 Terraform provider v1: production-ready durable Kernel configuration
tldrShip v1 of the Kernel Terraform provider so a user can describe their durable Kernel platform config — project, browser infra, profiles, proxies, extensions, deployments, and carefully-scoped API keys — entirely in Terraform. Durable desired-state only; runtime/session activity is explicitly out of scope. Start from the merged v0 state, produce a scope-audit + plan before coding, and ship in small per-resource PRs. Current groundwork already doneAPI-contract prerequisites and the security hardening surfaced while auditing them are in flight as draft PRs on API contract prep (draft PRs):
Security fixes surfaced during the audit (draft PRs):
Open decisions before the late phases:
v1 product definitionv1 should manage durable Kernel platform configuration. core v1 resources:
core v1 data sources:
important adjustment:
explicit non-goalsdo not add Terraform resources for temporary/runtime activity:
do not add these unless explicitly approved later:
do not manually edit generated files. do not include private Slack, Linear, customer, or internal discussion context in code, comments, commits, branches, docs, or PR bodies. required first step: v1 scope auditbefore writing code, inspect:
produce a concise v1 implementation plan before coding. the plan must classify every candidate resource as:
github issues to resolve in v1handle these explicitly:
|
de4893d to
15f7e92
Compare
5af11e7 to
fb0ef06
Compare
15f7e92 to
f41e8d5
Compare

Summary
kernel_proxylookup by canonical ID and exact nameWhy this is v0 work
This closes the live coverage gap for the existing v0
kernel_proxydata source without adding a Terraform proxy resource or any runtime proxy operations.Tests
go test -short -timeout=2m ./...go test -race -short -timeout=2m ./internal/datasources/proxy ./internal/acctest ./internal/kernelclientgo vet ./...go mod verifygo mod tidy -diffterraform fmt -check -recursive examplesbash scripts/check-markdown-links.shbash scripts/check-docs.shgit diff --checkgofmt -l cmd internalAcceptance status
The live API path was not run locally because real Kernel credentials were not available to this worktree. It is available through the manual
Acceptanceworkflow and requiresTF_ACC=1,KERNEL_ACC=1,KERNEL_API_KEY, andKERNEL_PROJECT_ID.Intentionally unsupported
Note
Low Risk
Changes are limited to acceptance tests and CI matrix configuration; no provider runtime or data-handling logic is modified.
Overview
Adds live acceptance coverage for the existing
kernel_proxydata source and wires it into the manual Acceptance workflow.TestAccProxyDataSourceByIDAndNameprovisions a unique datacenter proxy via the Kernel API, then asserts lookups byid+project_idand byname(provider-default project) return durable fields (type,protocol, etc.) while credentials, status, andip_addressstay out of state. A plan-only step checks for drift after apply.Fixture helpers register
acctest.CleanupProxyand post-test verification that the proxy is gone.Reviewed by Cursor Bugbot for commit f41e8d5. Bugbot is set up for automated code reviews on this repo. Configure here.