Repository navigation
Commit fda2e94
committed
feat(providers): gateway-minted OCI principal refresh strategies
Add oci_instance_principal, oci_resource_principal, and
oci_oke_workload_identity to ProviderCredentialRefreshStrategy. Each mints
OCI_KEY_ID as an ST$ security token and co-mints OCI_PRIVATE_KEY as the
paired session key through additional_outputs, so sandboxes bound to the
provider sign through credential_signing: oci without a long-lived key.
- Instance principal federates the host's identity certificate from the
instance metadata service at auth.<region>.<realm_domain>/v1/x509,
signing under <tenancy>/fed-x509/<sha1 fingerprint> with an ephemeral
RSA session key in the request.
- Resource principal re-reads the platform-rotated RPST and private key
on every refresh from files, literal material, or the
OCI_RESOURCE_PRINCIPAL_* environment.
- OKE workload identity exchanges the projected service-account token at
the cluster proxymux (port 12250, TLS pinned to the projected CA) for a
token bound to the session public key; 403 names the enhanced-cluster
requirement.
- Expiry is the token exp capped by max_lifetime_seconds; 401/403 and
other 4xx map to fix_configuration, the rest retry. Identity endpoint
overrides exist only under cfg(test) for loopback, and the configure API
rejects metadata_base_url, federation_endpoint_url, and
proxymux_endpoint_url material.
Move the OCI signing primitives into openshell-core so the gateway and the
sandbox proxy share one signer; the supervisor module keeps the HTTP
framing. Add the profile plumbing (YAML names, mintable set, pinned
OCI_KEY_ID/OCI_PRIVATE_KEY outputs), CLI and TUI names, Go SDK constants
and converters with regenerated bindings, three endpointless example
profiles, and the strategy, material, and mapping rows in the profiles
docs. Re-pin the public and durable schema fingerprints for the additive
enum values.
Closes #3961
Signed-off-by: Federico Kamelhar <federico.kamelhar@oracle.com>1 parent 6dbf444 commit fda2e94
22 files changed
Lines changed: 2372 additions & 412 deletions
File tree
- crates
- openshell-cli/src
- commands
- openshell-core
- src
- openshell-providers/src
- openshell-server
- src
- grpc
- openshell-supervisor-network/src
- openshell-tui/src
- docs/how-it-works/providers
- proto
- providers
- sdk/go
- openshell/v1
- internal/converter
- types
- proto/openshellv1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2065 | 2065 | | |
2066 | 2066 | | |
2067 | 2067 | | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
2068 | 2073 | | |
2069 | 2074 | | |
2070 | 2075 | | |
| |||
2116 | 2121 | | |
2117 | 2122 | | |
2118 | 2123 | | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
2119 | 2127 | | |
2120 | 2128 | | |
2121 | 2129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
776 | 776 | | |
777 | 777 | | |
778 | 778 | | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
779 | 782 | | |
780 | 783 | | |
781 | 784 | | |
| |||
785 | 788 | | |
786 | 789 | | |
787 | 790 | | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
788 | 794 | | |
789 | 795 | | |
790 | 796 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
0 commit comments