Repository navigation
Commit d9a26d6
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 2395f5b commit d9a26d6
25 files changed
Lines changed: 2487 additions & 452 deletions
File tree
- crates
- openshell-cli/src
- commands
- openshell-core
- src
- openshell-crypto
- 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 | |
|---|---|---|---|
| |||
2107 | 2107 | | |
2108 | 2108 | | |
2109 | 2109 | | |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
| 2114 | + | |
2110 | 2115 | | |
2111 | 2116 | | |
2112 | 2117 | | |
| |||
2158 | 2163 | | |
2159 | 2164 | | |
2160 | 2165 | | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
2161 | 2169 | | |
2162 | 2170 | | |
2163 | 2171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
793 | 793 | | |
794 | 794 | | |
795 | 795 | | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
796 | 799 | | |
797 | 800 | | |
798 | 801 | | |
| |||
802 | 805 | | |
803 | 806 | | |
804 | 807 | | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
805 | 811 | | |
806 | 812 | | |
807 | 813 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
75 | | - | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
0 commit comments