Repository navigation
feat(openshell): add endpoint-bound API credentials - #13348
Merged
Merged
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Contributor
deepujain
marked this pull request as ready for review
October 16, 2026 15:52
cv
added a commit
that referenced
this pull request
Oct 17, 2026
## Why Every provider contract test copied its providers into a fresh OpenTofu workspace. On macOS, the first launch of each fresh copy waits about 0.65 s for verification, so most of the local contract-test time went to copying and verifying. A symlinked provider starts in about 0.01 s. This does **not** fix the linux_amd64 `openshell-provider::contract` budget failure (#13376, #13348). This PR's CI showed no Linux change: | Binary | linux_amd64 before | linux_amd64 after | linux_arm64 before | linux_arm64 after | |---|---|---|---|---| | `openshell-provider::contract` | 182.4 s | 186.6 s | 175.9 s | 172.2 s | | `nemoclaw-provider::contract` | 55.9 s | 59.8 s | 50.3 s | 48.4 s | | `fabric-provider::contract` | 34.3 s | 31.8 s | 36.7 s | 30.5 s | "Before" is run 38988429435 attempt 3 (#13378); "after" is this PR's first run. ## Change On Unix, `TofuWorkspace` links each provider into the workspace instead of copying it. Windows still copies: providers there must find the SSH relay beside them. ## Validation Local, macOS arm64, `--test-threads=4`: | Suite | Copy | Symlink | |---|---|---| | `openshell-provider` contract (62 tests) | 45.4 s | 11.9 s | | `nemoclaw-provider` contract (26 tests) | 22.1 s | 11.2 s | | `fabric-provider` contract (4 tests) | 6.8 s | 3.3 s | Also ran `cargo fmt --all --check`, Clippy for `nemoclaw-test-fixtures`, and the `nemoclaw-test-fixtures` tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A booking service can be reachable from a sandbox while still having no credential resource to authenticate it.
openshell_apifills that gap for APIs beyond inference and web search:The resource owns its OpenShell profile and registration. It supports Bearer or a named API-key header, binds callers to a host, port and path subtree, and resolves the host variable during apply. Secret values stay out of OpenTofu state and exports.
Updating the credential reference preserves the registration and sandbox. Missing objects recover through the existing composite lifecycle; failed creates retain their established binding. Planning rejects foreign or substituted survivors before recovery can touch them, including when only half the pair remains.
Five OpenTofu contract tests cover creation, unchanged plans without the host secret, stored-key updates, missing-half recovery, failed readbacks, ownership checks, invalid bindings and removal. A profile unit test checks exact IPv4/IPv6 grants and the absence of private-network grants for DNS names. Rejection cases reset a shared fixture before each plan; timing budgets and timeouts are unchanged.
cargo ci --fullpassed on macOS ARM64: 1,478 ordinary tests, doctests, schema checks, a fresh bundle and 151 lifecycle tests. OpenShell contract timing overruns were reported-only. The final Node 24.21.0 Fern check passed with no errors and one warning.Hosted native CI passed all four platforms and Docker/kind on both Linux architectures. Each Linux OpenShell contract suite finished at 173.8 seconds under the unchanged 190-second budget. Documentation validation and preview passed.
This is the provider slice of #13313.
examples/hcl/travel-teamis absent from v1; live booking-service authentication and credential propagation to an already-running client remain unqualified. The issue stays open.