From 4962d40dc23574e78b8c79cb9fa095e765be84d4 Mon Sep 17 00:00:00 2001 From: amit-momin <108959691+amit-momin@users.noreply.github.com> Date: Wed, 4 Mar 2026 11:18:18 -0600 Subject: [PATCH 01/27] Add Pharos Atlantic support (#306) * Added Pharos Atlantic support * Auto-fix: buf format, gofmt, go generate, go mod tidy --------- Co-authored-by: app-token-issuer-engops[bot] <144731339+app-token-issuer-engops[bot]@users.noreply.github.com> --- cre/capabilities/blockchain/evm/v1alpha/client.proto | 4 ++++ cre/go/installer/pkg/embedded_gen.go | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/cre/capabilities/blockchain/evm/v1alpha/client.proto b/cre/capabilities/blockchain/evm/v1alpha/client.proto index 3884c16e..c30d26bb 100644 --- a/cre/capabilities/blockchain/evm/v1alpha/client.proto +++ b/cre/capabilities/blockchain/evm/v1alpha/client.proto @@ -265,6 +265,10 @@ service Client { key: "jovay-testnet" value: 945045181441419236 }, + { + key: "pharos-atlantic-testnet" + value: 16098325658947243212 + }, { key: "pharos-mainnet" value: 7801139999541420232 diff --git a/cre/go/installer/pkg/embedded_gen.go b/cre/go/installer/pkg/embedded_gen.go index 0b5ed0f9..e24731b7 100755 --- a/cre/go/installer/pkg/embedded_gen.go +++ b/cre/go/installer/pkg/embedded_gen.go @@ -461,6 +461,10 @@ service Client { key: "jovay-testnet" value: 945045181441419236 }, + { + key: "pharos-atlantic-testnet" + value: 16098325658947243212 + }, { key: "pharos-mainnet" value: 7801139999541420232 From ecda729848f6527637d67eaaf899a4da8790b407 Mon Sep 17 00:00:00 2001 From: cawthorne Date: Tue, 10 Mar 2026 14:25:26 +0000 Subject: [PATCH 02/27] aptos proto: add ledger_version to ViewRequest (#310) * aptos proto: add ledger_version to ViewRequest * Auto-fix: buf format, gofmt, go generate, go mod tidy --------- Co-authored-by: app-token-issuer-engops[bot] <144731339+app-token-issuer-engops[bot]@users.noreply.github.com> --- cre/capabilities/blockchain/aptos/v1alpha/client.proto | 1 + cre/go/installer/pkg/embedded_gen.go | 1 + 2 files changed, 2 insertions(+) diff --git a/cre/capabilities/blockchain/aptos/v1alpha/client.proto b/cre/capabilities/blockchain/aptos/v1alpha/client.proto index bd3f2003..4eab040e 100644 --- a/cre/capabilities/blockchain/aptos/v1alpha/client.proto +++ b/cre/capabilities/blockchain/aptos/v1alpha/client.proto @@ -25,6 +25,7 @@ message AccountAPTBalanceReply { message ViewRequest { ViewPayload payload = 1; + optional uint64 ledger_version = 2; // nil means use latest ledger version } message ViewReply { diff --git a/cre/go/installer/pkg/embedded_gen.go b/cre/go/installer/pkg/embedded_gen.go index e24731b7..95f63df4 100755 --- a/cre/go/installer/pkg/embedded_gen.go +++ b/cre/go/installer/pkg/embedded_gen.go @@ -28,6 +28,7 @@ message AccountAPTBalanceReply { message ViewRequest { ViewPayload payload = 1; + optional uint64 ledger_version = 2; // nil means use latest ledger version } message ViewReply { From 49d3e11526a247be57b7e8eef5fd2cc0c9d2219d Mon Sep 17 00:00:00 2001 From: amit-momin <108959691+amit-momin@users.noreply.github.com> Date: Thu, 12 Mar 2026 16:24:17 -0500 Subject: [PATCH 03/27] Add xlayer, megaeth, cronos, mantle, tac, unichain, scroll, sonic testnet support (#308) * Added xlayer megaeth cronos mantle tac unichain scroll sonic support * Auto-fix: buf format, gofmt, go generate, go mod tidy * Added celo sepolia * Auto-fix: buf format, gofmt, go generate, go mod tidy * Added gnosis chiado * Auto-fix: buf format, gofmt, go generate, go mod tidy * Removed celo sepolia * Auto-fix: buf format, gofmt, go generate, go mod tidy * Removed gnosis chiado * Auto-fix: buf format, gofmt, go generate, go mod tidy --------- Co-authored-by: app-token-issuer-engops[bot] <144731339+app-token-issuer-engops[bot]@users.noreply.github.com> --- .../blockchain/evm/v1alpha/client.proto | 32 +++++++++++++++++++ cre/go/installer/pkg/embedded_gen.go | 32 +++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/cre/capabilities/blockchain/evm/v1alpha/client.proto b/cre/capabilities/blockchain/evm/v1alpha/client.proto index c30d26bb..afb37662 100644 --- a/cre/capabilities/blockchain/evm/v1alpha/client.proto +++ b/cre/capabilities/blockchain/evm/v1alpha/client.proto @@ -193,6 +193,10 @@ service Client { key: "binance_smart_chain-testnet" value: 13264668187771770619 }, + { + key: "cronos-testnet" + value: 2995292832068775165 + }, { key: "ethereum-mainnet" value: 5009297550715157269 @@ -237,10 +241,22 @@ service Client { key: "ethereum-testnet-sepolia-linea-1" value: 5719461335882077547 }, + { + key: "ethereum-testnet-sepolia-mantle-1" + value: 8236463271206331221 + }, { key: "ethereum-testnet-sepolia-optimism-1" value: 5224473277236331295 }, + { + key: "ethereum-testnet-sepolia-scroll-1" + value: 2279865765895943307 + }, + { + key: "ethereum-testnet-sepolia-unichain-1" + value: 14135854469784514356 + }, { key: "ethereum-testnet-sepolia-worldchain-1" value: 5299555114858065850 @@ -265,6 +281,10 @@ service Client { key: "jovay-testnet" value: 945045181441419236 }, + { + key: "megaeth-testnet-2" + value: 18241817625092392675 + }, { key: "pharos-atlantic-testnet" value: 16098325658947243212 @@ -288,6 +308,18 @@ service Client { { key: "private-testnet-andesite" value: 6915682381028791124 + }, + { + key: "sonic-testnet" + value: 1763698235108410440 + }, + { + key: "tac-testnet" + value: 9488606126177218005 + }, + { + key: "xlayer-testnet" + value: 10212741611335999305 } ] } diff --git a/cre/go/installer/pkg/embedded_gen.go b/cre/go/installer/pkg/embedded_gen.go index 95f63df4..bae8b267 100755 --- a/cre/go/installer/pkg/embedded_gen.go +++ b/cre/go/installer/pkg/embedded_gen.go @@ -390,6 +390,10 @@ service Client { key: "binance_smart_chain-testnet" value: 13264668187771770619 }, + { + key: "cronos-testnet" + value: 2995292832068775165 + }, { key: "ethereum-mainnet" value: 5009297550715157269 @@ -434,10 +438,22 @@ service Client { key: "ethereum-testnet-sepolia-linea-1" value: 5719461335882077547 }, + { + key: "ethereum-testnet-sepolia-mantle-1" + value: 8236463271206331221 + }, { key: "ethereum-testnet-sepolia-optimism-1" value: 5224473277236331295 }, + { + key: "ethereum-testnet-sepolia-scroll-1" + value: 2279865765895943307 + }, + { + key: "ethereum-testnet-sepolia-unichain-1" + value: 14135854469784514356 + }, { key: "ethereum-testnet-sepolia-worldchain-1" value: 5299555114858065850 @@ -462,6 +478,10 @@ service Client { key: "jovay-testnet" value: 945045181441419236 }, + { + key: "megaeth-testnet-2" + value: 18241817625092392675 + }, { key: "pharos-atlantic-testnet" value: 16098325658947243212 @@ -485,6 +505,18 @@ service Client { { key: "private-testnet-andesite" value: 6915682381028791124 + }, + { + key: "sonic-testnet" + value: 1763698235108410440 + }, + { + key: "tac-testnet" + value: 9488606126177218005 + }, + { + key: "xlayer-testnet" + value: 10212741611335999305 } ] } From ca9c2571f76562310fe4696d2bf7b4e71982f9d9 Mon Sep 17 00:00:00 2001 From: amit-momin <108959691+amit-momin@users.noreply.github.com> Date: Fri, 13 Mar 2026 14:14:29 -0500 Subject: [PATCH 04/27] Add andesite chain (#313) * Added andesite chain * Auto-fix: buf format, gofmt, go generate, go mod tidy --------- Co-authored-by: app-token-issuer-engops[bot] <144731339+app-token-issuer-engops[bot]@users.noreply.github.com> --- cre/capabilities/blockchain/evm/v1alpha/client.proto | 4 ++++ cre/go/installer/pkg/embedded_gen.go | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/cre/capabilities/blockchain/evm/v1alpha/client.proto b/cre/capabilities/blockchain/evm/v1alpha/client.proto index afb37662..b2fafb91 100644 --- a/cre/capabilities/blockchain/evm/v1alpha/client.proto +++ b/cre/capabilities/blockchain/evm/v1alpha/client.proto @@ -197,6 +197,10 @@ service Client { key: "cronos-testnet" value: 2995292832068775165 }, + { + key: "dtcc-testnet-andesite" + value: 15513093881969820114 + }, { key: "ethereum-mainnet" value: 5009297550715157269 diff --git a/cre/go/installer/pkg/embedded_gen.go b/cre/go/installer/pkg/embedded_gen.go index bae8b267..34e4b0fc 100755 --- a/cre/go/installer/pkg/embedded_gen.go +++ b/cre/go/installer/pkg/embedded_gen.go @@ -394,6 +394,10 @@ service Client { key: "cronos-testnet" value: 2995292832068775165 }, + { + key: "dtcc-testnet-andesite" + value: 15513093881969820114 + }, { key: "ethereum-mainnet" value: 5009297550715157269 From 56621684c29d6941642f6b59f6c054a0a4f12b70 Mon Sep 17 00:00:00 2001 From: amit-momin <108959691+amit-momin@users.noreply.github.com> Date: Mon, 16 Mar 2026 16:23:26 -0500 Subject: [PATCH 05/27] Add new mainnet chains to client proto (#315) * Added new mainnet chains to client proto * Auto-fix: buf format, gofmt, go generate, go mod tidy --------- Co-authored-by: app-token-issuer-engops[bot] <144731339+app-token-issuer-engops[bot]@users.noreply.github.com> --- .../blockchain/evm/v1alpha/client.proto | 36 +++++++++++++++++++ cre/go/installer/pkg/embedded_gen.go | 36 +++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/cre/capabilities/blockchain/evm/v1alpha/client.proto b/cre/capabilities/blockchain/evm/v1alpha/client.proto index b2fafb91..75b087af 100644 --- a/cre/capabilities/blockchain/evm/v1alpha/client.proto +++ b/cre/capabilities/blockchain/evm/v1alpha/client.proto @@ -193,6 +193,10 @@ service Client { key: "binance_smart_chain-testnet" value: 13264668187771770619 }, + { + key: "celo-mainnet" + value: 1346049177634351622 + }, { key: "cronos-testnet" value: 2995292832068775165 @@ -213,10 +217,26 @@ service Client { key: "ethereum-mainnet-base-1" value: 15971525489660198786 }, + { + key: "ethereum-mainnet-ink-1" + value: 3461204551265785888 + }, + { + key: "ethereum-mainnet-linea-1" + value: 4627098889531055414 + }, + { + key: "ethereum-mainnet-mantle-1" + value: 1556008542357238666 + }, { key: "ethereum-mainnet-optimism-1" value: 3734403246176062136 }, + { + key: "ethereum-mainnet-scroll-1" + value: 13204309965629103672 + }, { key: "ethereum-mainnet-worldchain-1" value: 2049429975587534727 @@ -269,6 +289,10 @@ service Client { key: "ethereum-testnet-sepolia-zksync-1" value: 6898391096552792247 }, + { + key: "gnosis_chain-mainnet" + value: 465200170687744372 + }, { key: "hyperliquid-testnet" value: 4286062357653186312 @@ -285,6 +309,10 @@ service Client { key: "jovay-testnet" value: 945045181441419236 }, + { + key: "megaeth-mainnet" + value: 6093540873831549674 + }, { key: "megaeth-testnet-2" value: 18241817625092392675 @@ -297,6 +325,10 @@ service Client { key: "pharos-mainnet" value: 7801139999541420232 }, + { + key: "plasma-mainnet" + value: 9335212494177455608 + }, { key: "plasma-testnet" value: 3967220077692964309 @@ -313,6 +345,10 @@ service Client { key: "private-testnet-andesite" value: 6915682381028791124 }, + { + key: "sonic-mainnet" + value: 1673871237479749969 + }, { key: "sonic-testnet" value: 1763698235108410440 diff --git a/cre/go/installer/pkg/embedded_gen.go b/cre/go/installer/pkg/embedded_gen.go index 34e4b0fc..bf6c580c 100755 --- a/cre/go/installer/pkg/embedded_gen.go +++ b/cre/go/installer/pkg/embedded_gen.go @@ -390,6 +390,10 @@ service Client { key: "binance_smart_chain-testnet" value: 13264668187771770619 }, + { + key: "celo-mainnet" + value: 1346049177634351622 + }, { key: "cronos-testnet" value: 2995292832068775165 @@ -410,10 +414,26 @@ service Client { key: "ethereum-mainnet-base-1" value: 15971525489660198786 }, + { + key: "ethereum-mainnet-ink-1" + value: 3461204551265785888 + }, + { + key: "ethereum-mainnet-linea-1" + value: 4627098889531055414 + }, + { + key: "ethereum-mainnet-mantle-1" + value: 1556008542357238666 + }, { key: "ethereum-mainnet-optimism-1" value: 3734403246176062136 }, + { + key: "ethereum-mainnet-scroll-1" + value: 13204309965629103672 + }, { key: "ethereum-mainnet-worldchain-1" value: 2049429975587534727 @@ -466,6 +486,10 @@ service Client { key: "ethereum-testnet-sepolia-zksync-1" value: 6898391096552792247 }, + { + key: "gnosis_chain-mainnet" + value: 465200170687744372 + }, { key: "hyperliquid-testnet" value: 4286062357653186312 @@ -482,6 +506,10 @@ service Client { key: "jovay-testnet" value: 945045181441419236 }, + { + key: "megaeth-mainnet" + value: 6093540873831549674 + }, { key: "megaeth-testnet-2" value: 18241817625092392675 @@ -494,6 +522,10 @@ service Client { key: "pharos-mainnet" value: 7801139999541420232 }, + { + key: "plasma-mainnet" + value: 9335212494177455608 + }, { key: "plasma-testnet" value: 3967220077692964309 @@ -510,6 +542,10 @@ service Client { key: "private-testnet-andesite" value: 6915682381028791124 }, + { + key: "sonic-mainnet" + value: 1673871237479749969 + }, { key: "sonic-testnet" value: 1763698235108410440 From 1124ff8c35a15379c5b7ad415bb79cbd10d595b1 Mon Sep 17 00:00:00 2001 From: Yashvardhan Nevatia Date: Wed, 18 Mar 2026 13:39:50 +0000 Subject: [PATCH 06/27] Remove aptos (moved to capabilities-development branch) (#316) * remove aptos * Auto-fix: buf format, gofmt, go generate, go mod tidy --------- Co-authored-by: app-token-issuer-engops[bot] <144731339+app-token-issuer-engops[bot]@users.noreply.github.com> --- .../blockchain/aptos/v1alpha/client.proto | 192 ----------------- cre/go/installer/pkg/embedded_gen.go | 198 ------------------ 2 files changed, 390 deletions(-) delete mode 100644 cre/capabilities/blockchain/aptos/v1alpha/client.proto diff --git a/cre/capabilities/blockchain/aptos/v1alpha/client.proto b/cre/capabilities/blockchain/aptos/v1alpha/client.proto deleted file mode 100644 index 4eab040e..00000000 --- a/cre/capabilities/blockchain/aptos/v1alpha/client.proto +++ /dev/null @@ -1,192 +0,0 @@ -syntax = "proto3"; -package capabilities.blockchain.aptos.v1alpha; - -import "sdk/v1alpha/sdk.proto"; -import "tools/generator/v1alpha/cre_metadata.proto"; - -// Transaction execution status returned by the forwarder. -enum TxStatus { - TX_STATUS_FATAL = 0; // unrecoverable failure - TX_STATUS_ABORTED = 1; // not executed / dropped - TX_STATUS_SUCCESS = 2; // executed successfully -} - -// ========== AccountAPTBalance ========== - -message AccountAPTBalanceRequest { - bytes address = 1; // 32-byte address -} - -message AccountAPTBalanceReply { - uint64 value = 1; -} - -// ========== View ========== - -message ViewRequest { - ViewPayload payload = 1; - optional uint64 ledger_version = 2; // nil means use latest ledger version -} - -message ViewReply { - bytes data = 1; -} - -message ViewPayload { - ModuleID module = 1; - string function = 2; - repeated TypeTag arg_types = 3; - repeated bytes args = 4; -} - -message ModuleID { - bytes address = 1; // 32-byte address - string name = 2; -} - -message TypeTag { - TypeTagKind kind = 1; - oneof value { - VectorTag vector = 2; - StructTag struct = 3; - GenericTag generic = 4; - } -} - -enum TypeTagKind { - TYPE_TAG_KIND_BOOL = 0; - TYPE_TAG_KIND_U8 = 1; - TYPE_TAG_KIND_U16 = 2; - TYPE_TAG_KIND_U32 = 3; - TYPE_TAG_KIND_U64 = 4; - TYPE_TAG_KIND_U128 = 5; - TYPE_TAG_KIND_U256 = 6; - TYPE_TAG_KIND_ADDRESS = 7; - TYPE_TAG_KIND_SIGNER = 8; - TYPE_TAG_KIND_VECTOR = 9; - TYPE_TAG_KIND_STRUCT = 10; - TYPE_TAG_KIND_GENERIC = 11; -} - -message VectorTag { - TypeTag element_type = 1; -} - -message StructTag { - bytes address = 1; // 32-byte address - string module = 2; - string name = 3; - repeated TypeTag type_params = 4; -} - -message GenericTag { - uint32 index = 1; -} - -// ========== TransactionByHash ========== - -message TransactionByHashRequest { - string hash = 1; // Transaction hash (hex string with 0x prefix) -} - -message TransactionByHashReply { - optional Transaction transaction = 1; -} - -enum TransactionVariant { - TRANSACTION_VARIANT_PENDING = 0; - TRANSACTION_VARIANT_USER = 1; - TRANSACTION_VARIANT_GENESIS = 2; - TRANSACTION_VARIANT_BLOCK_METADATA = 3; - TRANSACTION_VARIANT_BLOCK_EPILOGUE = 4; - TRANSACTION_VARIANT_STATE_CHECKPOINT = 5; - TRANSACTION_VARIANT_VALIDATOR = 6; - TRANSACTION_VARIANT_UNKNOWN = 7; -} - -message Transaction { - TransactionVariant type = 1; - string hash = 2; - optional uint64 version = 3; // nil for pending transactions - optional bool success = 4; // nil for pending/genesis transactions - bytes data = 5; // Raw transaction data -} - -// ========== AccountTransactions ========== - -message AccountTransactionsRequest { - bytes address = 1; // 32-byte address - optional uint64 start = 2; // Starting version number; nil for most recent - optional uint64 limit = 3; // Number of transactions to return; nil for default (~100) -} - -message AccountTransactionsReply { - repeated Transaction transactions = 1; -} - -// ========== SubmitTransaction ========== - -message SubmitTransactionRequest { - ModuleID receiver_module_id = 1; - bytes encoded_payload = 2; - optional GasConfig gas_config = 3; -} - -message SubmitTransactionReply { - TxStatus tx_status = 1; - string tx_hash = 2; - string tx_idempotency_key = 3; -} - -message GasConfig { - uint64 max_gas_amount = 1; // Maximum gas units willing to pay - uint64 gas_unit_price = 2; // Price per gas unit in octas -} - -// ========== WriteReport ========== - -message WriteReportRequest { - bytes receiver = 1; // 32-byte Aptos account address of the receiver module - optional GasConfig gas_config = 2; // optional gas configuration - sdk.v1alpha.ReportResponse report = 3; // signed report from consensus -} - -message WriteReportReply { - TxStatus tx_status = 1; - optional string tx_hash = 2; // transaction hash (hex string with 0x prefix) - optional uint64 transaction_fee = 3; // gas used in octas - optional string error_message = 4; -} - -// ========== Service ========== - -service Client { - option (tools.generator.v1alpha.capability) = { - mode: MODE_DON - capability_id: "aptos@1.0.0" - labels: { - // from https://github.com/smartcontractkit/chain-selectors/blob/main/selectors_aptos.yml - key: "ChainSelector" - value: { - uint64_label: { - defaults: [ - { - key: "aptos-mainnet" - value: 4741433654826277614 - }, - { - key: "aptos-testnet" - value: 743186221051783445 - } - ] - } - } - } - }; - - rpc AccountAPTBalance(AccountAPTBalanceRequest) returns (AccountAPTBalanceReply); - rpc View(ViewRequest) returns (ViewReply); - rpc TransactionByHash(TransactionByHashRequest) returns (TransactionByHashReply); - rpc AccountTransactions(AccountTransactionsRequest) returns (AccountTransactionsReply); - rpc WriteReport(WriteReportRequest) returns (WriteReportReply); -} diff --git a/cre/go/installer/pkg/embedded_gen.go b/cre/go/installer/pkg/embedded_gen.go index bf6c580c..57a50474 100755 --- a/cre/go/installer/pkg/embedded_gen.go +++ b/cre/go/installer/pkg/embedded_gen.go @@ -1,200 +1,6 @@ // Code generated by github.com/smartcontractkit/chainlink-protos/cre/go/installer/bootstrap. DO NOT EDIT.\n") package pkg -const blockchainAptosV1alphaClientEmbedded = `syntax = "proto3"; -package capabilities.blockchain.aptos.v1alpha; - -import "sdk/v1alpha/sdk.proto"; -import "tools/generator/v1alpha/cre_metadata.proto"; - -// Transaction execution status returned by the forwarder. -enum TxStatus { - TX_STATUS_FATAL = 0; // unrecoverable failure - TX_STATUS_ABORTED = 1; // not executed / dropped - TX_STATUS_SUCCESS = 2; // executed successfully -} - -// ========== AccountAPTBalance ========== - -message AccountAPTBalanceRequest { - bytes address = 1; // 32-byte address -} - -message AccountAPTBalanceReply { - uint64 value = 1; -} - -// ========== View ========== - -message ViewRequest { - ViewPayload payload = 1; - optional uint64 ledger_version = 2; // nil means use latest ledger version -} - -message ViewReply { - bytes data = 1; -} - -message ViewPayload { - ModuleID module = 1; - string function = 2; - repeated TypeTag arg_types = 3; - repeated bytes args = 4; -} - -message ModuleID { - bytes address = 1; // 32-byte address - string name = 2; -} - -message TypeTag { - TypeTagKind kind = 1; - oneof value { - VectorTag vector = 2; - StructTag struct = 3; - GenericTag generic = 4; - } -} - -enum TypeTagKind { - TYPE_TAG_KIND_BOOL = 0; - TYPE_TAG_KIND_U8 = 1; - TYPE_TAG_KIND_U16 = 2; - TYPE_TAG_KIND_U32 = 3; - TYPE_TAG_KIND_U64 = 4; - TYPE_TAG_KIND_U128 = 5; - TYPE_TAG_KIND_U256 = 6; - TYPE_TAG_KIND_ADDRESS = 7; - TYPE_TAG_KIND_SIGNER = 8; - TYPE_TAG_KIND_VECTOR = 9; - TYPE_TAG_KIND_STRUCT = 10; - TYPE_TAG_KIND_GENERIC = 11; -} - -message VectorTag { - TypeTag element_type = 1; -} - -message StructTag { - bytes address = 1; // 32-byte address - string module = 2; - string name = 3; - repeated TypeTag type_params = 4; -} - -message GenericTag { - uint32 index = 1; -} - -// ========== TransactionByHash ========== - -message TransactionByHashRequest { - string hash = 1; // Transaction hash (hex string with 0x prefix) -} - -message TransactionByHashReply { - optional Transaction transaction = 1; -} - -enum TransactionVariant { - TRANSACTION_VARIANT_PENDING = 0; - TRANSACTION_VARIANT_USER = 1; - TRANSACTION_VARIANT_GENESIS = 2; - TRANSACTION_VARIANT_BLOCK_METADATA = 3; - TRANSACTION_VARIANT_BLOCK_EPILOGUE = 4; - TRANSACTION_VARIANT_STATE_CHECKPOINT = 5; - TRANSACTION_VARIANT_VALIDATOR = 6; - TRANSACTION_VARIANT_UNKNOWN = 7; -} - -message Transaction { - TransactionVariant type = 1; - string hash = 2; - optional uint64 version = 3; // nil for pending transactions - optional bool success = 4; // nil for pending/genesis transactions - bytes data = 5; // Raw transaction data -} - -// ========== AccountTransactions ========== - -message AccountTransactionsRequest { - bytes address = 1; // 32-byte address - optional uint64 start = 2; // Starting version number; nil for most recent - optional uint64 limit = 3; // Number of transactions to return; nil for default (~100) -} - -message AccountTransactionsReply { - repeated Transaction transactions = 1; -} - -// ========== SubmitTransaction ========== - -message SubmitTransactionRequest { - ModuleID receiver_module_id = 1; - bytes encoded_payload = 2; - optional GasConfig gas_config = 3; -} - -message SubmitTransactionReply { - TxStatus tx_status = 1; - string tx_hash = 2; - string tx_idempotency_key = 3; -} - -message GasConfig { - uint64 max_gas_amount = 1; // Maximum gas units willing to pay - uint64 gas_unit_price = 2; // Price per gas unit in octas -} - -// ========== WriteReport ========== - -message WriteReportRequest { - bytes receiver = 1; // 32-byte Aptos account address of the receiver module - optional GasConfig gas_config = 2; // optional gas configuration - sdk.v1alpha.ReportResponse report = 3; // signed report from consensus -} - -message WriteReportReply { - TxStatus tx_status = 1; - optional string tx_hash = 2; // transaction hash (hex string with 0x prefix) - optional uint64 transaction_fee = 3; // gas used in octas - optional string error_message = 4; -} - -// ========== Service ========== - -service Client { - option (tools.generator.v1alpha.capability) = { - mode: MODE_DON - capability_id: "aptos@1.0.0" - labels: { - // from https://github.com/smartcontractkit/chain-selectors/blob/main/selectors_aptos.yml - key: "ChainSelector" - value: { - uint64_label: { - defaults: [ - { - key: "aptos-mainnet" - value: 4741433654826277614 - }, - { - key: "aptos-testnet" - value: 743186221051783445 - } - ] - } - } - } - }; - - rpc AccountAPTBalance(AccountAPTBalanceRequest) returns (AccountAPTBalanceReply); - rpc View(ViewRequest) returns (ViewReply); - rpc TransactionByHash(TransactionByHashRequest) returns (TransactionByHashReply); - rpc AccountTransactions(AccountTransactionsRequest) returns (AccountTransactionsReply); - rpc WriteReport(WriteReportRequest) returns (WriteReportReply); -} -` - const blockchainEvmV1alphaClientEmbedded = `syntax = "proto3"; package capabilities.blockchain.evm.v1alpha; @@ -1495,10 +1301,6 @@ message Decimal { ` var allFiles = []*embeddedFile{ - { - name: "capabilities/blockchain/aptos/v1alpha/client.proto", - content: blockchainAptosV1alphaClientEmbedded, - }, { name: "capabilities/blockchain/evm/v1alpha/client.proto", content: blockchainEvmV1alphaClientEmbedded, From 93a6faf92e323d515b9ed48d67c8cc52b13169e4 Mon Sep 17 00:00:00 2001 From: Tejaswi Nadahalli Date: Wed, 18 Mar 2026 22:24:57 +0100 Subject: [PATCH 07/27] Add owner and execution_id to WorkflowExecution proto (#317) Adds workflow-level context to the app-specific proto rather than the generic ComputeRequest type, per vreff's feedback on CC PR #277. The enclave app reads these from the deserialized WorkflowExecution for runtime secret fetching from VaultDON via the relay DON. --- .../compute/confidentialworkflow/v1alpha/client.proto | 6 ++++++ cre/go/installer/pkg/embedded_gen.go | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto b/cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto index fe43fab6..1cb42f77 100644 --- a/cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto +++ b/cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto @@ -22,6 +22,12 @@ message WorkflowExecution { // execute_request is a serialized sdk.v1alpha.ExecuteRequest proto. // Contains either a subscribe request or a trigger execution request. bytes execute_request = 4; + // owner is the on-chain owner address of the workflow (hex, 0x-prefixed). + // Used by the enclave for runtime secret fetching from VaultDON. + string owner = 5; + // execution_id is the unique execution identifier (64 hex chars, 32 bytes). + // Used by the enclave for runtime secret fetching from VaultDON. + string execution_id = 6; } // ConfidentialWorkflowRequest is the input provided to the confidential workflows capability. diff --git a/cre/go/installer/pkg/embedded_gen.go b/cre/go/installer/pkg/embedded_gen.go index 57a50474..058267ee 100755 --- a/cre/go/installer/pkg/embedded_gen.go +++ b/cre/go/installer/pkg/embedded_gen.go @@ -434,6 +434,12 @@ message WorkflowExecution { // execute_request is a serialized sdk.v1alpha.ExecuteRequest proto. // Contains either a subscribe request or a trigger execution request. bytes execute_request = 4; + // owner is the on-chain owner address of the workflow (hex, 0x-prefixed). + // Used by the enclave for runtime secret fetching from VaultDON. + string owner = 5; + // execution_id is the unique execution identifier (64 hex chars, 32 bytes). + // Used by the enclave for runtime secret fetching from VaultDON. + string execution_id = 6; } // ConfidentialWorkflowRequest is the input provided to the confidential workflows capability. From 4cecf73ae68949a626d4e62322cccb85fa0bc97a Mon Sep 17 00:00:00 2001 From: vreff <104409744+vreff@users.noreply.github.com> Date: Wed, 18 Mar 2026 18:07:20 -0400 Subject: [PATCH 08/27] Add Privacy as codeowners of protos embedded gen files (#318) --- .github/CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 5386d1c2..699cdcaa 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -12,7 +12,7 @@ # CRE /cre/ @smartcontractkit/keystone @smartcontractkit/op-tooling /cre/capabilities/blockchain/ @smartcontractkit/bix-framework @smartcontractkit/keystone @smartcontractkit/op-tooling -/cre/go/installer/pkg/embedded_gen.go @smartcontractkit/bix-framework @smartcontractkit/keystone @smartcontractkit/op-tooling +/cre/go/installer/pkg/embedded_gen.go @smartcontractkit/bix-framework @smartcontractkit/keystone @smartcontractkit/op-tooling @smartcontractkit/privacy /workflows/ @smartcontractkit/foundations @smartcontractkit/core @smartcontractkit/op-tooling /billing/ @smartcontractkit/cre-business @smartcontractkit/core @smartcontractkit/op-tooling From b5808c964785c9703087a0291a45efa773ec2bb3 Mon Sep 17 00:00:00 2001 From: Gheorghe Strimtu Date: Thu, 19 Mar 2026 20:04:22 +0200 Subject: [PATCH 09/27] feat: add NodeBuildInfo proto and register it in chip schemas (#320) --- node-platform/chip-schemas.json | 4 + node-platform/common/v1/node_build_info.pb.go | 161 ++++++++++++++++++ node-platform/common/v1/node_build_info.proto | 13 ++ 3 files changed, 178 insertions(+) create mode 100644 node-platform/common/v1/node_build_info.pb.go create mode 100644 node-platform/common/v1/node_build_info.proto diff --git a/node-platform/chip-schemas.json b/node-platform/chip-schemas.json index 2cf2dd30..d95b2b09 100644 --- a/node-platform/chip-schemas.json +++ b/node-platform/chip-schemas.json @@ -4,6 +4,10 @@ { "entity": "common.v1.ChainPluginConfig", "path": "common/v1/chain_plugin_config.proto" + }, + { + "entity": "common.v1.NodeBuildInfo", + "path": "common/v1/node_build_info.proto" } ] } diff --git a/node-platform/common/v1/node_build_info.pb.go b/node-platform/common/v1/node_build_info.pb.go new file mode 100644 index 00000000..d83e05af --- /dev/null +++ b/node-platform/common/v1/node_build_info.pb.go @@ -0,0 +1,161 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.6 +// protoc v5.29.3 +// source: node-platform/common/v1/node_build_info.proto + +package v1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type NodeBuildInfo struct { + state protoimpl.MessageState `protogen:"open.v1"` + CsaPublicKey string `protobuf:"bytes,1,opt,name=csa_public_key,json=csaPublicKey,proto3" json:"csa_public_key,omitempty"` + CommitSha string `protobuf:"bytes,2,opt,name=commit_sha,json=commitSha,proto3" json:"commit_sha,omitempty"` + VersionTag string `protobuf:"bytes,3,opt,name=version_tag,json=versionTag,proto3" json:"version_tag,omitempty"` + Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` + DockerTag string `protobuf:"bytes,5,opt,name=docker_tag,json=dockerTag,proto3" json:"docker_tag,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *NodeBuildInfo) Reset() { + *x = NodeBuildInfo{} + mi := &file_node_platform_common_v1_node_build_info_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NodeBuildInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NodeBuildInfo) ProtoMessage() {} + +func (x *NodeBuildInfo) ProtoReflect() protoreflect.Message { + mi := &file_node_platform_common_v1_node_build_info_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NodeBuildInfo.ProtoReflect.Descriptor instead. +func (*NodeBuildInfo) Descriptor() ([]byte, []int) { + return file_node_platform_common_v1_node_build_info_proto_rawDescGZIP(), []int{0} +} + +func (x *NodeBuildInfo) GetCsaPublicKey() string { + if x != nil { + return x.CsaPublicKey + } + return "" +} + +func (x *NodeBuildInfo) GetCommitSha() string { + if x != nil { + return x.CommitSha + } + return "" +} + +func (x *NodeBuildInfo) GetVersionTag() string { + if x != nil { + return x.VersionTag + } + return "" +} + +func (x *NodeBuildInfo) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *NodeBuildInfo) GetDockerTag() string { + if x != nil { + return x.DockerTag + } + return "" +} + +var File_node_platform_common_v1_node_build_info_proto protoreflect.FileDescriptor + +const file_node_platform_common_v1_node_build_info_proto_rawDesc = "" + + "\n" + + "-node-platform/common/v1/node_build_info.proto\x12\tcommon.v1\"\xae\x01\n" + + "\rNodeBuildInfo\x12$\n" + + "\x0ecsa_public_key\x18\x01 \x01(\tR\fcsaPublicKey\x12\x1d\n" + + "\n" + + "commit_sha\x18\x02 \x01(\tR\tcommitSha\x12\x1f\n" + + "\vversion_tag\x18\x03 \x01(\tR\n" + + "versionTag\x12\x18\n" + + "\aversion\x18\x04 \x01(\tR\aversion\x12\x1d\n" + + "\n" + + "docker_tag\x18\x05 \x01(\tR\tdockerTagBFZDgithub.com/smartcontractkit/chainlink-protos/node-platform/common/v1b\x06proto3" + +var ( + file_node_platform_common_v1_node_build_info_proto_rawDescOnce sync.Once + file_node_platform_common_v1_node_build_info_proto_rawDescData []byte +) + +func file_node_platform_common_v1_node_build_info_proto_rawDescGZIP() []byte { + file_node_platform_common_v1_node_build_info_proto_rawDescOnce.Do(func() { + file_node_platform_common_v1_node_build_info_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_node_platform_common_v1_node_build_info_proto_rawDesc), len(file_node_platform_common_v1_node_build_info_proto_rawDesc))) + }) + return file_node_platform_common_v1_node_build_info_proto_rawDescData +} + +var file_node_platform_common_v1_node_build_info_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_node_platform_common_v1_node_build_info_proto_goTypes = []any{ + (*NodeBuildInfo)(nil), // 0: common.v1.NodeBuildInfo +} +var file_node_platform_common_v1_node_build_info_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_node_platform_common_v1_node_build_info_proto_init() } +func file_node_platform_common_v1_node_build_info_proto_init() { + if File_node_platform_common_v1_node_build_info_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_node_platform_common_v1_node_build_info_proto_rawDesc), len(file_node_platform_common_v1_node_build_info_proto_rawDesc)), + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_node_platform_common_v1_node_build_info_proto_goTypes, + DependencyIndexes: file_node_platform_common_v1_node_build_info_proto_depIdxs, + MessageInfos: file_node_platform_common_v1_node_build_info_proto_msgTypes, + }.Build() + File_node_platform_common_v1_node_build_info_proto = out.File + file_node_platform_common_v1_node_build_info_proto_goTypes = nil + file_node_platform_common_v1_node_build_info_proto_depIdxs = nil +} diff --git a/node-platform/common/v1/node_build_info.proto b/node-platform/common/v1/node_build_info.proto new file mode 100644 index 00000000..9152da26 --- /dev/null +++ b/node-platform/common/v1/node_build_info.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +package common.v1; + +option go_package = "github.com/smartcontractkit/chainlink-protos/node-platform/common/v1"; + +message NodeBuildInfo { + string csa_public_key = 1; + string commit_sha = 2; + string version_tag = 3; + string version = 4; + string docker_tag = 5; +} From ad04ed6d891e0349a00c8e96920e95f5d5adf39f Mon Sep 17 00:00:00 2001 From: Yashvardhan Nevatia Date: Thu, 19 Mar 2026 19:02:46 +0000 Subject: [PATCH 10/27] Revert "Remove aptos (moved to capabilities-development branch) (#316)" (#321) This reverts commit 1124ff8c35a15379c5b7ad415bb79cbd10d595b1. --- .../blockchain/aptos/v1alpha/client.proto | 192 +++++++++++++++++ cre/go/installer/pkg/embedded_gen.go | 198 ++++++++++++++++++ 2 files changed, 390 insertions(+) create mode 100644 cre/capabilities/blockchain/aptos/v1alpha/client.proto diff --git a/cre/capabilities/blockchain/aptos/v1alpha/client.proto b/cre/capabilities/blockchain/aptos/v1alpha/client.proto new file mode 100644 index 00000000..4eab040e --- /dev/null +++ b/cre/capabilities/blockchain/aptos/v1alpha/client.proto @@ -0,0 +1,192 @@ +syntax = "proto3"; +package capabilities.blockchain.aptos.v1alpha; + +import "sdk/v1alpha/sdk.proto"; +import "tools/generator/v1alpha/cre_metadata.proto"; + +// Transaction execution status returned by the forwarder. +enum TxStatus { + TX_STATUS_FATAL = 0; // unrecoverable failure + TX_STATUS_ABORTED = 1; // not executed / dropped + TX_STATUS_SUCCESS = 2; // executed successfully +} + +// ========== AccountAPTBalance ========== + +message AccountAPTBalanceRequest { + bytes address = 1; // 32-byte address +} + +message AccountAPTBalanceReply { + uint64 value = 1; +} + +// ========== View ========== + +message ViewRequest { + ViewPayload payload = 1; + optional uint64 ledger_version = 2; // nil means use latest ledger version +} + +message ViewReply { + bytes data = 1; +} + +message ViewPayload { + ModuleID module = 1; + string function = 2; + repeated TypeTag arg_types = 3; + repeated bytes args = 4; +} + +message ModuleID { + bytes address = 1; // 32-byte address + string name = 2; +} + +message TypeTag { + TypeTagKind kind = 1; + oneof value { + VectorTag vector = 2; + StructTag struct = 3; + GenericTag generic = 4; + } +} + +enum TypeTagKind { + TYPE_TAG_KIND_BOOL = 0; + TYPE_TAG_KIND_U8 = 1; + TYPE_TAG_KIND_U16 = 2; + TYPE_TAG_KIND_U32 = 3; + TYPE_TAG_KIND_U64 = 4; + TYPE_TAG_KIND_U128 = 5; + TYPE_TAG_KIND_U256 = 6; + TYPE_TAG_KIND_ADDRESS = 7; + TYPE_TAG_KIND_SIGNER = 8; + TYPE_TAG_KIND_VECTOR = 9; + TYPE_TAG_KIND_STRUCT = 10; + TYPE_TAG_KIND_GENERIC = 11; +} + +message VectorTag { + TypeTag element_type = 1; +} + +message StructTag { + bytes address = 1; // 32-byte address + string module = 2; + string name = 3; + repeated TypeTag type_params = 4; +} + +message GenericTag { + uint32 index = 1; +} + +// ========== TransactionByHash ========== + +message TransactionByHashRequest { + string hash = 1; // Transaction hash (hex string with 0x prefix) +} + +message TransactionByHashReply { + optional Transaction transaction = 1; +} + +enum TransactionVariant { + TRANSACTION_VARIANT_PENDING = 0; + TRANSACTION_VARIANT_USER = 1; + TRANSACTION_VARIANT_GENESIS = 2; + TRANSACTION_VARIANT_BLOCK_METADATA = 3; + TRANSACTION_VARIANT_BLOCK_EPILOGUE = 4; + TRANSACTION_VARIANT_STATE_CHECKPOINT = 5; + TRANSACTION_VARIANT_VALIDATOR = 6; + TRANSACTION_VARIANT_UNKNOWN = 7; +} + +message Transaction { + TransactionVariant type = 1; + string hash = 2; + optional uint64 version = 3; // nil for pending transactions + optional bool success = 4; // nil for pending/genesis transactions + bytes data = 5; // Raw transaction data +} + +// ========== AccountTransactions ========== + +message AccountTransactionsRequest { + bytes address = 1; // 32-byte address + optional uint64 start = 2; // Starting version number; nil for most recent + optional uint64 limit = 3; // Number of transactions to return; nil for default (~100) +} + +message AccountTransactionsReply { + repeated Transaction transactions = 1; +} + +// ========== SubmitTransaction ========== + +message SubmitTransactionRequest { + ModuleID receiver_module_id = 1; + bytes encoded_payload = 2; + optional GasConfig gas_config = 3; +} + +message SubmitTransactionReply { + TxStatus tx_status = 1; + string tx_hash = 2; + string tx_idempotency_key = 3; +} + +message GasConfig { + uint64 max_gas_amount = 1; // Maximum gas units willing to pay + uint64 gas_unit_price = 2; // Price per gas unit in octas +} + +// ========== WriteReport ========== + +message WriteReportRequest { + bytes receiver = 1; // 32-byte Aptos account address of the receiver module + optional GasConfig gas_config = 2; // optional gas configuration + sdk.v1alpha.ReportResponse report = 3; // signed report from consensus +} + +message WriteReportReply { + TxStatus tx_status = 1; + optional string tx_hash = 2; // transaction hash (hex string with 0x prefix) + optional uint64 transaction_fee = 3; // gas used in octas + optional string error_message = 4; +} + +// ========== Service ========== + +service Client { + option (tools.generator.v1alpha.capability) = { + mode: MODE_DON + capability_id: "aptos@1.0.0" + labels: { + // from https://github.com/smartcontractkit/chain-selectors/blob/main/selectors_aptos.yml + key: "ChainSelector" + value: { + uint64_label: { + defaults: [ + { + key: "aptos-mainnet" + value: 4741433654826277614 + }, + { + key: "aptos-testnet" + value: 743186221051783445 + } + ] + } + } + } + }; + + rpc AccountAPTBalance(AccountAPTBalanceRequest) returns (AccountAPTBalanceReply); + rpc View(ViewRequest) returns (ViewReply); + rpc TransactionByHash(TransactionByHashRequest) returns (TransactionByHashReply); + rpc AccountTransactions(AccountTransactionsRequest) returns (AccountTransactionsReply); + rpc WriteReport(WriteReportRequest) returns (WriteReportReply); +} diff --git a/cre/go/installer/pkg/embedded_gen.go b/cre/go/installer/pkg/embedded_gen.go index 058267ee..3753dad8 100755 --- a/cre/go/installer/pkg/embedded_gen.go +++ b/cre/go/installer/pkg/embedded_gen.go @@ -1,6 +1,200 @@ // Code generated by github.com/smartcontractkit/chainlink-protos/cre/go/installer/bootstrap. DO NOT EDIT.\n") package pkg +const blockchainAptosV1alphaClientEmbedded = `syntax = "proto3"; +package capabilities.blockchain.aptos.v1alpha; + +import "sdk/v1alpha/sdk.proto"; +import "tools/generator/v1alpha/cre_metadata.proto"; + +// Transaction execution status returned by the forwarder. +enum TxStatus { + TX_STATUS_FATAL = 0; // unrecoverable failure + TX_STATUS_ABORTED = 1; // not executed / dropped + TX_STATUS_SUCCESS = 2; // executed successfully +} + +// ========== AccountAPTBalance ========== + +message AccountAPTBalanceRequest { + bytes address = 1; // 32-byte address +} + +message AccountAPTBalanceReply { + uint64 value = 1; +} + +// ========== View ========== + +message ViewRequest { + ViewPayload payload = 1; + optional uint64 ledger_version = 2; // nil means use latest ledger version +} + +message ViewReply { + bytes data = 1; +} + +message ViewPayload { + ModuleID module = 1; + string function = 2; + repeated TypeTag arg_types = 3; + repeated bytes args = 4; +} + +message ModuleID { + bytes address = 1; // 32-byte address + string name = 2; +} + +message TypeTag { + TypeTagKind kind = 1; + oneof value { + VectorTag vector = 2; + StructTag struct = 3; + GenericTag generic = 4; + } +} + +enum TypeTagKind { + TYPE_TAG_KIND_BOOL = 0; + TYPE_TAG_KIND_U8 = 1; + TYPE_TAG_KIND_U16 = 2; + TYPE_TAG_KIND_U32 = 3; + TYPE_TAG_KIND_U64 = 4; + TYPE_TAG_KIND_U128 = 5; + TYPE_TAG_KIND_U256 = 6; + TYPE_TAG_KIND_ADDRESS = 7; + TYPE_TAG_KIND_SIGNER = 8; + TYPE_TAG_KIND_VECTOR = 9; + TYPE_TAG_KIND_STRUCT = 10; + TYPE_TAG_KIND_GENERIC = 11; +} + +message VectorTag { + TypeTag element_type = 1; +} + +message StructTag { + bytes address = 1; // 32-byte address + string module = 2; + string name = 3; + repeated TypeTag type_params = 4; +} + +message GenericTag { + uint32 index = 1; +} + +// ========== TransactionByHash ========== + +message TransactionByHashRequest { + string hash = 1; // Transaction hash (hex string with 0x prefix) +} + +message TransactionByHashReply { + optional Transaction transaction = 1; +} + +enum TransactionVariant { + TRANSACTION_VARIANT_PENDING = 0; + TRANSACTION_VARIANT_USER = 1; + TRANSACTION_VARIANT_GENESIS = 2; + TRANSACTION_VARIANT_BLOCK_METADATA = 3; + TRANSACTION_VARIANT_BLOCK_EPILOGUE = 4; + TRANSACTION_VARIANT_STATE_CHECKPOINT = 5; + TRANSACTION_VARIANT_VALIDATOR = 6; + TRANSACTION_VARIANT_UNKNOWN = 7; +} + +message Transaction { + TransactionVariant type = 1; + string hash = 2; + optional uint64 version = 3; // nil for pending transactions + optional bool success = 4; // nil for pending/genesis transactions + bytes data = 5; // Raw transaction data +} + +// ========== AccountTransactions ========== + +message AccountTransactionsRequest { + bytes address = 1; // 32-byte address + optional uint64 start = 2; // Starting version number; nil for most recent + optional uint64 limit = 3; // Number of transactions to return; nil for default (~100) +} + +message AccountTransactionsReply { + repeated Transaction transactions = 1; +} + +// ========== SubmitTransaction ========== + +message SubmitTransactionRequest { + ModuleID receiver_module_id = 1; + bytes encoded_payload = 2; + optional GasConfig gas_config = 3; +} + +message SubmitTransactionReply { + TxStatus tx_status = 1; + string tx_hash = 2; + string tx_idempotency_key = 3; +} + +message GasConfig { + uint64 max_gas_amount = 1; // Maximum gas units willing to pay + uint64 gas_unit_price = 2; // Price per gas unit in octas +} + +// ========== WriteReport ========== + +message WriteReportRequest { + bytes receiver = 1; // 32-byte Aptos account address of the receiver module + optional GasConfig gas_config = 2; // optional gas configuration + sdk.v1alpha.ReportResponse report = 3; // signed report from consensus +} + +message WriteReportReply { + TxStatus tx_status = 1; + optional string tx_hash = 2; // transaction hash (hex string with 0x prefix) + optional uint64 transaction_fee = 3; // gas used in octas + optional string error_message = 4; +} + +// ========== Service ========== + +service Client { + option (tools.generator.v1alpha.capability) = { + mode: MODE_DON + capability_id: "aptos@1.0.0" + labels: { + // from https://github.com/smartcontractkit/chain-selectors/blob/main/selectors_aptos.yml + key: "ChainSelector" + value: { + uint64_label: { + defaults: [ + { + key: "aptos-mainnet" + value: 4741433654826277614 + }, + { + key: "aptos-testnet" + value: 743186221051783445 + } + ] + } + } + } + }; + + rpc AccountAPTBalance(AccountAPTBalanceRequest) returns (AccountAPTBalanceReply); + rpc View(ViewRequest) returns (ViewReply); + rpc TransactionByHash(TransactionByHashRequest) returns (TransactionByHashReply); + rpc AccountTransactions(AccountTransactionsRequest) returns (AccountTransactionsReply); + rpc WriteReport(WriteReportRequest) returns (WriteReportReply); +} +` + const blockchainEvmV1alphaClientEmbedded = `syntax = "proto3"; package capabilities.blockchain.evm.v1alpha; @@ -1307,6 +1501,10 @@ message Decimal { ` var allFiles = []*embeddedFile{ + { + name: "capabilities/blockchain/aptos/v1alpha/client.proto", + content: blockchainAptosV1alphaClientEmbedded, + }, { name: "capabilities/blockchain/evm/v1alpha/client.proto", content: blockchainEvmV1alphaClientEmbedded, From ba0bee7869593539d780313cf3fd743131bea621 Mon Sep 17 00:00:00 2001 From: amit-momin <108959691+amit-momin@users.noreply.github.com> Date: Thu, 19 Mar 2026 19:48:20 -0500 Subject: [PATCH 11/27] Add hyperliquid mainnet to client proto (#322) * Added hyperliquid mainnet to client proto * Auto-fix: buf format, gofmt, go generate, go mod tidy --------- Co-authored-by: app-token-issuer-engops[bot] <144731339+app-token-issuer-engops[bot]@users.noreply.github.com> --- cre/capabilities/blockchain/evm/v1alpha/client.proto | 4 ++++ cre/go/installer/pkg/embedded_gen.go | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/cre/capabilities/blockchain/evm/v1alpha/client.proto b/cre/capabilities/blockchain/evm/v1alpha/client.proto index 75b087af..0db35d3f 100644 --- a/cre/capabilities/blockchain/evm/v1alpha/client.proto +++ b/cre/capabilities/blockchain/evm/v1alpha/client.proto @@ -293,6 +293,10 @@ service Client { key: "gnosis_chain-mainnet" value: 465200170687744372 }, + { + key: "hyperliquid-mainnet" + value: 2442541497099098535 + }, { key: "hyperliquid-testnet" value: 4286062357653186312 diff --git a/cre/go/installer/pkg/embedded_gen.go b/cre/go/installer/pkg/embedded_gen.go index 3753dad8..5761ad41 100755 --- a/cre/go/installer/pkg/embedded_gen.go +++ b/cre/go/installer/pkg/embedded_gen.go @@ -490,6 +490,10 @@ service Client { key: "gnosis_chain-mainnet" value: 465200170687744372 }, + { + key: "hyperliquid-mainnet" + value: 2442541497099098535 + }, { key: "hyperliquid-testnet" value: 4286062357653186312 From 314ec8dbe5a494c754fe0582fb06014e2949c7a2 Mon Sep 17 00:00:00 2001 From: amit-momin <108959691+amit-momin@users.noreply.github.com> Date: Fri, 20 Mar 2026 10:33:46 -0500 Subject: [PATCH 12/27] Add gnosis chiado to client proto (#324) * Added gnosis chiado to client proto * Auto-fix: buf format, gofmt, go generate, go mod tidy --------- Co-authored-by: app-token-issuer-engops[bot] <144731339+app-token-issuer-engops[bot]@users.noreply.github.com> --- cre/capabilities/blockchain/evm/v1alpha/client.proto | 4 ++++ cre/go/installer/pkg/embedded_gen.go | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/cre/capabilities/blockchain/evm/v1alpha/client.proto b/cre/capabilities/blockchain/evm/v1alpha/client.proto index 0db35d3f..4ecda88a 100644 --- a/cre/capabilities/blockchain/evm/v1alpha/client.proto +++ b/cre/capabilities/blockchain/evm/v1alpha/client.proto @@ -293,6 +293,10 @@ service Client { key: "gnosis_chain-mainnet" value: 465200170687744372 }, + { + key: "gnosis_chain-testnet-chiado" + value: 8871595565390010547 + }, { key: "hyperliquid-mainnet" value: 2442541497099098535 diff --git a/cre/go/installer/pkg/embedded_gen.go b/cre/go/installer/pkg/embedded_gen.go index 5761ad41..f0d3f502 100755 --- a/cre/go/installer/pkg/embedded_gen.go +++ b/cre/go/installer/pkg/embedded_gen.go @@ -490,6 +490,10 @@ service Client { key: "gnosis_chain-mainnet" value: 465200170687744372 }, + { + key: "gnosis_chain-testnet-chiado" + value: 8871595565390010547 + }, { key: "hyperliquid-mainnet" value: 2442541497099098535 From faea187e6997e00852cad8046c09b7b2d0f1e128 Mon Sep 17 00:00:00 2001 From: karen-stepanyan <91897037+karen-stepanyan@users.noreply.github.com> Date: Mon, 23 Mar 2026 16:46:44 +0400 Subject: [PATCH 13/27] add WorkflowUserMetric (#319) * add WorkflowUserMetric * fix metric suffix * bot: regenerate protobuf files * add USER_METRIC_TYPE_UNSPECIFIED * bot: regenerate protobuf files * update WorkflowUserMetric value to double * drop histogram support * bot: regenerate protobuf files --------- Co-authored-by: app-token-issuer-engops[bot] <144731339+app-token-issuer-engops[bot]@users.noreply.github.com> --- workflows/go/generate.go | 1 + workflows/go/v2/workflow_user_metric.pb.go | 253 ++++++++++++++++++ .../workflows/v2/workflow_user_metric.proto | 26 ++ 3 files changed, 280 insertions(+) create mode 100644 workflows/go/v2/workflow_user_metric.pb.go create mode 100644 workflows/workflows/v2/workflow_user_metric.proto diff --git a/workflows/go/generate.go b/workflows/go/generate.go index a799e784..36fb64c5 100644 --- a/workflows/go/generate.go +++ b/workflows/go/generate.go @@ -29,6 +29,7 @@ package workflows //go:generate protoc --proto_path=../ --go_out=./ --go_opt=module=github.com/smartcontractkit/chainlink-protos/workflows/go ../workflows/v2/capability_execution_started.proto //go:generate protoc --proto_path=../ --go_out=./ --go_opt=module=github.com/smartcontractkit/chainlink-protos/workflows/go ../workflows/v2/capability_execution_finished.proto //go:generate protoc --proto_path=../ --go_out=./ --go_opt=module=github.com/smartcontractkit/chainlink-protos/workflows/go ../workflows/v2/workflow_user_log.proto +//go:generate protoc --proto_path=../ --go_out=./ --go_opt=module=github.com/smartcontractkit/chainlink-protos/workflows/go ../workflows/v2/workflow_user_metric.proto //go:generate protoc --proto_path=../ --go_out=./ --go_opt=module=github.com/smartcontractkit/chainlink-protos/workflows/go ../workflows/v2/xxx_no_send.proto // sources/v1 - workflow metadata source service diff --git a/workflows/go/v2/workflow_user_metric.pb.go b/workflows/go/v2/workflow_user_metric.pb.go new file mode 100644 index 00000000..9fae638f --- /dev/null +++ b/workflows/go/v2/workflow_user_metric.pb.go @@ -0,0 +1,253 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.6 +// protoc v5.29.3 +// source: workflows/v2/workflow_user_metric.proto + +package v2 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" + unsafe "unsafe" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type UserMetricType int32 + +const ( + UserMetricType_USER_METRIC_TYPE_UNSPECIFIED UserMetricType = 0 + UserMetricType_USER_METRIC_TYPE_COUNTER UserMetricType = 1 + UserMetricType_USER_METRIC_TYPE_GAUGE UserMetricType = 2 +) + +// Enum value maps for UserMetricType. +var ( + UserMetricType_name = map[int32]string{ + 0: "USER_METRIC_TYPE_UNSPECIFIED", + 1: "USER_METRIC_TYPE_COUNTER", + 2: "USER_METRIC_TYPE_GAUGE", + } + UserMetricType_value = map[string]int32{ + "USER_METRIC_TYPE_UNSPECIFIED": 0, + "USER_METRIC_TYPE_COUNTER": 1, + "USER_METRIC_TYPE_GAUGE": 2, + } +) + +func (x UserMetricType) Enum() *UserMetricType { + p := new(UserMetricType) + *p = x + return p +} + +func (x UserMetricType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (UserMetricType) Descriptor() protoreflect.EnumDescriptor { + return file_workflows_v2_workflow_user_metric_proto_enumTypes[0].Descriptor() +} + +func (UserMetricType) Type() protoreflect.EnumType { + return &file_workflows_v2_workflow_user_metric_proto_enumTypes[0] +} + +func (x UserMetricType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use UserMetricType.Descriptor instead. +func (UserMetricType) EnumDescriptor() ([]byte, []int) { + return file_workflows_v2_workflow_user_metric_proto_rawDescGZIP(), []int{0} +} + +type WorkflowUserMetric struct { + state protoimpl.MessageState `protogen:"open.v1"` + CreInfo *CreInfo `protobuf:"bytes,1,opt,name=creInfo,proto3" json:"creInfo,omitempty"` + Workflow *WorkflowKey `protobuf:"bytes,2,opt,name=workflow,proto3" json:"workflow,omitempty"` + WorkflowExecutionID string `protobuf:"bytes,3,opt,name=workflowExecutionID,proto3" json:"workflowExecutionID,omitempty"` + Timestamp string `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` + Value float64 `protobuf:"fixed64,6,opt,name=value,proto3" json:"value,omitempty"` + Type UserMetricType `protobuf:"varint,7,opt,name=type,proto3,enum=workflows.v2.UserMetricType" json:"type,omitempty"` + Labels map[string]string `protobuf:"bytes,8,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *WorkflowUserMetric) Reset() { + *x = WorkflowUserMetric{} + mi := &file_workflows_v2_workflow_user_metric_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *WorkflowUserMetric) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowUserMetric) ProtoMessage() {} + +func (x *WorkflowUserMetric) ProtoReflect() protoreflect.Message { + mi := &file_workflows_v2_workflow_user_metric_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowUserMetric.ProtoReflect.Descriptor instead. +func (*WorkflowUserMetric) Descriptor() ([]byte, []int) { + return file_workflows_v2_workflow_user_metric_proto_rawDescGZIP(), []int{0} +} + +func (x *WorkflowUserMetric) GetCreInfo() *CreInfo { + if x != nil { + return x.CreInfo + } + return nil +} + +func (x *WorkflowUserMetric) GetWorkflow() *WorkflowKey { + if x != nil { + return x.Workflow + } + return nil +} + +func (x *WorkflowUserMetric) GetWorkflowExecutionID() string { + if x != nil { + return x.WorkflowExecutionID + } + return "" +} + +func (x *WorkflowUserMetric) GetTimestamp() string { + if x != nil { + return x.Timestamp + } + return "" +} + +func (x *WorkflowUserMetric) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *WorkflowUserMetric) GetValue() float64 { + if x != nil { + return x.Value + } + return 0 +} + +func (x *WorkflowUserMetric) GetType() UserMetricType { + if x != nil { + return x.Type + } + return UserMetricType_USER_METRIC_TYPE_UNSPECIFIED +} + +func (x *WorkflowUserMetric) GetLabels() map[string]string { + if x != nil { + return x.Labels + } + return nil +} + +var File_workflows_v2_workflow_user_metric_proto protoreflect.FileDescriptor + +const file_workflows_v2_workflow_user_metric_proto_rawDesc = "" + + "\n" + + "'workflows/v2/workflow_user_metric.proto\x12\fworkflows.v2\x1a\x1bworkflows/v2/cre_info.proto\x1a\x1fworkflows/v2/workflow_key.proto\"\xa9\x03\n" + + "\x12WorkflowUserMetric\x12/\n" + + "\acreInfo\x18\x01 \x01(\v2\x15.workflows.v2.CreInfoR\acreInfo\x125\n" + + "\bworkflow\x18\x02 \x01(\v2\x19.workflows.v2.WorkflowKeyR\bworkflow\x120\n" + + "\x13workflowExecutionID\x18\x03 \x01(\tR\x13workflowExecutionID\x12\x1c\n" + + "\ttimestamp\x18\x04 \x01(\tR\ttimestamp\x12\x12\n" + + "\x04name\x18\x05 \x01(\tR\x04name\x12\x14\n" + + "\x05value\x18\x06 \x01(\x01R\x05value\x120\n" + + "\x04type\x18\a \x01(\x0e2\x1c.workflows.v2.UserMetricTypeR\x04type\x12D\n" + + "\x06labels\x18\b \x03(\v2,.workflows.v2.WorkflowUserMetric.LabelsEntryR\x06labels\x1a9\n" + + "\vLabelsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01*l\n" + + "\x0eUserMetricType\x12 \n" + + "\x1cUSER_METRIC_TYPE_UNSPECIFIED\x10\x00\x12\x1c\n" + + "\x18USER_METRIC_TYPE_COUNTER\x10\x01\x12\x1a\n" + + "\x16USER_METRIC_TYPE_GAUGE\x10\x02B>Z workflows.v2.CreInfo + 4, // 1: workflows.v2.WorkflowUserMetric.workflow:type_name -> workflows.v2.WorkflowKey + 0, // 2: workflows.v2.WorkflowUserMetric.type:type_name -> workflows.v2.UserMetricType + 2, // 3: workflows.v2.WorkflowUserMetric.labels:type_name -> workflows.v2.WorkflowUserMetric.LabelsEntry + 4, // [4:4] is the sub-list for method output_type + 4, // [4:4] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_workflows_v2_workflow_user_metric_proto_init() } +func file_workflows_v2_workflow_user_metric_proto_init() { + if File_workflows_v2_workflow_user_metric_proto != nil { + return + } + file_workflows_v2_cre_info_proto_init() + file_workflows_v2_workflow_key_proto_init() + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_workflows_v2_workflow_user_metric_proto_rawDesc), len(file_workflows_v2_workflow_user_metric_proto_rawDesc)), + NumEnums: 1, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_workflows_v2_workflow_user_metric_proto_goTypes, + DependencyIndexes: file_workflows_v2_workflow_user_metric_proto_depIdxs, + EnumInfos: file_workflows_v2_workflow_user_metric_proto_enumTypes, + MessageInfos: file_workflows_v2_workflow_user_metric_proto_msgTypes, + }.Build() + File_workflows_v2_workflow_user_metric_proto = out.File + file_workflows_v2_workflow_user_metric_proto_goTypes = nil + file_workflows_v2_workflow_user_metric_proto_depIdxs = nil +} diff --git a/workflows/workflows/v2/workflow_user_metric.proto b/workflows/workflows/v2/workflow_user_metric.proto new file mode 100644 index 00000000..3d39c18b --- /dev/null +++ b/workflows/workflows/v2/workflow_user_metric.proto @@ -0,0 +1,26 @@ +syntax = "proto3"; + +package workflows.v2; + +import "workflows/v2/cre_info.proto"; +import "workflows/v2/workflow_key.proto"; + +option go_package = "github.com/smartcontractkit/chainlink-protos/workflows/go/v2"; + +enum UserMetricType { + USER_METRIC_TYPE_UNSPECIFIED = 0; + USER_METRIC_TYPE_COUNTER = 1; + USER_METRIC_TYPE_GAUGE = 2; +} + +message WorkflowUserMetric { + CreInfo creInfo = 1; + WorkflowKey workflow = 2; + string workflowExecutionID = 3; + string timestamp = 4; + + string name = 5; + double value = 6; + UserMetricType type = 7; + map labels = 8; +} From e0fb416d9d092741556151830cb5c044a3c5538f Mon Sep 17 00:00:00 2001 From: Yashvardhan Nevatia Date: Thu, 26 Mar 2026 15:06:39 +0000 Subject: [PATCH 14/27] =?UTF-8?q?Revert=20"Revert=20"Remove=20aptos=20(mov?= =?UTF-8?q?ed=20to=20capabilities-development=20branch)=20(#316=E2=80=A6"?= =?UTF-8?q?=20(#331)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit ad04ed6d891e0349a00c8e96920e95f5d5adf39f. --- .../blockchain/aptos/v1alpha/client.proto | 192 ----------------- cre/go/installer/pkg/embedded_gen.go | 198 ------------------ 2 files changed, 390 deletions(-) delete mode 100644 cre/capabilities/blockchain/aptos/v1alpha/client.proto diff --git a/cre/capabilities/blockchain/aptos/v1alpha/client.proto b/cre/capabilities/blockchain/aptos/v1alpha/client.proto deleted file mode 100644 index 4eab040e..00000000 --- a/cre/capabilities/blockchain/aptos/v1alpha/client.proto +++ /dev/null @@ -1,192 +0,0 @@ -syntax = "proto3"; -package capabilities.blockchain.aptos.v1alpha; - -import "sdk/v1alpha/sdk.proto"; -import "tools/generator/v1alpha/cre_metadata.proto"; - -// Transaction execution status returned by the forwarder. -enum TxStatus { - TX_STATUS_FATAL = 0; // unrecoverable failure - TX_STATUS_ABORTED = 1; // not executed / dropped - TX_STATUS_SUCCESS = 2; // executed successfully -} - -// ========== AccountAPTBalance ========== - -message AccountAPTBalanceRequest { - bytes address = 1; // 32-byte address -} - -message AccountAPTBalanceReply { - uint64 value = 1; -} - -// ========== View ========== - -message ViewRequest { - ViewPayload payload = 1; - optional uint64 ledger_version = 2; // nil means use latest ledger version -} - -message ViewReply { - bytes data = 1; -} - -message ViewPayload { - ModuleID module = 1; - string function = 2; - repeated TypeTag arg_types = 3; - repeated bytes args = 4; -} - -message ModuleID { - bytes address = 1; // 32-byte address - string name = 2; -} - -message TypeTag { - TypeTagKind kind = 1; - oneof value { - VectorTag vector = 2; - StructTag struct = 3; - GenericTag generic = 4; - } -} - -enum TypeTagKind { - TYPE_TAG_KIND_BOOL = 0; - TYPE_TAG_KIND_U8 = 1; - TYPE_TAG_KIND_U16 = 2; - TYPE_TAG_KIND_U32 = 3; - TYPE_TAG_KIND_U64 = 4; - TYPE_TAG_KIND_U128 = 5; - TYPE_TAG_KIND_U256 = 6; - TYPE_TAG_KIND_ADDRESS = 7; - TYPE_TAG_KIND_SIGNER = 8; - TYPE_TAG_KIND_VECTOR = 9; - TYPE_TAG_KIND_STRUCT = 10; - TYPE_TAG_KIND_GENERIC = 11; -} - -message VectorTag { - TypeTag element_type = 1; -} - -message StructTag { - bytes address = 1; // 32-byte address - string module = 2; - string name = 3; - repeated TypeTag type_params = 4; -} - -message GenericTag { - uint32 index = 1; -} - -// ========== TransactionByHash ========== - -message TransactionByHashRequest { - string hash = 1; // Transaction hash (hex string with 0x prefix) -} - -message TransactionByHashReply { - optional Transaction transaction = 1; -} - -enum TransactionVariant { - TRANSACTION_VARIANT_PENDING = 0; - TRANSACTION_VARIANT_USER = 1; - TRANSACTION_VARIANT_GENESIS = 2; - TRANSACTION_VARIANT_BLOCK_METADATA = 3; - TRANSACTION_VARIANT_BLOCK_EPILOGUE = 4; - TRANSACTION_VARIANT_STATE_CHECKPOINT = 5; - TRANSACTION_VARIANT_VALIDATOR = 6; - TRANSACTION_VARIANT_UNKNOWN = 7; -} - -message Transaction { - TransactionVariant type = 1; - string hash = 2; - optional uint64 version = 3; // nil for pending transactions - optional bool success = 4; // nil for pending/genesis transactions - bytes data = 5; // Raw transaction data -} - -// ========== AccountTransactions ========== - -message AccountTransactionsRequest { - bytes address = 1; // 32-byte address - optional uint64 start = 2; // Starting version number; nil for most recent - optional uint64 limit = 3; // Number of transactions to return; nil for default (~100) -} - -message AccountTransactionsReply { - repeated Transaction transactions = 1; -} - -// ========== SubmitTransaction ========== - -message SubmitTransactionRequest { - ModuleID receiver_module_id = 1; - bytes encoded_payload = 2; - optional GasConfig gas_config = 3; -} - -message SubmitTransactionReply { - TxStatus tx_status = 1; - string tx_hash = 2; - string tx_idempotency_key = 3; -} - -message GasConfig { - uint64 max_gas_amount = 1; // Maximum gas units willing to pay - uint64 gas_unit_price = 2; // Price per gas unit in octas -} - -// ========== WriteReport ========== - -message WriteReportRequest { - bytes receiver = 1; // 32-byte Aptos account address of the receiver module - optional GasConfig gas_config = 2; // optional gas configuration - sdk.v1alpha.ReportResponse report = 3; // signed report from consensus -} - -message WriteReportReply { - TxStatus tx_status = 1; - optional string tx_hash = 2; // transaction hash (hex string with 0x prefix) - optional uint64 transaction_fee = 3; // gas used in octas - optional string error_message = 4; -} - -// ========== Service ========== - -service Client { - option (tools.generator.v1alpha.capability) = { - mode: MODE_DON - capability_id: "aptos@1.0.0" - labels: { - // from https://github.com/smartcontractkit/chain-selectors/blob/main/selectors_aptos.yml - key: "ChainSelector" - value: { - uint64_label: { - defaults: [ - { - key: "aptos-mainnet" - value: 4741433654826277614 - }, - { - key: "aptos-testnet" - value: 743186221051783445 - } - ] - } - } - } - }; - - rpc AccountAPTBalance(AccountAPTBalanceRequest) returns (AccountAPTBalanceReply); - rpc View(ViewRequest) returns (ViewReply); - rpc TransactionByHash(TransactionByHashRequest) returns (TransactionByHashReply); - rpc AccountTransactions(AccountTransactionsRequest) returns (AccountTransactionsReply); - rpc WriteReport(WriteReportRequest) returns (WriteReportReply); -} diff --git a/cre/go/installer/pkg/embedded_gen.go b/cre/go/installer/pkg/embedded_gen.go index f0d3f502..c52246cd 100755 --- a/cre/go/installer/pkg/embedded_gen.go +++ b/cre/go/installer/pkg/embedded_gen.go @@ -1,200 +1,6 @@ // Code generated by github.com/smartcontractkit/chainlink-protos/cre/go/installer/bootstrap. DO NOT EDIT.\n") package pkg -const blockchainAptosV1alphaClientEmbedded = `syntax = "proto3"; -package capabilities.blockchain.aptos.v1alpha; - -import "sdk/v1alpha/sdk.proto"; -import "tools/generator/v1alpha/cre_metadata.proto"; - -// Transaction execution status returned by the forwarder. -enum TxStatus { - TX_STATUS_FATAL = 0; // unrecoverable failure - TX_STATUS_ABORTED = 1; // not executed / dropped - TX_STATUS_SUCCESS = 2; // executed successfully -} - -// ========== AccountAPTBalance ========== - -message AccountAPTBalanceRequest { - bytes address = 1; // 32-byte address -} - -message AccountAPTBalanceReply { - uint64 value = 1; -} - -// ========== View ========== - -message ViewRequest { - ViewPayload payload = 1; - optional uint64 ledger_version = 2; // nil means use latest ledger version -} - -message ViewReply { - bytes data = 1; -} - -message ViewPayload { - ModuleID module = 1; - string function = 2; - repeated TypeTag arg_types = 3; - repeated bytes args = 4; -} - -message ModuleID { - bytes address = 1; // 32-byte address - string name = 2; -} - -message TypeTag { - TypeTagKind kind = 1; - oneof value { - VectorTag vector = 2; - StructTag struct = 3; - GenericTag generic = 4; - } -} - -enum TypeTagKind { - TYPE_TAG_KIND_BOOL = 0; - TYPE_TAG_KIND_U8 = 1; - TYPE_TAG_KIND_U16 = 2; - TYPE_TAG_KIND_U32 = 3; - TYPE_TAG_KIND_U64 = 4; - TYPE_TAG_KIND_U128 = 5; - TYPE_TAG_KIND_U256 = 6; - TYPE_TAG_KIND_ADDRESS = 7; - TYPE_TAG_KIND_SIGNER = 8; - TYPE_TAG_KIND_VECTOR = 9; - TYPE_TAG_KIND_STRUCT = 10; - TYPE_TAG_KIND_GENERIC = 11; -} - -message VectorTag { - TypeTag element_type = 1; -} - -message StructTag { - bytes address = 1; // 32-byte address - string module = 2; - string name = 3; - repeated TypeTag type_params = 4; -} - -message GenericTag { - uint32 index = 1; -} - -// ========== TransactionByHash ========== - -message TransactionByHashRequest { - string hash = 1; // Transaction hash (hex string with 0x prefix) -} - -message TransactionByHashReply { - optional Transaction transaction = 1; -} - -enum TransactionVariant { - TRANSACTION_VARIANT_PENDING = 0; - TRANSACTION_VARIANT_USER = 1; - TRANSACTION_VARIANT_GENESIS = 2; - TRANSACTION_VARIANT_BLOCK_METADATA = 3; - TRANSACTION_VARIANT_BLOCK_EPILOGUE = 4; - TRANSACTION_VARIANT_STATE_CHECKPOINT = 5; - TRANSACTION_VARIANT_VALIDATOR = 6; - TRANSACTION_VARIANT_UNKNOWN = 7; -} - -message Transaction { - TransactionVariant type = 1; - string hash = 2; - optional uint64 version = 3; // nil for pending transactions - optional bool success = 4; // nil for pending/genesis transactions - bytes data = 5; // Raw transaction data -} - -// ========== AccountTransactions ========== - -message AccountTransactionsRequest { - bytes address = 1; // 32-byte address - optional uint64 start = 2; // Starting version number; nil for most recent - optional uint64 limit = 3; // Number of transactions to return; nil for default (~100) -} - -message AccountTransactionsReply { - repeated Transaction transactions = 1; -} - -// ========== SubmitTransaction ========== - -message SubmitTransactionRequest { - ModuleID receiver_module_id = 1; - bytes encoded_payload = 2; - optional GasConfig gas_config = 3; -} - -message SubmitTransactionReply { - TxStatus tx_status = 1; - string tx_hash = 2; - string tx_idempotency_key = 3; -} - -message GasConfig { - uint64 max_gas_amount = 1; // Maximum gas units willing to pay - uint64 gas_unit_price = 2; // Price per gas unit in octas -} - -// ========== WriteReport ========== - -message WriteReportRequest { - bytes receiver = 1; // 32-byte Aptos account address of the receiver module - optional GasConfig gas_config = 2; // optional gas configuration - sdk.v1alpha.ReportResponse report = 3; // signed report from consensus -} - -message WriteReportReply { - TxStatus tx_status = 1; - optional string tx_hash = 2; // transaction hash (hex string with 0x prefix) - optional uint64 transaction_fee = 3; // gas used in octas - optional string error_message = 4; -} - -// ========== Service ========== - -service Client { - option (tools.generator.v1alpha.capability) = { - mode: MODE_DON - capability_id: "aptos@1.0.0" - labels: { - // from https://github.com/smartcontractkit/chain-selectors/blob/main/selectors_aptos.yml - key: "ChainSelector" - value: { - uint64_label: { - defaults: [ - { - key: "aptos-mainnet" - value: 4741433654826277614 - }, - { - key: "aptos-testnet" - value: 743186221051783445 - } - ] - } - } - } - }; - - rpc AccountAPTBalance(AccountAPTBalanceRequest) returns (AccountAPTBalanceReply); - rpc View(ViewRequest) returns (ViewReply); - rpc TransactionByHash(TransactionByHashRequest) returns (TransactionByHashReply); - rpc AccountTransactions(AccountTransactionsRequest) returns (AccountTransactionsReply); - rpc WriteReport(WriteReportRequest) returns (WriteReportReply); -} -` - const blockchainEvmV1alphaClientEmbedded = `syntax = "proto3"; package capabilities.blockchain.evm.v1alpha; @@ -1509,10 +1315,6 @@ message Decimal { ` var allFiles = []*embeddedFile{ - { - name: "capabilities/blockchain/aptos/v1alpha/client.proto", - content: blockchainAptosV1alphaClientEmbedded, - }, { name: "capabilities/blockchain/evm/v1alpha/client.proto", content: blockchainEvmV1alphaClientEmbedded, From 93f52c3124cf9870d461f885efd598bb1b553717 Mon Sep 17 00:00:00 2001 From: amit-momin <108959691+amit-momin@users.noreply.github.com> Date: Thu, 26 Mar 2026 12:16:22 -0500 Subject: [PATCH 15/27] Add capability-development branch protection CI (#327) * Add capability-development branch protection ci * Upgraded checkout action to major version tag * Updated validation to only occur when target branch is main * Addressed feedback --- .github/workflows/cre-branch-protection.yml | 85 +++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 .github/workflows/cre-branch-protection.yml diff --git a/.github/workflows/cre-branch-protection.yml b/.github/workflows/cre-branch-protection.yml new file mode 100644 index 00000000..49661fe6 --- /dev/null +++ b/.github/workflows/cre-branch-protection.yml @@ -0,0 +1,85 @@ +name: CRE branch protection + +on: + pull_request: + types: [opened, reopened, synchronize] + branches: + - main + +permissions: {} + +jobs: + check-cre-target-branch: + permissions: + contents: read + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + with: + fetch-depth: 0 + + - name: Enforce CRE changes target capabilities-development + env: + TARGET_BRANCH: ${{ github.base_ref }} + run: | + git fetch origin "${TARGET_BRANCH}" --quiet 2>/dev/null || true + + CRE_CHANGED=$(git diff --name-only "origin/${TARGET_BRANCH}...HEAD" -- cre/) + + if [[ -z "$CRE_CHANGED" ]]; then + echo "No cre/ files modified. Skipping branch check." + exit 0 + fi + + echo "The following cre/ files are modified in this PR:" + echo "$CRE_CHANGED" + echo "" + + echo "PR targets 'main' and contains cre/ changes." + echo "Verifying all CRE-modifying commits are cherry-picks from capabilities-development..." + echo "" + + if ! git fetch origin capabilities-development --quiet 2>/dev/null; then + echo "::error::Could not fetch the 'capabilities-development' branch. Ensure it exists on the remote." + echo "::error::CRE changes must target 'capabilities-development' or be cherry-picks of commits already in that branch." + exit 1 + fi + + # Precompute patch-ids for all CRE-touching commits in capabilities-development + CAP_PATCH_IDS=$(mktemp) + git log --format=%H origin/capabilities-development -- cre/ | while read -r cap_commit; do + git show "$cap_commit" -- cre/ | git patch-id --stable 2>/dev/null | awk '{print $1}' + done | sort -u > "$CAP_PATCH_IDS" + + CAP_COUNT=$(wc -l < "$CAP_PATCH_IDS" | tr -d ' ') + echo "Found ${CAP_COUNT} unique CRE patch-ids in capabilities-development." + echo "" + + # Check each PR commit that touches cre/ + FAILURES=$(mktemp) + git log --format=%H "origin/${TARGET_BRANCH}..HEAD" -- cre/ | while read -r commit; do + PATCH_ID=$(git show "$commit" -- cre/ | git patch-id --stable 2>/dev/null | awk '{print $1}') + + if [ -z "$PATCH_ID" ]; then + continue + fi + + if ! grep -qF "$PATCH_ID" "$CAP_PATCH_IDS"; then + git log -1 --format='%h %s' "$commit" >> "$FAILURES" + fi + done + + if [ -s "$FAILURES" ]; then + echo "::error::The following commits modify cre/ but are not cherry-picks of commits in capabilities-development:" + echo "" + while IFS= read -r line; do + echo " - ${line}" + done < "$FAILURES" + echo "" + echo "::error::CRE changes must first be merged into 'capabilities-development'. PRs to other branches may only include cherry-picks of commits already in that branch." + rm -f "$CAP_PATCH_IDS" "$FAILURES" + exit 1 + fi + + rm -f "$CAP_PATCH_IDS" "$FAILURES" + echo "All CRE-modifying commits are verified cherry-picks from capabilities-development." From bd561fbc2eb9f9ea2cbf5ad9e273f489290756d2 Mon Sep 17 00:00:00 2001 From: karen-stepanyan <91897037+karen-stepanyan@users.noreply.github.com> Date: Tue, 31 Mar 2026 12:28:19 +0400 Subject: [PATCH 16/27] beholder: publish workflows/v2/workflow_user_metric (#333) * beholder: publish workflows/v2/workflow_user_metric.proto * remove entry from deprecated files --- workflows/chip-cre.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/workflows/chip-cre.json b/workflows/chip-cre.json index cf5213fd..abd7594f 100644 --- a/workflows/chip-cre.json +++ b/workflows/chip-cre.json @@ -347,6 +347,22 @@ } ] }, + { + "entity": "workflows.v2.WorkflowUserMetric", + "path": "workflows/v2/workflow_user_metric.proto", + "references": [ + { + "name": "workflows/v2/cre_info.proto", + "entity": "workflows.v2.CreInfo", + "path": "workflows/v2/cre_info.proto" + }, + { + "name": "workflows/v2/workflow_key.proto", + "entity": "workflows.v2.WorkflowKey", + "path": "workflows/v2/workflow_key.proto" + } + ] + }, { "entity": "bridge_status.v1.JobInfo", "path": "bridge_status/v1/job_info.proto" From f08a616d8dcdb8792cbe88cfa0e2b548e48c9a39 Mon Sep 17 00:00:00 2001 From: mchain0 Date: Tue, 31 Mar 2026 15:13:15 +0200 Subject: [PATCH 17/27] cre-1835: steady and transition indicators (#334) --- ring/go/shard_orchestrator.pb.go | 22 ++++++++++++++++++++-- ring/pb/shard_orchestrator.proto | 2 ++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/ring/go/shard_orchestrator.pb.go b/ring/go/shard_orchestrator.pb.go index 2ebdf252..fe6194b1 100644 --- a/ring/go/shard_orchestrator.pb.go +++ b/ring/go/shard_orchestrator.pb.go @@ -130,6 +130,8 @@ type GetWorkflowShardMappingResponse struct { Mappings map[string]uint32 `protobuf:"bytes,1,rep,name=mappings,proto3" json:"mappings,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` MappingStates map[string]*WorkflowMappingState `protobuf:"bytes,2,rep,name=mapping_states,json=mappingStates,proto3" json:"mapping_states,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` MappingVersion uint64 `protobuf:"varint,3,opt,name=mapping_version,json=mappingVersion,proto3" json:"mapping_version,omitempty"` + RoutingStateId uint64 `protobuf:"varint,4,opt,name=routing_state_id,json=routingStateId,proto3" json:"routing_state_id,omitempty"` + RoutingSteady bool `protobuf:"varint,5,opt,name=routing_steady,json=routingSteady,proto3" json:"routing_steady,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -185,6 +187,20 @@ func (x *GetWorkflowShardMappingResponse) GetMappingVersion() uint64 { return 0 } +func (x *GetWorkflowShardMappingResponse) GetRoutingStateId() uint64 { + if x != nil { + return x.RoutingStateId + } + return 0 +} + +func (x *GetWorkflowShardMappingResponse) GetRoutingSteady() bool { + if x != nil { + return x.RoutingSteady + } + return false +} + type ReportWorkflowTriggerRegistrationRequest struct { state protoimpl.MessageState `protogen:"open.v1"` SourceShardId uint32 `protobuf:"varint,1,opt,name=source_shard_id,json=sourceShardId,proto3" json:"source_shard_id,omitempty"` @@ -301,11 +317,13 @@ const file_shard_orchestrator_proto_rawDesc = "" + "oldShardId\x12 \n" + "\fnew_shard_id\x18\x02 \x01(\rR\n" + "newShardId\x12#\n" + - "\rin_transition\x18\x03 \x01(\bR\finTransition\"\x97\x03\n" + + "\rin_transition\x18\x03 \x01(\bR\finTransition\"\xe8\x03\n" + "\x1fGetWorkflowShardMappingResponse\x12O\n" + "\bmappings\x18\x01 \x03(\v23.ring.GetWorkflowShardMappingResponse.MappingsEntryR\bmappings\x12_\n" + "\x0emapping_states\x18\x02 \x03(\v28.ring.GetWorkflowShardMappingResponse.MappingStatesEntryR\rmappingStates\x12'\n" + - "\x0fmapping_version\x18\x03 \x01(\x04R\x0emappingVersion\x1a;\n" + + "\x0fmapping_version\x18\x03 \x01(\x04R\x0emappingVersion\x12(\n" + + "\x10routing_state_id\x18\x04 \x01(\x04R\x0eroutingStateId\x12%\n" + + "\x0erouting_steady\x18\x05 \x01(\bR\rroutingSteady\x1a;\n" + "\rMappingsEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + "\x05value\x18\x02 \x01(\rR\x05value:\x028\x01\x1a\\\n" + diff --git a/ring/pb/shard_orchestrator.proto b/ring/pb/shard_orchestrator.proto index 87932d11..6a3a5200 100644 --- a/ring/pb/shard_orchestrator.proto +++ b/ring/pb/shard_orchestrator.proto @@ -18,6 +18,8 @@ message GetWorkflowShardMappingResponse { map mappings = 1; map mapping_states = 2; uint64 mapping_version = 3; + uint64 routing_state_id = 4; + bool routing_steady = 5; } message ReportWorkflowTriggerRegistrationRequest { From e2dad579edbc3cf058b87f28fe47e1bf6e7d98fc Mon Sep 17 00:00:00 2001 From: Ryan Tinianov Date: Thu, 2 Apr 2026 14:23:24 -0400 Subject: [PATCH 18/27] Add TEE metadata to http capabilities --- .../confidentialhttp/v1alpha/client.proto | 1 + .../networking/http/v1alpha/client.proto | 1 + cre/go/installer/pkg/embedded_gen.go | 23 + cre/go/sdk/sdk.pb.go | 457 +++++++++++++----- cre/go/tools/generator/cre_metadata.pb.go | 16 +- cre/go/values/pb/values.pb.go | 2 +- cre/sdk/v1alpha/sdk.proto | 20 + .../generator/v1alpha/cre_metadata.proto | 1 + 8 files changed, 406 insertions(+), 115 deletions(-) diff --git a/cre/capabilities/networking/confidentialhttp/v1alpha/client.proto b/cre/capabilities/networking/confidentialhttp/v1alpha/client.proto index 9feec6f0..7a3eb9b9 100644 --- a/cre/capabilities/networking/confidentialhttp/v1alpha/client.proto +++ b/cre/capabilities/networking/confidentialhttp/v1alpha/client.proto @@ -66,6 +66,7 @@ service Client { option (tools.generator.v1alpha.capability) = { mode: MODE_DON capability_id: "confidential-http@1.0.0-alpha" + tee_enabled: true }; rpc SendRequest(ConfidentialHTTPRequest) returns (HTTPResponse); diff --git a/cre/capabilities/networking/http/v1alpha/client.proto b/cre/capabilities/networking/http/v1alpha/client.proto index a42e23bd..be9d9c9e 100644 --- a/cre/capabilities/networking/http/v1alpha/client.proto +++ b/cre/capabilities/networking/http/v1alpha/client.proto @@ -37,6 +37,7 @@ service Client { option (tools.generator.v1alpha.capability) = { mode: MODE_NODE capability_id: "http-actions@1.0.0-alpha" + tee_enabled: true }; rpc SendRequest(Request) returns (Response); } diff --git a/cre/go/installer/pkg/embedded_gen.go b/cre/go/installer/pkg/embedded_gen.go index c52246cd..4e82e870 100755 --- a/cre/go/installer/pkg/embedded_gen.go +++ b/cre/go/installer/pkg/embedded_gen.go @@ -717,6 +717,7 @@ service Client { option (tools.generator.v1alpha.capability) = { mode: MODE_DON capability_id: "confidential-http@1.0.0-alpha" + tee_enabled: true }; rpc SendRequest(ConfidentialHTTPRequest) returns (HTTPResponse); @@ -762,6 +763,7 @@ service Client { option (tools.generator.v1alpha.capability) = { mode: MODE_NODE capability_id: "http-actions@1.0.0-alpha" + tee_enabled: true }; rpc SendRequest(Request) returns (Response); } @@ -924,6 +926,22 @@ message TriggerSubscription { string method = 3; } +enum TeeType { + TEE_TYPE_AWS_NITRO = 0; +} + + +message TeeTypeSelection { + repeated TeeType types = 1; +} + +message Tee { + oneof type { + google.protobuf.Empty any = 1; + TeeTypeSelection type_selection = 2; + } +} + message TriggerSubscriptionRequest { repeated TriggerSubscription subscriptions = 1; } @@ -933,6 +951,10 @@ message Trigger { google.protobuf.Any payload = 2; } +message Requirements { + Tee tee = 1; +} + message AwaitCapabilitiesRequest { repeated int32 ids = 1; } @@ -1201,6 +1223,7 @@ message CapabilityMetadata { sdk.v1alpha.Mode mode = 1; string capability_id = 2; map labels = 3; + bool tee_enabled = 4; } extend google.protobuf.ServiceOptions { diff --git a/cre/go/sdk/sdk.pb.go b/cre/go/sdk/sdk.pb.go index 3ab84306..a445ace5 100644 --- a/cre/go/sdk/sdk.pb.go +++ b/cre/go/sdk/sdk.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.6 +// protoc-gen-go v1.36.11 // protoc v5.29.3 // source: sdk/v1alpha/sdk.proto @@ -128,6 +128,49 @@ func (Mode) EnumDescriptor() ([]byte, []int) { return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{1} } +type TeeType int32 + +const ( + TeeType_TEE_TYPE_AWS_NITRO TeeType = 0 +) + +// Enum value maps for TeeType. +var ( + TeeType_name = map[int32]string{ + 0: "TEE_TYPE_AWS_NITRO", + } + TeeType_value = map[string]int32{ + "TEE_TYPE_AWS_NITRO": 0, + } +) + +func (x TeeType) Enum() *TeeType { + p := new(TeeType) + *p = x + return p +} + +func (x TeeType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (TeeType) Descriptor() protoreflect.EnumDescriptor { + return file_sdk_v1alpha_sdk_proto_enumTypes[2].Descriptor() +} + +func (TeeType) Type() protoreflect.EnumType { + return &file_sdk_v1alpha_sdk_proto_enumTypes[2] +} + +func (x TeeType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use TeeType.Descriptor instead. +func (TeeType) EnumDescriptor() ([]byte, []int) { + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{2} +} + type SimpleConsensusInputs struct { state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Observation: @@ -758,6 +801,132 @@ func (x *TriggerSubscription) GetMethod() string { return "" } +type TeeTypeSelection struct { + state protoimpl.MessageState `protogen:"open.v1"` + Types []TeeType `protobuf:"varint,1,rep,packed,name=types,proto3,enum=sdk.v1alpha.TeeType" json:"types,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TeeTypeSelection) Reset() { + *x = TeeTypeSelection{} + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TeeTypeSelection) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TeeTypeSelection) ProtoMessage() {} + +func (x *TeeTypeSelection) ProtoReflect() protoreflect.Message { + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TeeTypeSelection.ProtoReflect.Descriptor instead. +func (*TeeTypeSelection) Descriptor() ([]byte, []int) { + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{9} +} + +func (x *TeeTypeSelection) GetTypes() []TeeType { + if x != nil { + return x.Types + } + return nil +} + +type Tee struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Type: + // + // *Tee_Any + // *Tee_TypeSelection + Type isTee_Type `protobuf_oneof:"type"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Tee) Reset() { + *x = Tee{} + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Tee) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Tee) ProtoMessage() {} + +func (x *Tee) ProtoReflect() protoreflect.Message { + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Tee.ProtoReflect.Descriptor instead. +func (*Tee) Descriptor() ([]byte, []int) { + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{10} +} + +func (x *Tee) GetType() isTee_Type { + if x != nil { + return x.Type + } + return nil +} + +func (x *Tee) GetAny() *emptypb.Empty { + if x != nil { + if x, ok := x.Type.(*Tee_Any); ok { + return x.Any + } + } + return nil +} + +func (x *Tee) GetTypeSelection() *TeeTypeSelection { + if x != nil { + if x, ok := x.Type.(*Tee_TypeSelection); ok { + return x.TypeSelection + } + } + return nil +} + +type isTee_Type interface { + isTee_Type() +} + +type Tee_Any struct { + Any *emptypb.Empty `protobuf:"bytes,1,opt,name=any,proto3,oneof"` +} + +type Tee_TypeSelection struct { + TypeSelection *TeeTypeSelection `protobuf:"bytes,2,opt,name=type_selection,json=typeSelection,proto3,oneof"` +} + +func (*Tee_Any) isTee_Type() {} + +func (*Tee_TypeSelection) isTee_Type() {} + type TriggerSubscriptionRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Subscriptions []*TriggerSubscription `protobuf:"bytes,1,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"` @@ -767,7 +936,7 @@ type TriggerSubscriptionRequest struct { func (x *TriggerSubscriptionRequest) Reset() { *x = TriggerSubscriptionRequest{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[9] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -779,7 +948,7 @@ func (x *TriggerSubscriptionRequest) String() string { func (*TriggerSubscriptionRequest) ProtoMessage() {} func (x *TriggerSubscriptionRequest) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[9] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[11] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -792,7 +961,7 @@ func (x *TriggerSubscriptionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use TriggerSubscriptionRequest.ProtoReflect.Descriptor instead. func (*TriggerSubscriptionRequest) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{9} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{11} } func (x *TriggerSubscriptionRequest) GetSubscriptions() []*TriggerSubscription { @@ -812,7 +981,7 @@ type Trigger struct { func (x *Trigger) Reset() { *x = Trigger{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[10] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -824,7 +993,7 @@ func (x *Trigger) String() string { func (*Trigger) ProtoMessage() {} func (x *Trigger) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[10] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[12] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -837,7 +1006,7 @@ func (x *Trigger) ProtoReflect() protoreflect.Message { // Deprecated: Use Trigger.ProtoReflect.Descriptor instead. func (*Trigger) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{10} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{12} } func (x *Trigger) GetId() uint64 { @@ -854,6 +1023,50 @@ func (x *Trigger) GetPayload() *anypb.Any { return nil } +type Requirements struct { + state protoimpl.MessageState `protogen:"open.v1"` + Tee *Tee `protobuf:"bytes,1,opt,name=tee,proto3" json:"tee,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Requirements) Reset() { + *x = Requirements{} + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Requirements) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Requirements) ProtoMessage() {} + +func (x *Requirements) ProtoReflect() protoreflect.Message { + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Requirements.ProtoReflect.Descriptor instead. +func (*Requirements) Descriptor() ([]byte, []int) { + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{13} +} + +func (x *Requirements) GetTee() *Tee { + if x != nil { + return x.Tee + } + return nil +} + type AwaitCapabilitiesRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Ids []int32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` @@ -863,7 +1076,7 @@ type AwaitCapabilitiesRequest struct { func (x *AwaitCapabilitiesRequest) Reset() { *x = AwaitCapabilitiesRequest{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[11] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -875,7 +1088,7 @@ func (x *AwaitCapabilitiesRequest) String() string { func (*AwaitCapabilitiesRequest) ProtoMessage() {} func (x *AwaitCapabilitiesRequest) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[11] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[14] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -888,7 +1101,7 @@ func (x *AwaitCapabilitiesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use AwaitCapabilitiesRequest.ProtoReflect.Descriptor instead. func (*AwaitCapabilitiesRequest) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{11} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{14} } func (x *AwaitCapabilitiesRequest) GetIds() []int32 { @@ -907,7 +1120,7 @@ type AwaitCapabilitiesResponse struct { func (x *AwaitCapabilitiesResponse) Reset() { *x = AwaitCapabilitiesResponse{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[12] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -919,7 +1132,7 @@ func (x *AwaitCapabilitiesResponse) String() string { func (*AwaitCapabilitiesResponse) ProtoMessage() {} func (x *AwaitCapabilitiesResponse) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[12] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[15] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -932,7 +1145,7 @@ func (x *AwaitCapabilitiesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use AwaitCapabilitiesResponse.ProtoReflect.Descriptor instead. func (*AwaitCapabilitiesResponse) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{12} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{15} } func (x *AwaitCapabilitiesResponse) GetResponses() map[int32]*CapabilityResponse { @@ -957,7 +1170,7 @@ type ExecuteRequest struct { func (x *ExecuteRequest) Reset() { *x = ExecuteRequest{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[13] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -969,7 +1182,7 @@ func (x *ExecuteRequest) String() string { func (*ExecuteRequest) ProtoMessage() {} func (x *ExecuteRequest) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[13] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[16] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -982,7 +1195,7 @@ func (x *ExecuteRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ExecuteRequest.ProtoReflect.Descriptor instead. func (*ExecuteRequest) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{13} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{16} } func (x *ExecuteRequest) GetConfig() []byte { @@ -1054,7 +1267,7 @@ type ExecutionResult struct { func (x *ExecutionResult) Reset() { *x = ExecutionResult{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[14] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1066,7 +1279,7 @@ func (x *ExecutionResult) String() string { func (*ExecutionResult) ProtoMessage() {} func (x *ExecutionResult) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[14] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[17] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1079,7 +1292,7 @@ func (x *ExecutionResult) ProtoReflect() protoreflect.Message { // Deprecated: Use ExecutionResult.ProtoReflect.Descriptor instead. func (*ExecutionResult) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{14} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{17} } func (x *ExecutionResult) GetResult() isExecutionResult_Result { @@ -1148,7 +1361,7 @@ type GetSecretsRequest struct { func (x *GetSecretsRequest) Reset() { *x = GetSecretsRequest{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[15] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1160,7 +1373,7 @@ func (x *GetSecretsRequest) String() string { func (*GetSecretsRequest) ProtoMessage() {} func (x *GetSecretsRequest) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[15] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[18] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1173,7 +1386,7 @@ func (x *GetSecretsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSecretsRequest.ProtoReflect.Descriptor instead. func (*GetSecretsRequest) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{15} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{18} } func (x *GetSecretsRequest) GetRequests() []*SecretRequest { @@ -1199,7 +1412,7 @@ type AwaitSecretsRequest struct { func (x *AwaitSecretsRequest) Reset() { *x = AwaitSecretsRequest{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[16] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1211,7 +1424,7 @@ func (x *AwaitSecretsRequest) String() string { func (*AwaitSecretsRequest) ProtoMessage() {} func (x *AwaitSecretsRequest) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[16] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[19] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1224,7 +1437,7 @@ func (x *AwaitSecretsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use AwaitSecretsRequest.ProtoReflect.Descriptor instead. func (*AwaitSecretsRequest) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{16} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{19} } func (x *AwaitSecretsRequest) GetIds() []int32 { @@ -1243,7 +1456,7 @@ type AwaitSecretsResponse struct { func (x *AwaitSecretsResponse) Reset() { *x = AwaitSecretsResponse{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[17] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1255,7 +1468,7 @@ func (x *AwaitSecretsResponse) String() string { func (*AwaitSecretsResponse) ProtoMessage() {} func (x *AwaitSecretsResponse) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[17] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[20] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1268,7 +1481,7 @@ func (x *AwaitSecretsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use AwaitSecretsResponse.ProtoReflect.Descriptor instead. func (*AwaitSecretsResponse) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{17} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{20} } func (x *AwaitSecretsResponse) GetResponses() map[int32]*SecretResponses { @@ -1288,7 +1501,7 @@ type SecretRequest struct { func (x *SecretRequest) Reset() { *x = SecretRequest{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[18] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1300,7 +1513,7 @@ func (x *SecretRequest) String() string { func (*SecretRequest) ProtoMessage() {} func (x *SecretRequest) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[18] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[21] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1313,7 +1526,7 @@ func (x *SecretRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SecretRequest.ProtoReflect.Descriptor instead. func (*SecretRequest) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{18} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{21} } func (x *SecretRequest) GetId() string { @@ -1342,7 +1555,7 @@ type Secret struct { func (x *Secret) Reset() { *x = Secret{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[19] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1354,7 +1567,7 @@ func (x *Secret) String() string { func (*Secret) ProtoMessage() {} func (x *Secret) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[19] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[22] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1367,7 +1580,7 @@ func (x *Secret) ProtoReflect() protoreflect.Message { // Deprecated: Use Secret.ProtoReflect.Descriptor instead. func (*Secret) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{19} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{22} } func (x *Secret) GetId() string { @@ -1410,7 +1623,7 @@ type SecretError struct { func (x *SecretError) Reset() { *x = SecretError{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[20] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1422,7 +1635,7 @@ func (x *SecretError) String() string { func (*SecretError) ProtoMessage() {} func (x *SecretError) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[20] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[23] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1435,7 +1648,7 @@ func (x *SecretError) ProtoReflect() protoreflect.Message { // Deprecated: Use SecretError.ProtoReflect.Descriptor instead. func (*SecretError) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{20} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{23} } func (x *SecretError) GetId() string { @@ -1479,7 +1692,7 @@ type SecretResponse struct { func (x *SecretResponse) Reset() { *x = SecretResponse{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[21] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1491,7 +1704,7 @@ func (x *SecretResponse) String() string { func (*SecretResponse) ProtoMessage() {} func (x *SecretResponse) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[21] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[24] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1504,7 +1717,7 @@ func (x *SecretResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SecretResponse.ProtoReflect.Descriptor instead. func (*SecretResponse) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{21} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{24} } func (x *SecretResponse) GetResponse() isSecretResponse_Response { @@ -1557,7 +1770,7 @@ type SecretResponses struct { func (x *SecretResponses) Reset() { *x = SecretResponses{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[22] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1569,7 +1782,7 @@ func (x *SecretResponses) String() string { func (*SecretResponses) ProtoMessage() {} func (x *SecretResponses) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[22] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[25] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1582,7 +1795,7 @@ func (x *SecretResponses) ProtoReflect() protoreflect.Message { // Deprecated: Use SecretResponses.ProtoReflect.Descriptor instead. func (*SecretResponses) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{22} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{25} } func (x *SecretResponses) GetResponses() []*SecretResponse { @@ -1643,12 +1856,20 @@ const file_sdk_v1alpha_sdk_proto_rawDesc = "" + "\x13TriggerSubscription\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12.\n" + "\apayload\x18\x02 \x01(\v2\x14.google.protobuf.AnyR\apayload\x12\x16\n" + - "\x06method\x18\x03 \x01(\tR\x06method\"d\n" + + "\x06method\x18\x03 \x01(\tR\x06method\">\n" + + "\x10TeeTypeSelection\x12*\n" + + "\x05types\x18\x01 \x03(\x0e2\x14.sdk.v1alpha.TeeTypeR\x05types\"\x81\x01\n" + + "\x03Tee\x12*\n" + + "\x03any\x18\x01 \x01(\v2\x16.google.protobuf.EmptyH\x00R\x03any\x12F\n" + + "\x0etype_selection\x18\x02 \x01(\v2\x1d.sdk.v1alpha.TeeTypeSelectionH\x00R\rtypeSelectionB\x06\n" + + "\x04type\"d\n" + "\x1aTriggerSubscriptionRequest\x12F\n" + "\rsubscriptions\x18\x01 \x03(\v2 .sdk.v1alpha.TriggerSubscriptionR\rsubscriptions\"I\n" + "\aTrigger\x12\x0e\n" + "\x02id\x18\x01 \x01(\x04R\x02id\x12.\n" + - "\apayload\x18\x02 \x01(\v2\x14.google.protobuf.AnyR\apayload\",\n" + + "\apayload\x18\x02 \x01(\v2\x14.google.protobuf.AnyR\apayload\"2\n" + + "\fRequirements\x12\"\n" + + "\x03tee\x18\x01 \x01(\v2\x10.sdk.v1alpha.TeeR\x03tee\",\n" + "\x18AwaitCapabilitiesRequest\x12\x10\n" + "\x03ids\x18\x01 \x03(\x05R\x03ids\"\xcf\x01\n" + "\x19AwaitCapabilitiesResponse\x12S\n" + @@ -1707,7 +1928,9 @@ const file_sdk_v1alpha_sdk_proto_rawDesc = "" + "\x04Mode\x12\x14\n" + "\x10MODE_UNSPECIFIED\x10\x00\x12\f\n" + "\bMODE_DON\x10\x01\x12\r\n" + - "\tMODE_NODE\x10\x02b\x06proto3" + "\tMODE_NODE\x10\x02*!\n" + + "\aTeeType\x12\x16\n" + + "\x12TEE_TYPE_AWS_NITRO\x10\x00b\x06proto3" var ( file_sdk_v1alpha_sdk_proto_rawDescOnce sync.Once @@ -1721,72 +1944,80 @@ func file_sdk_v1alpha_sdk_proto_rawDescGZIP() []byte { return file_sdk_v1alpha_sdk_proto_rawDescData } -var file_sdk_v1alpha_sdk_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_sdk_v1alpha_sdk_proto_msgTypes = make([]protoimpl.MessageInfo, 26) +var file_sdk_v1alpha_sdk_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_sdk_v1alpha_sdk_proto_msgTypes = make([]protoimpl.MessageInfo, 29) var file_sdk_v1alpha_sdk_proto_goTypes = []any{ (AggregationType)(0), // 0: sdk.v1alpha.AggregationType (Mode)(0), // 1: sdk.v1alpha.Mode - (*SimpleConsensusInputs)(nil), // 2: sdk.v1alpha.SimpleConsensusInputs - (*FieldsMap)(nil), // 3: sdk.v1alpha.FieldsMap - (*ConsensusDescriptor)(nil), // 4: sdk.v1alpha.ConsensusDescriptor - (*ReportRequest)(nil), // 5: sdk.v1alpha.ReportRequest - (*ReportResponse)(nil), // 6: sdk.v1alpha.ReportResponse - (*AttributedSignature)(nil), // 7: sdk.v1alpha.AttributedSignature - (*CapabilityRequest)(nil), // 8: sdk.v1alpha.CapabilityRequest - (*CapabilityResponse)(nil), // 9: sdk.v1alpha.CapabilityResponse - (*TriggerSubscription)(nil), // 10: sdk.v1alpha.TriggerSubscription - (*TriggerSubscriptionRequest)(nil), // 11: sdk.v1alpha.TriggerSubscriptionRequest - (*Trigger)(nil), // 12: sdk.v1alpha.Trigger - (*AwaitCapabilitiesRequest)(nil), // 13: sdk.v1alpha.AwaitCapabilitiesRequest - (*AwaitCapabilitiesResponse)(nil), // 14: sdk.v1alpha.AwaitCapabilitiesResponse - (*ExecuteRequest)(nil), // 15: sdk.v1alpha.ExecuteRequest - (*ExecutionResult)(nil), // 16: sdk.v1alpha.ExecutionResult - (*GetSecretsRequest)(nil), // 17: sdk.v1alpha.GetSecretsRequest - (*AwaitSecretsRequest)(nil), // 18: sdk.v1alpha.AwaitSecretsRequest - (*AwaitSecretsResponse)(nil), // 19: sdk.v1alpha.AwaitSecretsResponse - (*SecretRequest)(nil), // 20: sdk.v1alpha.SecretRequest - (*Secret)(nil), // 21: sdk.v1alpha.Secret - (*SecretError)(nil), // 22: sdk.v1alpha.SecretError - (*SecretResponse)(nil), // 23: sdk.v1alpha.SecretResponse - (*SecretResponses)(nil), // 24: sdk.v1alpha.SecretResponses - nil, // 25: sdk.v1alpha.FieldsMap.FieldsEntry - nil, // 26: sdk.v1alpha.AwaitCapabilitiesResponse.ResponsesEntry - nil, // 27: sdk.v1alpha.AwaitSecretsResponse.ResponsesEntry - (*pb.Value)(nil), // 28: values.v1.Value - (*anypb.Any)(nil), // 29: google.protobuf.Any - (*emptypb.Empty)(nil), // 30: google.protobuf.Empty + (TeeType)(0), // 2: sdk.v1alpha.TeeType + (*SimpleConsensusInputs)(nil), // 3: sdk.v1alpha.SimpleConsensusInputs + (*FieldsMap)(nil), // 4: sdk.v1alpha.FieldsMap + (*ConsensusDescriptor)(nil), // 5: sdk.v1alpha.ConsensusDescriptor + (*ReportRequest)(nil), // 6: sdk.v1alpha.ReportRequest + (*ReportResponse)(nil), // 7: sdk.v1alpha.ReportResponse + (*AttributedSignature)(nil), // 8: sdk.v1alpha.AttributedSignature + (*CapabilityRequest)(nil), // 9: sdk.v1alpha.CapabilityRequest + (*CapabilityResponse)(nil), // 10: sdk.v1alpha.CapabilityResponse + (*TriggerSubscription)(nil), // 11: sdk.v1alpha.TriggerSubscription + (*TeeTypeSelection)(nil), // 12: sdk.v1alpha.TeeTypeSelection + (*Tee)(nil), // 13: sdk.v1alpha.Tee + (*TriggerSubscriptionRequest)(nil), // 14: sdk.v1alpha.TriggerSubscriptionRequest + (*Trigger)(nil), // 15: sdk.v1alpha.Trigger + (*Requirements)(nil), // 16: sdk.v1alpha.Requirements + (*AwaitCapabilitiesRequest)(nil), // 17: sdk.v1alpha.AwaitCapabilitiesRequest + (*AwaitCapabilitiesResponse)(nil), // 18: sdk.v1alpha.AwaitCapabilitiesResponse + (*ExecuteRequest)(nil), // 19: sdk.v1alpha.ExecuteRequest + (*ExecutionResult)(nil), // 20: sdk.v1alpha.ExecutionResult + (*GetSecretsRequest)(nil), // 21: sdk.v1alpha.GetSecretsRequest + (*AwaitSecretsRequest)(nil), // 22: sdk.v1alpha.AwaitSecretsRequest + (*AwaitSecretsResponse)(nil), // 23: sdk.v1alpha.AwaitSecretsResponse + (*SecretRequest)(nil), // 24: sdk.v1alpha.SecretRequest + (*Secret)(nil), // 25: sdk.v1alpha.Secret + (*SecretError)(nil), // 26: sdk.v1alpha.SecretError + (*SecretResponse)(nil), // 27: sdk.v1alpha.SecretResponse + (*SecretResponses)(nil), // 28: sdk.v1alpha.SecretResponses + nil, // 29: sdk.v1alpha.FieldsMap.FieldsEntry + nil, // 30: sdk.v1alpha.AwaitCapabilitiesResponse.ResponsesEntry + nil, // 31: sdk.v1alpha.AwaitSecretsResponse.ResponsesEntry + (*pb.Value)(nil), // 32: values.v1.Value + (*anypb.Any)(nil), // 33: google.protobuf.Any + (*emptypb.Empty)(nil), // 34: google.protobuf.Empty } var file_sdk_v1alpha_sdk_proto_depIdxs = []int32{ - 28, // 0: sdk.v1alpha.SimpleConsensusInputs.value:type_name -> values.v1.Value - 4, // 1: sdk.v1alpha.SimpleConsensusInputs.descriptors:type_name -> sdk.v1alpha.ConsensusDescriptor - 28, // 2: sdk.v1alpha.SimpleConsensusInputs.default:type_name -> values.v1.Value - 25, // 3: sdk.v1alpha.FieldsMap.fields:type_name -> sdk.v1alpha.FieldsMap.FieldsEntry + 32, // 0: sdk.v1alpha.SimpleConsensusInputs.value:type_name -> values.v1.Value + 5, // 1: sdk.v1alpha.SimpleConsensusInputs.descriptors:type_name -> sdk.v1alpha.ConsensusDescriptor + 32, // 2: sdk.v1alpha.SimpleConsensusInputs.default:type_name -> values.v1.Value + 29, // 3: sdk.v1alpha.FieldsMap.fields:type_name -> sdk.v1alpha.FieldsMap.FieldsEntry 0, // 4: sdk.v1alpha.ConsensusDescriptor.aggregation:type_name -> sdk.v1alpha.AggregationType - 3, // 5: sdk.v1alpha.ConsensusDescriptor.fields_map:type_name -> sdk.v1alpha.FieldsMap - 7, // 6: sdk.v1alpha.ReportResponse.sigs:type_name -> sdk.v1alpha.AttributedSignature - 29, // 7: sdk.v1alpha.CapabilityRequest.payload:type_name -> google.protobuf.Any - 29, // 8: sdk.v1alpha.CapabilityResponse.payload:type_name -> google.protobuf.Any - 29, // 9: sdk.v1alpha.TriggerSubscription.payload:type_name -> google.protobuf.Any - 10, // 10: sdk.v1alpha.TriggerSubscriptionRequest.subscriptions:type_name -> sdk.v1alpha.TriggerSubscription - 29, // 11: sdk.v1alpha.Trigger.payload:type_name -> google.protobuf.Any - 26, // 12: sdk.v1alpha.AwaitCapabilitiesResponse.responses:type_name -> sdk.v1alpha.AwaitCapabilitiesResponse.ResponsesEntry - 30, // 13: sdk.v1alpha.ExecuteRequest.subscribe:type_name -> google.protobuf.Empty - 12, // 14: sdk.v1alpha.ExecuteRequest.trigger:type_name -> sdk.v1alpha.Trigger - 28, // 15: sdk.v1alpha.ExecutionResult.value:type_name -> values.v1.Value - 11, // 16: sdk.v1alpha.ExecutionResult.trigger_subscriptions:type_name -> sdk.v1alpha.TriggerSubscriptionRequest - 20, // 17: sdk.v1alpha.GetSecretsRequest.requests:type_name -> sdk.v1alpha.SecretRequest - 27, // 18: sdk.v1alpha.AwaitSecretsResponse.responses:type_name -> sdk.v1alpha.AwaitSecretsResponse.ResponsesEntry - 21, // 19: sdk.v1alpha.SecretResponse.secret:type_name -> sdk.v1alpha.Secret - 22, // 20: sdk.v1alpha.SecretResponse.error:type_name -> sdk.v1alpha.SecretError - 23, // 21: sdk.v1alpha.SecretResponses.responses:type_name -> sdk.v1alpha.SecretResponse - 4, // 22: sdk.v1alpha.FieldsMap.FieldsEntry.value:type_name -> sdk.v1alpha.ConsensusDescriptor - 9, // 23: sdk.v1alpha.AwaitCapabilitiesResponse.ResponsesEntry.value:type_name -> sdk.v1alpha.CapabilityResponse - 24, // 24: sdk.v1alpha.AwaitSecretsResponse.ResponsesEntry.value:type_name -> sdk.v1alpha.SecretResponses - 25, // [25:25] is the sub-list for method output_type - 25, // [25:25] is the sub-list for method input_type - 25, // [25:25] is the sub-list for extension type_name - 25, // [25:25] is the sub-list for extension extendee - 0, // [0:25] is the sub-list for field type_name + 4, // 5: sdk.v1alpha.ConsensusDescriptor.fields_map:type_name -> sdk.v1alpha.FieldsMap + 8, // 6: sdk.v1alpha.ReportResponse.sigs:type_name -> sdk.v1alpha.AttributedSignature + 33, // 7: sdk.v1alpha.CapabilityRequest.payload:type_name -> google.protobuf.Any + 33, // 8: sdk.v1alpha.CapabilityResponse.payload:type_name -> google.protobuf.Any + 33, // 9: sdk.v1alpha.TriggerSubscription.payload:type_name -> google.protobuf.Any + 2, // 10: sdk.v1alpha.TeeTypeSelection.types:type_name -> sdk.v1alpha.TeeType + 34, // 11: sdk.v1alpha.Tee.any:type_name -> google.protobuf.Empty + 12, // 12: sdk.v1alpha.Tee.type_selection:type_name -> sdk.v1alpha.TeeTypeSelection + 11, // 13: sdk.v1alpha.TriggerSubscriptionRequest.subscriptions:type_name -> sdk.v1alpha.TriggerSubscription + 33, // 14: sdk.v1alpha.Trigger.payload:type_name -> google.protobuf.Any + 13, // 15: sdk.v1alpha.Requirements.tee:type_name -> sdk.v1alpha.Tee + 30, // 16: sdk.v1alpha.AwaitCapabilitiesResponse.responses:type_name -> sdk.v1alpha.AwaitCapabilitiesResponse.ResponsesEntry + 34, // 17: sdk.v1alpha.ExecuteRequest.subscribe:type_name -> google.protobuf.Empty + 15, // 18: sdk.v1alpha.ExecuteRequest.trigger:type_name -> sdk.v1alpha.Trigger + 32, // 19: sdk.v1alpha.ExecutionResult.value:type_name -> values.v1.Value + 14, // 20: sdk.v1alpha.ExecutionResult.trigger_subscriptions:type_name -> sdk.v1alpha.TriggerSubscriptionRequest + 24, // 21: sdk.v1alpha.GetSecretsRequest.requests:type_name -> sdk.v1alpha.SecretRequest + 31, // 22: sdk.v1alpha.AwaitSecretsResponse.responses:type_name -> sdk.v1alpha.AwaitSecretsResponse.ResponsesEntry + 25, // 23: sdk.v1alpha.SecretResponse.secret:type_name -> sdk.v1alpha.Secret + 26, // 24: sdk.v1alpha.SecretResponse.error:type_name -> sdk.v1alpha.SecretError + 27, // 25: sdk.v1alpha.SecretResponses.responses:type_name -> sdk.v1alpha.SecretResponse + 5, // 26: sdk.v1alpha.FieldsMap.FieldsEntry.value:type_name -> sdk.v1alpha.ConsensusDescriptor + 10, // 27: sdk.v1alpha.AwaitCapabilitiesResponse.ResponsesEntry.value:type_name -> sdk.v1alpha.CapabilityResponse + 28, // 28: sdk.v1alpha.AwaitSecretsResponse.ResponsesEntry.value:type_name -> sdk.v1alpha.SecretResponses + 29, // [29:29] is the sub-list for method output_type + 29, // [29:29] is the sub-list for method input_type + 29, // [29:29] is the sub-list for extension type_name + 29, // [29:29] is the sub-list for extension extendee + 0, // [0:29] is the sub-list for field type_name } func init() { file_sdk_v1alpha_sdk_proto_init() } @@ -1806,16 +2037,20 @@ func file_sdk_v1alpha_sdk_proto_init() { (*CapabilityResponse_Payload)(nil), (*CapabilityResponse_Error)(nil), } - file_sdk_v1alpha_sdk_proto_msgTypes[13].OneofWrappers = []any{ + file_sdk_v1alpha_sdk_proto_msgTypes[10].OneofWrappers = []any{ + (*Tee_Any)(nil), + (*Tee_TypeSelection)(nil), + } + file_sdk_v1alpha_sdk_proto_msgTypes[16].OneofWrappers = []any{ (*ExecuteRequest_Subscribe)(nil), (*ExecuteRequest_Trigger)(nil), } - file_sdk_v1alpha_sdk_proto_msgTypes[14].OneofWrappers = []any{ + file_sdk_v1alpha_sdk_proto_msgTypes[17].OneofWrappers = []any{ (*ExecutionResult_Value)(nil), (*ExecutionResult_Error)(nil), (*ExecutionResult_TriggerSubscriptions)(nil), } - file_sdk_v1alpha_sdk_proto_msgTypes[21].OneofWrappers = []any{ + file_sdk_v1alpha_sdk_proto_msgTypes[24].OneofWrappers = []any{ (*SecretResponse_Secret)(nil), (*SecretResponse_Error)(nil), } @@ -1824,8 +2059,8 @@ func file_sdk_v1alpha_sdk_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_sdk_v1alpha_sdk_proto_rawDesc), len(file_sdk_v1alpha_sdk_proto_rawDesc)), - NumEnums: 2, - NumMessages: 26, + NumEnums: 3, + NumMessages: 29, NumExtensions: 0, NumServices: 0, }, diff --git a/cre/go/tools/generator/cre_metadata.pb.go b/cre/go/tools/generator/cre_metadata.pb.go index 7026ea3f..d6a04c28 100644 --- a/cre/go/tools/generator/cre_metadata.pb.go +++ b/cre/go/tools/generator/cre_metadata.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.6 +// protoc-gen-go v1.36.11 // protoc v5.29.3 // source: tools/generator/v1alpha/cre_metadata.proto @@ -378,6 +378,7 @@ type CapabilityMetadata struct { Mode sdk.Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=sdk.v1alpha.Mode" json:"mode,omitempty"` CapabilityId string `protobuf:"bytes,2,opt,name=capability_id,json=capabilityId,proto3" json:"capability_id,omitempty"` Labels map[string]*Label `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + TeeEnabled bool `protobuf:"varint,4,opt,name=tee_enabled,json=teeEnabled,proto3" json:"tee_enabled,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -433,6 +434,13 @@ func (x *CapabilityMetadata) GetLabels() map[string]*Label { return nil } +func (x *CapabilityMetadata) GetTeeEnabled() bool { + if x != nil { + return x.TeeEnabled + } + return false +} + type CapabilityMethodMetadata struct { state protoimpl.MessageState `protogen:"open.v1"` MapToUntypedApi bool `protobuf:"varint,1,opt,name=map_to_untyped_api,json=mapToUntypedApi,proto3" json:"map_to_untyped_api,omitempty"` @@ -548,11 +556,13 @@ const file_tools_generator_v1alpha_cre_metadata_proto_rawDesc = "" + "\fuint32_label\x18\x04 \x01(\v2$.tools.generator.v1alpha.Uint32LabelH\x00R\vuint32Label\x12F\n" + "\vint32_label\x18\x05 \x01(\v2#.tools.generator.v1alpha.Int32LabelH\x00R\n" + "int32LabelB\x06\n" + - "\x04kind\"\x8c\x02\n" + + "\x04kind\"\xad\x02\n" + "\x12CapabilityMetadata\x12%\n" + "\x04mode\x18\x01 \x01(\x0e2\x11.sdk.v1alpha.ModeR\x04mode\x12#\n" + "\rcapability_id\x18\x02 \x01(\tR\fcapabilityId\x12O\n" + - "\x06labels\x18\x03 \x03(\v27.tools.generator.v1alpha.CapabilityMetadata.LabelsEntryR\x06labels\x1aY\n" + + "\x06labels\x18\x03 \x03(\v27.tools.generator.v1alpha.CapabilityMetadata.LabelsEntryR\x06labels\x12\x1f\n" + + "\vtee_enabled\x18\x04 \x01(\bR\n" + + "teeEnabled\x1aY\n" + "\vLabelsEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x124\n" + "\x05value\x18\x02 \x01(\v2\x1e.tools.generator.v1alpha.LabelR\x05value:\x028\x01\"G\n" + diff --git a/cre/go/values/pb/values.pb.go b/cre/go/values/pb/values.pb.go index 743cba4c..7e8fcb1e 100644 --- a/cre/go/values/pb/values.pb.go +++ b/cre/go/values/pb/values.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.6 +// protoc-gen-go v1.36.11 // protoc v5.29.3 // source: values/v1/values.proto diff --git a/cre/sdk/v1alpha/sdk.proto b/cre/sdk/v1alpha/sdk.proto index 4be81f5e..42137502 100644 --- a/cre/sdk/v1alpha/sdk.proto +++ b/cre/sdk/v1alpha/sdk.proto @@ -80,6 +80,22 @@ message TriggerSubscription { string method = 3; } +enum TeeType { + TEE_TYPE_AWS_NITRO = 0; +} + + +message TeeTypeSelection { + repeated TeeType types = 1; +} + +message Tee { + oneof type { + google.protobuf.Empty any = 1; + TeeTypeSelection type_selection = 2; + } +} + message TriggerSubscriptionRequest { repeated TriggerSubscription subscriptions = 1; } @@ -89,6 +105,10 @@ message Trigger { google.protobuf.Any payload = 2; } +message Requirements { + Tee tee = 1; +} + message AwaitCapabilitiesRequest { repeated int32 ids = 1; } diff --git a/cre/tools/generator/v1alpha/cre_metadata.proto b/cre/tools/generator/v1alpha/cre_metadata.proto index cc947db8..3c438784 100644 --- a/cre/tools/generator/v1alpha/cre_metadata.proto +++ b/cre/tools/generator/v1alpha/cre_metadata.proto @@ -39,6 +39,7 @@ message CapabilityMetadata { sdk.v1alpha.Mode mode = 1; string capability_id = 2; map labels = 3; + bool tee_enabled = 4; } extend google.protobuf.ServiceOptions { From 2c8da85a337a505de0990c96f688716963bcd95b Mon Sep 17 00:00:00 2001 From: Ryan Tinianov Date: Tue, 21 Apr 2026 15:43:00 -0400 Subject: [PATCH 19/27] Add regions to TEE --- cre/go/installer/pkg/embedded_gen.go | 6 +- cre/go/sdk/sdk.pb.go | 512 +++++++++++++++++----- cre/go/tools/generator/cre_metadata.pb.go | 14 +- cre/sdk/v1alpha/sdk.proto | 6 +- 4 files changed, 424 insertions(+), 114 deletions(-) diff --git a/cre/go/installer/pkg/embedded_gen.go b/cre/go/installer/pkg/embedded_gen.go index 7e399e3d..abe7310a 100755 --- a/cre/go/installer/pkg/embedded_gen.go +++ b/cre/go/installer/pkg/embedded_gen.go @@ -1570,9 +1570,13 @@ enum TeeType { TEE_TYPE_AWS_NITRO = 0; } +message TeeTypeAndRegions { + TeeType type = 1; + repeated string regions = 2; +} message TeeTypeSelection { - repeated TeeType types = 1; + repeated TeeTypeAndRegions types = 1; } message Tee { diff --git a/cre/go/sdk/sdk.pb.go b/cre/go/sdk/sdk.pb.go index 3ab84306..7c007f18 100644 --- a/cre/go/sdk/sdk.pb.go +++ b/cre/go/sdk/sdk.pb.go @@ -128,6 +128,49 @@ func (Mode) EnumDescriptor() ([]byte, []int) { return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{1} } +type TeeType int32 + +const ( + TeeType_TEE_TYPE_AWS_NITRO TeeType = 0 +) + +// Enum value maps for TeeType. +var ( + TeeType_name = map[int32]string{ + 0: "TEE_TYPE_AWS_NITRO", + } + TeeType_value = map[string]int32{ + "TEE_TYPE_AWS_NITRO": 0, + } +) + +func (x TeeType) Enum() *TeeType { + p := new(TeeType) + *p = x + return p +} + +func (x TeeType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (TeeType) Descriptor() protoreflect.EnumDescriptor { + return file_sdk_v1alpha_sdk_proto_enumTypes[2].Descriptor() +} + +func (TeeType) Type() protoreflect.EnumType { + return &file_sdk_v1alpha_sdk_proto_enumTypes[2] +} + +func (x TeeType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use TeeType.Descriptor instead. +func (TeeType) EnumDescriptor() ([]byte, []int) { + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{2} +} + type SimpleConsensusInputs struct { state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Observation: @@ -758,6 +801,184 @@ func (x *TriggerSubscription) GetMethod() string { return "" } +type TeeTypeAndRegions struct { + state protoimpl.MessageState `protogen:"open.v1"` + Type TeeType `protobuf:"varint,1,opt,name=type,proto3,enum=sdk.v1alpha.TeeType" json:"type,omitempty"` + Regions []string `protobuf:"bytes,2,rep,name=regions,proto3" json:"regions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TeeTypeAndRegions) Reset() { + *x = TeeTypeAndRegions{} + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TeeTypeAndRegions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TeeTypeAndRegions) ProtoMessage() {} + +func (x *TeeTypeAndRegions) ProtoReflect() protoreflect.Message { + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TeeTypeAndRegions.ProtoReflect.Descriptor instead. +func (*TeeTypeAndRegions) Descriptor() ([]byte, []int) { + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{9} +} + +func (x *TeeTypeAndRegions) GetType() TeeType { + if x != nil { + return x.Type + } + return TeeType_TEE_TYPE_AWS_NITRO +} + +func (x *TeeTypeAndRegions) GetRegions() []string { + if x != nil { + return x.Regions + } + return nil +} + +type TeeTypeSelection struct { + state protoimpl.MessageState `protogen:"open.v1"` + Types []*TeeTypeAndRegions `protobuf:"bytes,1,rep,name=types,proto3" json:"types,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TeeTypeSelection) Reset() { + *x = TeeTypeSelection{} + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TeeTypeSelection) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TeeTypeSelection) ProtoMessage() {} + +func (x *TeeTypeSelection) ProtoReflect() protoreflect.Message { + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TeeTypeSelection.ProtoReflect.Descriptor instead. +func (*TeeTypeSelection) Descriptor() ([]byte, []int) { + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{10} +} + +func (x *TeeTypeSelection) GetTypes() []*TeeTypeAndRegions { + if x != nil { + return x.Types + } + return nil +} + +type Tee struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Type: + // + // *Tee_Any + // *Tee_TypeSelection + Type isTee_Type `protobuf_oneof:"type"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Tee) Reset() { + *x = Tee{} + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Tee) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Tee) ProtoMessage() {} + +func (x *Tee) ProtoReflect() protoreflect.Message { + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Tee.ProtoReflect.Descriptor instead. +func (*Tee) Descriptor() ([]byte, []int) { + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{11} +} + +func (x *Tee) GetType() isTee_Type { + if x != nil { + return x.Type + } + return nil +} + +func (x *Tee) GetAny() *emptypb.Empty { + if x != nil { + if x, ok := x.Type.(*Tee_Any); ok { + return x.Any + } + } + return nil +} + +func (x *Tee) GetTypeSelection() *TeeTypeSelection { + if x != nil { + if x, ok := x.Type.(*Tee_TypeSelection); ok { + return x.TypeSelection + } + } + return nil +} + +type isTee_Type interface { + isTee_Type() +} + +type Tee_Any struct { + Any *emptypb.Empty `protobuf:"bytes,1,opt,name=any,proto3,oneof"` +} + +type Tee_TypeSelection struct { + TypeSelection *TeeTypeSelection `protobuf:"bytes,2,opt,name=type_selection,json=typeSelection,proto3,oneof"` +} + +func (*Tee_Any) isTee_Type() {} + +func (*Tee_TypeSelection) isTee_Type() {} + type TriggerSubscriptionRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Subscriptions []*TriggerSubscription `protobuf:"bytes,1,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"` @@ -767,7 +988,7 @@ type TriggerSubscriptionRequest struct { func (x *TriggerSubscriptionRequest) Reset() { *x = TriggerSubscriptionRequest{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[9] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -779,7 +1000,7 @@ func (x *TriggerSubscriptionRequest) String() string { func (*TriggerSubscriptionRequest) ProtoMessage() {} func (x *TriggerSubscriptionRequest) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[9] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[12] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -792,7 +1013,7 @@ func (x *TriggerSubscriptionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use TriggerSubscriptionRequest.ProtoReflect.Descriptor instead. func (*TriggerSubscriptionRequest) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{9} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{12} } func (x *TriggerSubscriptionRequest) GetSubscriptions() []*TriggerSubscription { @@ -812,7 +1033,7 @@ type Trigger struct { func (x *Trigger) Reset() { *x = Trigger{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[10] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -824,7 +1045,7 @@ func (x *Trigger) String() string { func (*Trigger) ProtoMessage() {} func (x *Trigger) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[10] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[13] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -837,7 +1058,7 @@ func (x *Trigger) ProtoReflect() protoreflect.Message { // Deprecated: Use Trigger.ProtoReflect.Descriptor instead. func (*Trigger) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{10} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{13} } func (x *Trigger) GetId() uint64 { @@ -854,6 +1075,50 @@ func (x *Trigger) GetPayload() *anypb.Any { return nil } +type Requirements struct { + state protoimpl.MessageState `protogen:"open.v1"` + Tee *Tee `protobuf:"bytes,1,opt,name=tee,proto3" json:"tee,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Requirements) Reset() { + *x = Requirements{} + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Requirements) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Requirements) ProtoMessage() {} + +func (x *Requirements) ProtoReflect() protoreflect.Message { + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Requirements.ProtoReflect.Descriptor instead. +func (*Requirements) Descriptor() ([]byte, []int) { + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{14} +} + +func (x *Requirements) GetTee() *Tee { + if x != nil { + return x.Tee + } + return nil +} + type AwaitCapabilitiesRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Ids []int32 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` @@ -863,7 +1128,7 @@ type AwaitCapabilitiesRequest struct { func (x *AwaitCapabilitiesRequest) Reset() { *x = AwaitCapabilitiesRequest{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[11] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -875,7 +1140,7 @@ func (x *AwaitCapabilitiesRequest) String() string { func (*AwaitCapabilitiesRequest) ProtoMessage() {} func (x *AwaitCapabilitiesRequest) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[11] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[15] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -888,7 +1153,7 @@ func (x *AwaitCapabilitiesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use AwaitCapabilitiesRequest.ProtoReflect.Descriptor instead. func (*AwaitCapabilitiesRequest) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{11} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{15} } func (x *AwaitCapabilitiesRequest) GetIds() []int32 { @@ -907,7 +1172,7 @@ type AwaitCapabilitiesResponse struct { func (x *AwaitCapabilitiesResponse) Reset() { *x = AwaitCapabilitiesResponse{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[12] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -919,7 +1184,7 @@ func (x *AwaitCapabilitiesResponse) String() string { func (*AwaitCapabilitiesResponse) ProtoMessage() {} func (x *AwaitCapabilitiesResponse) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[12] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[16] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -932,7 +1197,7 @@ func (x *AwaitCapabilitiesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use AwaitCapabilitiesResponse.ProtoReflect.Descriptor instead. func (*AwaitCapabilitiesResponse) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{12} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{16} } func (x *AwaitCapabilitiesResponse) GetResponses() map[int32]*CapabilityResponse { @@ -957,7 +1222,7 @@ type ExecuteRequest struct { func (x *ExecuteRequest) Reset() { *x = ExecuteRequest{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[13] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -969,7 +1234,7 @@ func (x *ExecuteRequest) String() string { func (*ExecuteRequest) ProtoMessage() {} func (x *ExecuteRequest) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[13] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[17] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -982,7 +1247,7 @@ func (x *ExecuteRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ExecuteRequest.ProtoReflect.Descriptor instead. func (*ExecuteRequest) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{13} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{17} } func (x *ExecuteRequest) GetConfig() []byte { @@ -1054,7 +1319,7 @@ type ExecutionResult struct { func (x *ExecutionResult) Reset() { *x = ExecutionResult{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[14] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1066,7 +1331,7 @@ func (x *ExecutionResult) String() string { func (*ExecutionResult) ProtoMessage() {} func (x *ExecutionResult) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[14] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[18] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1079,7 +1344,7 @@ func (x *ExecutionResult) ProtoReflect() protoreflect.Message { // Deprecated: Use ExecutionResult.ProtoReflect.Descriptor instead. func (*ExecutionResult) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{14} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{18} } func (x *ExecutionResult) GetResult() isExecutionResult_Result { @@ -1148,7 +1413,7 @@ type GetSecretsRequest struct { func (x *GetSecretsRequest) Reset() { *x = GetSecretsRequest{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[15] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1160,7 +1425,7 @@ func (x *GetSecretsRequest) String() string { func (*GetSecretsRequest) ProtoMessage() {} func (x *GetSecretsRequest) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[15] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[19] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1173,7 +1438,7 @@ func (x *GetSecretsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSecretsRequest.ProtoReflect.Descriptor instead. func (*GetSecretsRequest) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{15} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{19} } func (x *GetSecretsRequest) GetRequests() []*SecretRequest { @@ -1199,7 +1464,7 @@ type AwaitSecretsRequest struct { func (x *AwaitSecretsRequest) Reset() { *x = AwaitSecretsRequest{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[16] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1211,7 +1476,7 @@ func (x *AwaitSecretsRequest) String() string { func (*AwaitSecretsRequest) ProtoMessage() {} func (x *AwaitSecretsRequest) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[16] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[20] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1224,7 +1489,7 @@ func (x *AwaitSecretsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use AwaitSecretsRequest.ProtoReflect.Descriptor instead. func (*AwaitSecretsRequest) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{16} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{20} } func (x *AwaitSecretsRequest) GetIds() []int32 { @@ -1243,7 +1508,7 @@ type AwaitSecretsResponse struct { func (x *AwaitSecretsResponse) Reset() { *x = AwaitSecretsResponse{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[17] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1255,7 +1520,7 @@ func (x *AwaitSecretsResponse) String() string { func (*AwaitSecretsResponse) ProtoMessage() {} func (x *AwaitSecretsResponse) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[17] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[21] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1268,7 +1533,7 @@ func (x *AwaitSecretsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use AwaitSecretsResponse.ProtoReflect.Descriptor instead. func (*AwaitSecretsResponse) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{17} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{21} } func (x *AwaitSecretsResponse) GetResponses() map[int32]*SecretResponses { @@ -1288,7 +1553,7 @@ type SecretRequest struct { func (x *SecretRequest) Reset() { *x = SecretRequest{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[18] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1300,7 +1565,7 @@ func (x *SecretRequest) String() string { func (*SecretRequest) ProtoMessage() {} func (x *SecretRequest) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[18] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[22] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1313,7 +1578,7 @@ func (x *SecretRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SecretRequest.ProtoReflect.Descriptor instead. func (*SecretRequest) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{18} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{22} } func (x *SecretRequest) GetId() string { @@ -1342,7 +1607,7 @@ type Secret struct { func (x *Secret) Reset() { *x = Secret{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[19] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1354,7 +1619,7 @@ func (x *Secret) String() string { func (*Secret) ProtoMessage() {} func (x *Secret) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[19] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[23] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1367,7 +1632,7 @@ func (x *Secret) ProtoReflect() protoreflect.Message { // Deprecated: Use Secret.ProtoReflect.Descriptor instead. func (*Secret) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{19} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{23} } func (x *Secret) GetId() string { @@ -1410,7 +1675,7 @@ type SecretError struct { func (x *SecretError) Reset() { *x = SecretError{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[20] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1422,7 +1687,7 @@ func (x *SecretError) String() string { func (*SecretError) ProtoMessage() {} func (x *SecretError) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[20] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[24] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1435,7 +1700,7 @@ func (x *SecretError) ProtoReflect() protoreflect.Message { // Deprecated: Use SecretError.ProtoReflect.Descriptor instead. func (*SecretError) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{20} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{24} } func (x *SecretError) GetId() string { @@ -1479,7 +1744,7 @@ type SecretResponse struct { func (x *SecretResponse) Reset() { *x = SecretResponse{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[21] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1491,7 +1756,7 @@ func (x *SecretResponse) String() string { func (*SecretResponse) ProtoMessage() {} func (x *SecretResponse) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[21] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[25] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1504,7 +1769,7 @@ func (x *SecretResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SecretResponse.ProtoReflect.Descriptor instead. func (*SecretResponse) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{21} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{25} } func (x *SecretResponse) GetResponse() isSecretResponse_Response { @@ -1557,7 +1822,7 @@ type SecretResponses struct { func (x *SecretResponses) Reset() { *x = SecretResponses{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[22] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1569,7 +1834,7 @@ func (x *SecretResponses) String() string { func (*SecretResponses) ProtoMessage() {} func (x *SecretResponses) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[22] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[26] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1582,7 +1847,7 @@ func (x *SecretResponses) ProtoReflect() protoreflect.Message { // Deprecated: Use SecretResponses.ProtoReflect.Descriptor instead. func (*SecretResponses) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{22} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{26} } func (x *SecretResponses) GetResponses() []*SecretResponse { @@ -1643,12 +1908,23 @@ const file_sdk_v1alpha_sdk_proto_rawDesc = "" + "\x13TriggerSubscription\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12.\n" + "\apayload\x18\x02 \x01(\v2\x14.google.protobuf.AnyR\apayload\x12\x16\n" + - "\x06method\x18\x03 \x01(\tR\x06method\"d\n" + + "\x06method\x18\x03 \x01(\tR\x06method\"W\n" + + "\x11TeeTypeAndRegions\x12(\n" + + "\x04type\x18\x01 \x01(\x0e2\x14.sdk.v1alpha.TeeTypeR\x04type\x12\x18\n" + + "\aregions\x18\x02 \x03(\tR\aregions\"H\n" + + "\x10TeeTypeSelection\x124\n" + + "\x05types\x18\x01 \x03(\v2\x1e.sdk.v1alpha.TeeTypeAndRegionsR\x05types\"\x81\x01\n" + + "\x03Tee\x12*\n" + + "\x03any\x18\x01 \x01(\v2\x16.google.protobuf.EmptyH\x00R\x03any\x12F\n" + + "\x0etype_selection\x18\x02 \x01(\v2\x1d.sdk.v1alpha.TeeTypeSelectionH\x00R\rtypeSelectionB\x06\n" + + "\x04type\"d\n" + "\x1aTriggerSubscriptionRequest\x12F\n" + "\rsubscriptions\x18\x01 \x03(\v2 .sdk.v1alpha.TriggerSubscriptionR\rsubscriptions\"I\n" + "\aTrigger\x12\x0e\n" + "\x02id\x18\x01 \x01(\x04R\x02id\x12.\n" + - "\apayload\x18\x02 \x01(\v2\x14.google.protobuf.AnyR\apayload\",\n" + + "\apayload\x18\x02 \x01(\v2\x14.google.protobuf.AnyR\apayload\"2\n" + + "\fRequirements\x12\"\n" + + "\x03tee\x18\x01 \x01(\v2\x10.sdk.v1alpha.TeeR\x03tee\",\n" + "\x18AwaitCapabilitiesRequest\x12\x10\n" + "\x03ids\x18\x01 \x03(\x05R\x03ids\"\xcf\x01\n" + "\x19AwaitCapabilitiesResponse\x12S\n" + @@ -1707,7 +1983,9 @@ const file_sdk_v1alpha_sdk_proto_rawDesc = "" + "\x04Mode\x12\x14\n" + "\x10MODE_UNSPECIFIED\x10\x00\x12\f\n" + "\bMODE_DON\x10\x01\x12\r\n" + - "\tMODE_NODE\x10\x02b\x06proto3" + "\tMODE_NODE\x10\x02*!\n" + + "\aTeeType\x12\x16\n" + + "\x12TEE_TYPE_AWS_NITRO\x10\x00b\x06proto3" var ( file_sdk_v1alpha_sdk_proto_rawDescOnce sync.Once @@ -1721,72 +1999,82 @@ func file_sdk_v1alpha_sdk_proto_rawDescGZIP() []byte { return file_sdk_v1alpha_sdk_proto_rawDescData } -var file_sdk_v1alpha_sdk_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_sdk_v1alpha_sdk_proto_msgTypes = make([]protoimpl.MessageInfo, 26) +var file_sdk_v1alpha_sdk_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_sdk_v1alpha_sdk_proto_msgTypes = make([]protoimpl.MessageInfo, 30) var file_sdk_v1alpha_sdk_proto_goTypes = []any{ (AggregationType)(0), // 0: sdk.v1alpha.AggregationType (Mode)(0), // 1: sdk.v1alpha.Mode - (*SimpleConsensusInputs)(nil), // 2: sdk.v1alpha.SimpleConsensusInputs - (*FieldsMap)(nil), // 3: sdk.v1alpha.FieldsMap - (*ConsensusDescriptor)(nil), // 4: sdk.v1alpha.ConsensusDescriptor - (*ReportRequest)(nil), // 5: sdk.v1alpha.ReportRequest - (*ReportResponse)(nil), // 6: sdk.v1alpha.ReportResponse - (*AttributedSignature)(nil), // 7: sdk.v1alpha.AttributedSignature - (*CapabilityRequest)(nil), // 8: sdk.v1alpha.CapabilityRequest - (*CapabilityResponse)(nil), // 9: sdk.v1alpha.CapabilityResponse - (*TriggerSubscription)(nil), // 10: sdk.v1alpha.TriggerSubscription - (*TriggerSubscriptionRequest)(nil), // 11: sdk.v1alpha.TriggerSubscriptionRequest - (*Trigger)(nil), // 12: sdk.v1alpha.Trigger - (*AwaitCapabilitiesRequest)(nil), // 13: sdk.v1alpha.AwaitCapabilitiesRequest - (*AwaitCapabilitiesResponse)(nil), // 14: sdk.v1alpha.AwaitCapabilitiesResponse - (*ExecuteRequest)(nil), // 15: sdk.v1alpha.ExecuteRequest - (*ExecutionResult)(nil), // 16: sdk.v1alpha.ExecutionResult - (*GetSecretsRequest)(nil), // 17: sdk.v1alpha.GetSecretsRequest - (*AwaitSecretsRequest)(nil), // 18: sdk.v1alpha.AwaitSecretsRequest - (*AwaitSecretsResponse)(nil), // 19: sdk.v1alpha.AwaitSecretsResponse - (*SecretRequest)(nil), // 20: sdk.v1alpha.SecretRequest - (*Secret)(nil), // 21: sdk.v1alpha.Secret - (*SecretError)(nil), // 22: sdk.v1alpha.SecretError - (*SecretResponse)(nil), // 23: sdk.v1alpha.SecretResponse - (*SecretResponses)(nil), // 24: sdk.v1alpha.SecretResponses - nil, // 25: sdk.v1alpha.FieldsMap.FieldsEntry - nil, // 26: sdk.v1alpha.AwaitCapabilitiesResponse.ResponsesEntry - nil, // 27: sdk.v1alpha.AwaitSecretsResponse.ResponsesEntry - (*pb.Value)(nil), // 28: values.v1.Value - (*anypb.Any)(nil), // 29: google.protobuf.Any - (*emptypb.Empty)(nil), // 30: google.protobuf.Empty + (TeeType)(0), // 2: sdk.v1alpha.TeeType + (*SimpleConsensusInputs)(nil), // 3: sdk.v1alpha.SimpleConsensusInputs + (*FieldsMap)(nil), // 4: sdk.v1alpha.FieldsMap + (*ConsensusDescriptor)(nil), // 5: sdk.v1alpha.ConsensusDescriptor + (*ReportRequest)(nil), // 6: sdk.v1alpha.ReportRequest + (*ReportResponse)(nil), // 7: sdk.v1alpha.ReportResponse + (*AttributedSignature)(nil), // 8: sdk.v1alpha.AttributedSignature + (*CapabilityRequest)(nil), // 9: sdk.v1alpha.CapabilityRequest + (*CapabilityResponse)(nil), // 10: sdk.v1alpha.CapabilityResponse + (*TriggerSubscription)(nil), // 11: sdk.v1alpha.TriggerSubscription + (*TeeTypeAndRegions)(nil), // 12: sdk.v1alpha.TeeTypeAndRegions + (*TeeTypeSelection)(nil), // 13: sdk.v1alpha.TeeTypeSelection + (*Tee)(nil), // 14: sdk.v1alpha.Tee + (*TriggerSubscriptionRequest)(nil), // 15: sdk.v1alpha.TriggerSubscriptionRequest + (*Trigger)(nil), // 16: sdk.v1alpha.Trigger + (*Requirements)(nil), // 17: sdk.v1alpha.Requirements + (*AwaitCapabilitiesRequest)(nil), // 18: sdk.v1alpha.AwaitCapabilitiesRequest + (*AwaitCapabilitiesResponse)(nil), // 19: sdk.v1alpha.AwaitCapabilitiesResponse + (*ExecuteRequest)(nil), // 20: sdk.v1alpha.ExecuteRequest + (*ExecutionResult)(nil), // 21: sdk.v1alpha.ExecutionResult + (*GetSecretsRequest)(nil), // 22: sdk.v1alpha.GetSecretsRequest + (*AwaitSecretsRequest)(nil), // 23: sdk.v1alpha.AwaitSecretsRequest + (*AwaitSecretsResponse)(nil), // 24: sdk.v1alpha.AwaitSecretsResponse + (*SecretRequest)(nil), // 25: sdk.v1alpha.SecretRequest + (*Secret)(nil), // 26: sdk.v1alpha.Secret + (*SecretError)(nil), // 27: sdk.v1alpha.SecretError + (*SecretResponse)(nil), // 28: sdk.v1alpha.SecretResponse + (*SecretResponses)(nil), // 29: sdk.v1alpha.SecretResponses + nil, // 30: sdk.v1alpha.FieldsMap.FieldsEntry + nil, // 31: sdk.v1alpha.AwaitCapabilitiesResponse.ResponsesEntry + nil, // 32: sdk.v1alpha.AwaitSecretsResponse.ResponsesEntry + (*pb.Value)(nil), // 33: values.v1.Value + (*anypb.Any)(nil), // 34: google.protobuf.Any + (*emptypb.Empty)(nil), // 35: google.protobuf.Empty } var file_sdk_v1alpha_sdk_proto_depIdxs = []int32{ - 28, // 0: sdk.v1alpha.SimpleConsensusInputs.value:type_name -> values.v1.Value - 4, // 1: sdk.v1alpha.SimpleConsensusInputs.descriptors:type_name -> sdk.v1alpha.ConsensusDescriptor - 28, // 2: sdk.v1alpha.SimpleConsensusInputs.default:type_name -> values.v1.Value - 25, // 3: sdk.v1alpha.FieldsMap.fields:type_name -> sdk.v1alpha.FieldsMap.FieldsEntry + 33, // 0: sdk.v1alpha.SimpleConsensusInputs.value:type_name -> values.v1.Value + 5, // 1: sdk.v1alpha.SimpleConsensusInputs.descriptors:type_name -> sdk.v1alpha.ConsensusDescriptor + 33, // 2: sdk.v1alpha.SimpleConsensusInputs.default:type_name -> values.v1.Value + 30, // 3: sdk.v1alpha.FieldsMap.fields:type_name -> sdk.v1alpha.FieldsMap.FieldsEntry 0, // 4: sdk.v1alpha.ConsensusDescriptor.aggregation:type_name -> sdk.v1alpha.AggregationType - 3, // 5: sdk.v1alpha.ConsensusDescriptor.fields_map:type_name -> sdk.v1alpha.FieldsMap - 7, // 6: sdk.v1alpha.ReportResponse.sigs:type_name -> sdk.v1alpha.AttributedSignature - 29, // 7: sdk.v1alpha.CapabilityRequest.payload:type_name -> google.protobuf.Any - 29, // 8: sdk.v1alpha.CapabilityResponse.payload:type_name -> google.protobuf.Any - 29, // 9: sdk.v1alpha.TriggerSubscription.payload:type_name -> google.protobuf.Any - 10, // 10: sdk.v1alpha.TriggerSubscriptionRequest.subscriptions:type_name -> sdk.v1alpha.TriggerSubscription - 29, // 11: sdk.v1alpha.Trigger.payload:type_name -> google.protobuf.Any - 26, // 12: sdk.v1alpha.AwaitCapabilitiesResponse.responses:type_name -> sdk.v1alpha.AwaitCapabilitiesResponse.ResponsesEntry - 30, // 13: sdk.v1alpha.ExecuteRequest.subscribe:type_name -> google.protobuf.Empty - 12, // 14: sdk.v1alpha.ExecuteRequest.trigger:type_name -> sdk.v1alpha.Trigger - 28, // 15: sdk.v1alpha.ExecutionResult.value:type_name -> values.v1.Value - 11, // 16: sdk.v1alpha.ExecutionResult.trigger_subscriptions:type_name -> sdk.v1alpha.TriggerSubscriptionRequest - 20, // 17: sdk.v1alpha.GetSecretsRequest.requests:type_name -> sdk.v1alpha.SecretRequest - 27, // 18: sdk.v1alpha.AwaitSecretsResponse.responses:type_name -> sdk.v1alpha.AwaitSecretsResponse.ResponsesEntry - 21, // 19: sdk.v1alpha.SecretResponse.secret:type_name -> sdk.v1alpha.Secret - 22, // 20: sdk.v1alpha.SecretResponse.error:type_name -> sdk.v1alpha.SecretError - 23, // 21: sdk.v1alpha.SecretResponses.responses:type_name -> sdk.v1alpha.SecretResponse - 4, // 22: sdk.v1alpha.FieldsMap.FieldsEntry.value:type_name -> sdk.v1alpha.ConsensusDescriptor - 9, // 23: sdk.v1alpha.AwaitCapabilitiesResponse.ResponsesEntry.value:type_name -> sdk.v1alpha.CapabilityResponse - 24, // 24: sdk.v1alpha.AwaitSecretsResponse.ResponsesEntry.value:type_name -> sdk.v1alpha.SecretResponses - 25, // [25:25] is the sub-list for method output_type - 25, // [25:25] is the sub-list for method input_type - 25, // [25:25] is the sub-list for extension type_name - 25, // [25:25] is the sub-list for extension extendee - 0, // [0:25] is the sub-list for field type_name + 4, // 5: sdk.v1alpha.ConsensusDescriptor.fields_map:type_name -> sdk.v1alpha.FieldsMap + 8, // 6: sdk.v1alpha.ReportResponse.sigs:type_name -> sdk.v1alpha.AttributedSignature + 34, // 7: sdk.v1alpha.CapabilityRequest.payload:type_name -> google.protobuf.Any + 34, // 8: sdk.v1alpha.CapabilityResponse.payload:type_name -> google.protobuf.Any + 34, // 9: sdk.v1alpha.TriggerSubscription.payload:type_name -> google.protobuf.Any + 2, // 10: sdk.v1alpha.TeeTypeAndRegions.type:type_name -> sdk.v1alpha.TeeType + 12, // 11: sdk.v1alpha.TeeTypeSelection.types:type_name -> sdk.v1alpha.TeeTypeAndRegions + 35, // 12: sdk.v1alpha.Tee.any:type_name -> google.protobuf.Empty + 13, // 13: sdk.v1alpha.Tee.type_selection:type_name -> sdk.v1alpha.TeeTypeSelection + 11, // 14: sdk.v1alpha.TriggerSubscriptionRequest.subscriptions:type_name -> sdk.v1alpha.TriggerSubscription + 34, // 15: sdk.v1alpha.Trigger.payload:type_name -> google.protobuf.Any + 14, // 16: sdk.v1alpha.Requirements.tee:type_name -> sdk.v1alpha.Tee + 31, // 17: sdk.v1alpha.AwaitCapabilitiesResponse.responses:type_name -> sdk.v1alpha.AwaitCapabilitiesResponse.ResponsesEntry + 35, // 18: sdk.v1alpha.ExecuteRequest.subscribe:type_name -> google.protobuf.Empty + 16, // 19: sdk.v1alpha.ExecuteRequest.trigger:type_name -> sdk.v1alpha.Trigger + 33, // 20: sdk.v1alpha.ExecutionResult.value:type_name -> values.v1.Value + 15, // 21: sdk.v1alpha.ExecutionResult.trigger_subscriptions:type_name -> sdk.v1alpha.TriggerSubscriptionRequest + 25, // 22: sdk.v1alpha.GetSecretsRequest.requests:type_name -> sdk.v1alpha.SecretRequest + 32, // 23: sdk.v1alpha.AwaitSecretsResponse.responses:type_name -> sdk.v1alpha.AwaitSecretsResponse.ResponsesEntry + 26, // 24: sdk.v1alpha.SecretResponse.secret:type_name -> sdk.v1alpha.Secret + 27, // 25: sdk.v1alpha.SecretResponse.error:type_name -> sdk.v1alpha.SecretError + 28, // 26: sdk.v1alpha.SecretResponses.responses:type_name -> sdk.v1alpha.SecretResponse + 5, // 27: sdk.v1alpha.FieldsMap.FieldsEntry.value:type_name -> sdk.v1alpha.ConsensusDescriptor + 10, // 28: sdk.v1alpha.AwaitCapabilitiesResponse.ResponsesEntry.value:type_name -> sdk.v1alpha.CapabilityResponse + 29, // 29: sdk.v1alpha.AwaitSecretsResponse.ResponsesEntry.value:type_name -> sdk.v1alpha.SecretResponses + 30, // [30:30] is the sub-list for method output_type + 30, // [30:30] is the sub-list for method input_type + 30, // [30:30] is the sub-list for extension type_name + 30, // [30:30] is the sub-list for extension extendee + 0, // [0:30] is the sub-list for field type_name } func init() { file_sdk_v1alpha_sdk_proto_init() } @@ -1806,16 +2094,20 @@ func file_sdk_v1alpha_sdk_proto_init() { (*CapabilityResponse_Payload)(nil), (*CapabilityResponse_Error)(nil), } - file_sdk_v1alpha_sdk_proto_msgTypes[13].OneofWrappers = []any{ + file_sdk_v1alpha_sdk_proto_msgTypes[11].OneofWrappers = []any{ + (*Tee_Any)(nil), + (*Tee_TypeSelection)(nil), + } + file_sdk_v1alpha_sdk_proto_msgTypes[17].OneofWrappers = []any{ (*ExecuteRequest_Subscribe)(nil), (*ExecuteRequest_Trigger)(nil), } - file_sdk_v1alpha_sdk_proto_msgTypes[14].OneofWrappers = []any{ + file_sdk_v1alpha_sdk_proto_msgTypes[18].OneofWrappers = []any{ (*ExecutionResult_Value)(nil), (*ExecutionResult_Error)(nil), (*ExecutionResult_TriggerSubscriptions)(nil), } - file_sdk_v1alpha_sdk_proto_msgTypes[21].OneofWrappers = []any{ + file_sdk_v1alpha_sdk_proto_msgTypes[25].OneofWrappers = []any{ (*SecretResponse_Secret)(nil), (*SecretResponse_Error)(nil), } @@ -1824,8 +2116,8 @@ func file_sdk_v1alpha_sdk_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_sdk_v1alpha_sdk_proto_rawDesc), len(file_sdk_v1alpha_sdk_proto_rawDesc)), - NumEnums: 2, - NumMessages: 26, + NumEnums: 3, + NumMessages: 30, NumExtensions: 0, NumServices: 0, }, diff --git a/cre/go/tools/generator/cre_metadata.pb.go b/cre/go/tools/generator/cre_metadata.pb.go index 7026ea3f..c194a54b 100644 --- a/cre/go/tools/generator/cre_metadata.pb.go +++ b/cre/go/tools/generator/cre_metadata.pb.go @@ -378,6 +378,7 @@ type CapabilityMetadata struct { Mode sdk.Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=sdk.v1alpha.Mode" json:"mode,omitempty"` CapabilityId string `protobuf:"bytes,2,opt,name=capability_id,json=capabilityId,proto3" json:"capability_id,omitempty"` Labels map[string]*Label `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + TeeEnabled bool `protobuf:"varint,4,opt,name=tee_enabled,json=teeEnabled,proto3" json:"tee_enabled,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -433,6 +434,13 @@ func (x *CapabilityMetadata) GetLabels() map[string]*Label { return nil } +func (x *CapabilityMetadata) GetTeeEnabled() bool { + if x != nil { + return x.TeeEnabled + } + return false +} + type CapabilityMethodMetadata struct { state protoimpl.MessageState `protogen:"open.v1"` MapToUntypedApi bool `protobuf:"varint,1,opt,name=map_to_untyped_api,json=mapToUntypedApi,proto3" json:"map_to_untyped_api,omitempty"` @@ -548,11 +556,13 @@ const file_tools_generator_v1alpha_cre_metadata_proto_rawDesc = "" + "\fuint32_label\x18\x04 \x01(\v2$.tools.generator.v1alpha.Uint32LabelH\x00R\vuint32Label\x12F\n" + "\vint32_label\x18\x05 \x01(\v2#.tools.generator.v1alpha.Int32LabelH\x00R\n" + "int32LabelB\x06\n" + - "\x04kind\"\x8c\x02\n" + + "\x04kind\"\xad\x02\n" + "\x12CapabilityMetadata\x12%\n" + "\x04mode\x18\x01 \x01(\x0e2\x11.sdk.v1alpha.ModeR\x04mode\x12#\n" + "\rcapability_id\x18\x02 \x01(\tR\fcapabilityId\x12O\n" + - "\x06labels\x18\x03 \x03(\v27.tools.generator.v1alpha.CapabilityMetadata.LabelsEntryR\x06labels\x1aY\n" + + "\x06labels\x18\x03 \x03(\v27.tools.generator.v1alpha.CapabilityMetadata.LabelsEntryR\x06labels\x12\x1f\n" + + "\vtee_enabled\x18\x04 \x01(\bR\n" + + "teeEnabled\x1aY\n" + "\vLabelsEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x124\n" + "\x05value\x18\x02 \x01(\v2\x1e.tools.generator.v1alpha.LabelR\x05value:\x028\x01\"G\n" + diff --git a/cre/sdk/v1alpha/sdk.proto b/cre/sdk/v1alpha/sdk.proto index 42137502..d8a88f93 100644 --- a/cre/sdk/v1alpha/sdk.proto +++ b/cre/sdk/v1alpha/sdk.proto @@ -84,9 +84,13 @@ enum TeeType { TEE_TYPE_AWS_NITRO = 0; } +message TeeTypeAndRegions { + TeeType type = 1; + repeated string regions = 2; +} message TeeTypeSelection { - repeated TeeType types = 1; + repeated TeeTypeAndRegions types = 1; } message Tee { From c2ff1c3f6163eb051cd18339f4df30f0aa8219e0 Mon Sep 17 00:00:00 2001 From: Ryan Tinianov Date: Fri, 24 Apr 2026 15:23:50 -0400 Subject: [PATCH 20/27] Use additional_environments instead of boolean for tees --- .../confidentialhttp/v1alpha/client.proto | 2 +- .../networking/http/v1alpha/client.proto | 2 +- cre/go/installer/pkg/embedded_gen.go | 11 +- cre/go/tools/generator/cre_metadata.pb.go | 162 ++++++++++++------ .../generator/v1alpha/cre_metadata.proto | 7 +- 5 files changed, 123 insertions(+), 61 deletions(-) diff --git a/cre/capabilities/networking/confidentialhttp/v1alpha/client.proto b/cre/capabilities/networking/confidentialhttp/v1alpha/client.proto index 7a3eb9b9..298de68b 100644 --- a/cre/capabilities/networking/confidentialhttp/v1alpha/client.proto +++ b/cre/capabilities/networking/confidentialhttp/v1alpha/client.proto @@ -66,7 +66,7 @@ service Client { option (tools.generator.v1alpha.capability) = { mode: MODE_DON capability_id: "confidential-http@1.0.0-alpha" - tee_enabled: true + additional_environments: [ADDITIONAL_ENVIRONMENTS_TEE] }; rpc SendRequest(ConfidentialHTTPRequest) returns (HTTPResponse); diff --git a/cre/capabilities/networking/http/v1alpha/client.proto b/cre/capabilities/networking/http/v1alpha/client.proto index be9d9c9e..e395570d 100644 --- a/cre/capabilities/networking/http/v1alpha/client.proto +++ b/cre/capabilities/networking/http/v1alpha/client.proto @@ -37,7 +37,7 @@ service Client { option (tools.generator.v1alpha.capability) = { mode: MODE_NODE capability_id: "http-actions@1.0.0-alpha" - tee_enabled: true + additional_environments: [ADDITIONAL_ENVIRONMENTS_TEE] }; rpc SendRequest(Request) returns (Response); } diff --git a/cre/go/installer/pkg/embedded_gen.go b/cre/go/installer/pkg/embedded_gen.go index abe7310a..843628d3 100755 --- a/cre/go/installer/pkg/embedded_gen.go +++ b/cre/go/installer/pkg/embedded_gen.go @@ -1357,7 +1357,7 @@ service Client { option (tools.generator.v1alpha.capability) = { mode: MODE_DON capability_id: "confidential-http@1.0.0-alpha" - tee_enabled: true + additional_environments: [ADDITIONAL_ENVIRONMENTS_TEE] }; rpc SendRequest(ConfidentialHTTPRequest) returns (HTTPResponse); @@ -1403,7 +1403,7 @@ service Client { option (tools.generator.v1alpha.capability) = { mode: MODE_NODE capability_id: "http-actions@1.0.0-alpha" - tee_enabled: true + additional_environments: [ADDITIONAL_ENVIRONMENTS_TEE] }; rpc SendRequest(Request) returns (Response); } @@ -1863,11 +1863,16 @@ message Label { } } +enum AdditionalEnironments { + ADDITIONAL_ENVIRONMENTS_UNSPECIFIED = 0; + ADDITIONAL_ENVIRONMENTS_TEE = 1; +} + message CapabilityMetadata { sdk.v1alpha.Mode mode = 1; string capability_id = 2; map labels = 3; - bool tee_enabled = 4; + repeated AdditionalEnironments additional_environments = 4; } extend google.protobuf.ServiceOptions { diff --git a/cre/go/tools/generator/cre_metadata.pb.go b/cre/go/tools/generator/cre_metadata.pb.go index c194a54b..d8c0a476 100644 --- a/cre/go/tools/generator/cre_metadata.pb.go +++ b/cre/go/tools/generator/cre_metadata.pb.go @@ -23,6 +23,52 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +type AdditionalEnironments int32 + +const ( + AdditionalEnironments_ADDITIONAL_ENVIRONMENTS_UNSPECIFIED AdditionalEnironments = 0 + AdditionalEnironments_ADDITIONAL_ENVIRONMENTS_TEE AdditionalEnironments = 1 +) + +// Enum value maps for AdditionalEnironments. +var ( + AdditionalEnironments_name = map[int32]string{ + 0: "ADDITIONAL_ENVIRONMENTS_UNSPECIFIED", + 1: "ADDITIONAL_ENVIRONMENTS_TEE", + } + AdditionalEnironments_value = map[string]int32{ + "ADDITIONAL_ENVIRONMENTS_UNSPECIFIED": 0, + "ADDITIONAL_ENVIRONMENTS_TEE": 1, + } +) + +func (x AdditionalEnironments) Enum() *AdditionalEnironments { + p := new(AdditionalEnironments) + *p = x + return p +} + +func (x AdditionalEnironments) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (AdditionalEnironments) Descriptor() protoreflect.EnumDescriptor { + return file_tools_generator_v1alpha_cre_metadata_proto_enumTypes[0].Descriptor() +} + +func (AdditionalEnironments) Type() protoreflect.EnumType { + return &file_tools_generator_v1alpha_cre_metadata_proto_enumTypes[0] +} + +func (x AdditionalEnironments) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use AdditionalEnironments.Descriptor instead. +func (AdditionalEnironments) EnumDescriptor() ([]byte, []int) { + return file_tools_generator_v1alpha_cre_metadata_proto_rawDescGZIP(), []int{0} +} + type StringLabel struct { state protoimpl.MessageState `protogen:"open.v1"` Defaults map[string]string `protobuf:"bytes,1,rep,name=defaults,proto3" json:"defaults,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` @@ -374,13 +420,13 @@ func (*Label_Uint32Label) isLabel_Kind() {} func (*Label_Int32Label) isLabel_Kind() {} type CapabilityMetadata struct { - state protoimpl.MessageState `protogen:"open.v1"` - Mode sdk.Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=sdk.v1alpha.Mode" json:"mode,omitempty"` - CapabilityId string `protobuf:"bytes,2,opt,name=capability_id,json=capabilityId,proto3" json:"capability_id,omitempty"` - Labels map[string]*Label `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` - TeeEnabled bool `protobuf:"varint,4,opt,name=tee_enabled,json=teeEnabled,proto3" json:"tee_enabled,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Mode sdk.Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=sdk.v1alpha.Mode" json:"mode,omitempty"` + CapabilityId string `protobuf:"bytes,2,opt,name=capability_id,json=capabilityId,proto3" json:"capability_id,omitempty"` + Labels map[string]*Label `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + AdditionalEnvironments []AdditionalEnironments `protobuf:"varint,4,rep,packed,name=additional_environments,json=additionalEnvironments,proto3,enum=tools.generator.v1alpha.AdditionalEnironments" json:"additional_environments,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CapabilityMetadata) Reset() { @@ -434,11 +480,11 @@ func (x *CapabilityMetadata) GetLabels() map[string]*Label { return nil } -func (x *CapabilityMetadata) GetTeeEnabled() bool { +func (x *CapabilityMetadata) GetAdditionalEnvironments() []AdditionalEnironments { if x != nil { - return x.TeeEnabled + return x.AdditionalEnvironments } - return false + return nil } type CapabilityMethodMetadata struct { @@ -556,18 +602,20 @@ const file_tools_generator_v1alpha_cre_metadata_proto_rawDesc = "" + "\fuint32_label\x18\x04 \x01(\v2$.tools.generator.v1alpha.Uint32LabelH\x00R\vuint32Label\x12F\n" + "\vint32_label\x18\x05 \x01(\v2#.tools.generator.v1alpha.Int32LabelH\x00R\n" + "int32LabelB\x06\n" + - "\x04kind\"\xad\x02\n" + + "\x04kind\"\xf5\x02\n" + "\x12CapabilityMetadata\x12%\n" + "\x04mode\x18\x01 \x01(\x0e2\x11.sdk.v1alpha.ModeR\x04mode\x12#\n" + "\rcapability_id\x18\x02 \x01(\tR\fcapabilityId\x12O\n" + - "\x06labels\x18\x03 \x03(\v27.tools.generator.v1alpha.CapabilityMetadata.LabelsEntryR\x06labels\x12\x1f\n" + - "\vtee_enabled\x18\x04 \x01(\bR\n" + - "teeEnabled\x1aY\n" + + "\x06labels\x18\x03 \x03(\v27.tools.generator.v1alpha.CapabilityMetadata.LabelsEntryR\x06labels\x12g\n" + + "\x17additional_environments\x18\x04 \x03(\x0e2..tools.generator.v1alpha.AdditionalEnironmentsR\x16additionalEnvironments\x1aY\n" + "\vLabelsEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x124\n" + "\x05value\x18\x02 \x01(\v2\x1e.tools.generator.v1alpha.LabelR\x05value:\x028\x01\"G\n" + "\x18CapabilityMethodMetadata\x12+\n" + - "\x12map_to_untyped_api\x18\x01 \x01(\bR\x0fmapToUntypedApi:n\n" + + "\x12map_to_untyped_api\x18\x01 \x01(\bR\x0fmapToUntypedApi*a\n" + + "\x15AdditionalEnironments\x12'\n" + + "#ADDITIONAL_ENVIRONMENTS_UNSPECIFIED\x10\x00\x12\x1f\n" + + "\x1bADDITIONAL_ENVIRONMENTS_TEE\x10\x01:n\n" + "\n" + "capability\x12\x1f.google.protobuf.ServiceOptions\x18І\x03 \x01(\v2+.tools.generator.v1alpha.CapabilityMetadataR\n" + "capability:k\n" + @@ -585,49 +633,52 @@ func file_tools_generator_v1alpha_cre_metadata_proto_rawDescGZIP() []byte { return file_tools_generator_v1alpha_cre_metadata_proto_rawDescData } +var file_tools_generator_v1alpha_cre_metadata_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_tools_generator_v1alpha_cre_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 14) var file_tools_generator_v1alpha_cre_metadata_proto_goTypes = []any{ - (*StringLabel)(nil), // 0: tools.generator.v1alpha.StringLabel - (*Uint64Label)(nil), // 1: tools.generator.v1alpha.Uint64Label - (*Uint32Label)(nil), // 2: tools.generator.v1alpha.Uint32Label - (*Int64Label)(nil), // 3: tools.generator.v1alpha.Int64Label - (*Int32Label)(nil), // 4: tools.generator.v1alpha.Int32Label - (*Label)(nil), // 5: tools.generator.v1alpha.Label - (*CapabilityMetadata)(nil), // 6: tools.generator.v1alpha.CapabilityMetadata - (*CapabilityMethodMetadata)(nil), // 7: tools.generator.v1alpha.CapabilityMethodMetadata - nil, // 8: tools.generator.v1alpha.StringLabel.DefaultsEntry - nil, // 9: tools.generator.v1alpha.Uint64Label.DefaultsEntry - nil, // 10: tools.generator.v1alpha.Uint32Label.DefaultsEntry - nil, // 11: tools.generator.v1alpha.Int64Label.DefaultsEntry - nil, // 12: tools.generator.v1alpha.Int32Label.DefaultsEntry - nil, // 13: tools.generator.v1alpha.CapabilityMetadata.LabelsEntry - (sdk.Mode)(0), // 14: sdk.v1alpha.Mode - (*descriptorpb.ServiceOptions)(nil), // 15: google.protobuf.ServiceOptions - (*descriptorpb.MethodOptions)(nil), // 16: google.protobuf.MethodOptions + (AdditionalEnironments)(0), // 0: tools.generator.v1alpha.AdditionalEnironments + (*StringLabel)(nil), // 1: tools.generator.v1alpha.StringLabel + (*Uint64Label)(nil), // 2: tools.generator.v1alpha.Uint64Label + (*Uint32Label)(nil), // 3: tools.generator.v1alpha.Uint32Label + (*Int64Label)(nil), // 4: tools.generator.v1alpha.Int64Label + (*Int32Label)(nil), // 5: tools.generator.v1alpha.Int32Label + (*Label)(nil), // 6: tools.generator.v1alpha.Label + (*CapabilityMetadata)(nil), // 7: tools.generator.v1alpha.CapabilityMetadata + (*CapabilityMethodMetadata)(nil), // 8: tools.generator.v1alpha.CapabilityMethodMetadata + nil, // 9: tools.generator.v1alpha.StringLabel.DefaultsEntry + nil, // 10: tools.generator.v1alpha.Uint64Label.DefaultsEntry + nil, // 11: tools.generator.v1alpha.Uint32Label.DefaultsEntry + nil, // 12: tools.generator.v1alpha.Int64Label.DefaultsEntry + nil, // 13: tools.generator.v1alpha.Int32Label.DefaultsEntry + nil, // 14: tools.generator.v1alpha.CapabilityMetadata.LabelsEntry + (sdk.Mode)(0), // 15: sdk.v1alpha.Mode + (*descriptorpb.ServiceOptions)(nil), // 16: google.protobuf.ServiceOptions + (*descriptorpb.MethodOptions)(nil), // 17: google.protobuf.MethodOptions } var file_tools_generator_v1alpha_cre_metadata_proto_depIdxs = []int32{ - 8, // 0: tools.generator.v1alpha.StringLabel.defaults:type_name -> tools.generator.v1alpha.StringLabel.DefaultsEntry - 9, // 1: tools.generator.v1alpha.Uint64Label.defaults:type_name -> tools.generator.v1alpha.Uint64Label.DefaultsEntry - 10, // 2: tools.generator.v1alpha.Uint32Label.defaults:type_name -> tools.generator.v1alpha.Uint32Label.DefaultsEntry - 11, // 3: tools.generator.v1alpha.Int64Label.defaults:type_name -> tools.generator.v1alpha.Int64Label.DefaultsEntry - 12, // 4: tools.generator.v1alpha.Int32Label.defaults:type_name -> tools.generator.v1alpha.Int32Label.DefaultsEntry - 0, // 5: tools.generator.v1alpha.Label.string_label:type_name -> tools.generator.v1alpha.StringLabel - 1, // 6: tools.generator.v1alpha.Label.uint64_label:type_name -> tools.generator.v1alpha.Uint64Label - 3, // 7: tools.generator.v1alpha.Label.int64_label:type_name -> tools.generator.v1alpha.Int64Label - 2, // 8: tools.generator.v1alpha.Label.uint32_label:type_name -> tools.generator.v1alpha.Uint32Label - 4, // 9: tools.generator.v1alpha.Label.int32_label:type_name -> tools.generator.v1alpha.Int32Label - 14, // 10: tools.generator.v1alpha.CapabilityMetadata.mode:type_name -> sdk.v1alpha.Mode - 13, // 11: tools.generator.v1alpha.CapabilityMetadata.labels:type_name -> tools.generator.v1alpha.CapabilityMetadata.LabelsEntry - 5, // 12: tools.generator.v1alpha.CapabilityMetadata.LabelsEntry.value:type_name -> tools.generator.v1alpha.Label - 15, // 13: tools.generator.v1alpha.capability:extendee -> google.protobuf.ServiceOptions - 16, // 14: tools.generator.v1alpha.method:extendee -> google.protobuf.MethodOptions - 6, // 15: tools.generator.v1alpha.capability:type_name -> tools.generator.v1alpha.CapabilityMetadata - 7, // 16: tools.generator.v1alpha.method:type_name -> tools.generator.v1alpha.CapabilityMethodMetadata - 17, // [17:17] is the sub-list for method output_type - 17, // [17:17] is the sub-list for method input_type - 15, // [15:17] is the sub-list for extension type_name - 13, // [13:15] is the sub-list for extension extendee - 0, // [0:13] is the sub-list for field type_name + 9, // 0: tools.generator.v1alpha.StringLabel.defaults:type_name -> tools.generator.v1alpha.StringLabel.DefaultsEntry + 10, // 1: tools.generator.v1alpha.Uint64Label.defaults:type_name -> tools.generator.v1alpha.Uint64Label.DefaultsEntry + 11, // 2: tools.generator.v1alpha.Uint32Label.defaults:type_name -> tools.generator.v1alpha.Uint32Label.DefaultsEntry + 12, // 3: tools.generator.v1alpha.Int64Label.defaults:type_name -> tools.generator.v1alpha.Int64Label.DefaultsEntry + 13, // 4: tools.generator.v1alpha.Int32Label.defaults:type_name -> tools.generator.v1alpha.Int32Label.DefaultsEntry + 1, // 5: tools.generator.v1alpha.Label.string_label:type_name -> tools.generator.v1alpha.StringLabel + 2, // 6: tools.generator.v1alpha.Label.uint64_label:type_name -> tools.generator.v1alpha.Uint64Label + 4, // 7: tools.generator.v1alpha.Label.int64_label:type_name -> tools.generator.v1alpha.Int64Label + 3, // 8: tools.generator.v1alpha.Label.uint32_label:type_name -> tools.generator.v1alpha.Uint32Label + 5, // 9: tools.generator.v1alpha.Label.int32_label:type_name -> tools.generator.v1alpha.Int32Label + 15, // 10: tools.generator.v1alpha.CapabilityMetadata.mode:type_name -> sdk.v1alpha.Mode + 14, // 11: tools.generator.v1alpha.CapabilityMetadata.labels:type_name -> tools.generator.v1alpha.CapabilityMetadata.LabelsEntry + 0, // 12: tools.generator.v1alpha.CapabilityMetadata.additional_environments:type_name -> tools.generator.v1alpha.AdditionalEnironments + 6, // 13: tools.generator.v1alpha.CapabilityMetadata.LabelsEntry.value:type_name -> tools.generator.v1alpha.Label + 16, // 14: tools.generator.v1alpha.capability:extendee -> google.protobuf.ServiceOptions + 17, // 15: tools.generator.v1alpha.method:extendee -> google.protobuf.MethodOptions + 7, // 16: tools.generator.v1alpha.capability:type_name -> tools.generator.v1alpha.CapabilityMetadata + 8, // 17: tools.generator.v1alpha.method:type_name -> tools.generator.v1alpha.CapabilityMethodMetadata + 18, // [18:18] is the sub-list for method output_type + 18, // [18:18] is the sub-list for method input_type + 16, // [16:18] is the sub-list for extension type_name + 14, // [14:16] is the sub-list for extension extendee + 0, // [0:14] is the sub-list for field type_name } func init() { file_tools_generator_v1alpha_cre_metadata_proto_init() } @@ -647,13 +698,14 @@ func file_tools_generator_v1alpha_cre_metadata_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_tools_generator_v1alpha_cre_metadata_proto_rawDesc), len(file_tools_generator_v1alpha_cre_metadata_proto_rawDesc)), - NumEnums: 0, + NumEnums: 1, NumMessages: 14, NumExtensions: 2, NumServices: 0, }, GoTypes: file_tools_generator_v1alpha_cre_metadata_proto_goTypes, DependencyIndexes: file_tools_generator_v1alpha_cre_metadata_proto_depIdxs, + EnumInfos: file_tools_generator_v1alpha_cre_metadata_proto_enumTypes, MessageInfos: file_tools_generator_v1alpha_cre_metadata_proto_msgTypes, ExtensionInfos: file_tools_generator_v1alpha_cre_metadata_proto_extTypes, }.Build() diff --git a/cre/tools/generator/v1alpha/cre_metadata.proto b/cre/tools/generator/v1alpha/cre_metadata.proto index 3c438784..4ebf167b 100644 --- a/cre/tools/generator/v1alpha/cre_metadata.proto +++ b/cre/tools/generator/v1alpha/cre_metadata.proto @@ -35,11 +35,16 @@ message Label { } } +enum AdditionalEnironments { + ADDITIONAL_ENVIRONMENTS_UNSPECIFIED = 0; + ADDITIONAL_ENVIRONMENTS_TEE = 1; +} + message CapabilityMetadata { sdk.v1alpha.Mode mode = 1; string capability_id = 2; map labels = 3; - bool tee_enabled = 4; + repeated AdditionalEnironments additional_environments = 4; } extend google.protobuf.ServiceOptions { From 3b32049040664edd2ee2c43a03e5566762ae4299 Mon Sep 17 00:00:00 2001 From: Ryan Tinianov Date: Mon, 27 Apr 2026 13:02:24 -0400 Subject: [PATCH 21/27] Put requirements in the trigger, since init needs to run with the trigger, subscriptions need to be outside the TEE --- cre/go/installer/pkg/embedded_gen.go | 1 + cre/go/sdk/sdk.pb.go | 64 ++++++++++++++++------------ cre/sdk/v1alpha/sdk.proto | 1 + 3 files changed, 39 insertions(+), 27 deletions(-) diff --git a/cre/go/installer/pkg/embedded_gen.go b/cre/go/installer/pkg/embedded_gen.go index 843628d3..0dfdeb03 100755 --- a/cre/go/installer/pkg/embedded_gen.go +++ b/cre/go/installer/pkg/embedded_gen.go @@ -1564,6 +1564,7 @@ message TriggerSubscription { string id = 1; google.protobuf.Any payload = 2; string method = 3; + Requirements requirements = 4; } enum TeeType { diff --git a/cre/go/sdk/sdk.pb.go b/cre/go/sdk/sdk.pb.go index 7c007f18..a7c3d913 100644 --- a/cre/go/sdk/sdk.pb.go +++ b/cre/go/sdk/sdk.pb.go @@ -746,6 +746,7 @@ type TriggerSubscription struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Payload *anypb.Any `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"` + Requirements *Requirements `protobuf:"bytes,4,opt,name=requirements,proto3" json:"requirements,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -801,6 +802,13 @@ func (x *TriggerSubscription) GetMethod() string { return "" } +func (x *TriggerSubscription) GetRequirements() *Requirements { + if x != nil { + return x.Requirements + } + return nil +} + type TeeTypeAndRegions struct { state protoimpl.MessageState `protogen:"open.v1"` Type TeeType `protobuf:"varint,1,opt,name=type,proto3,enum=sdk.v1alpha.TeeType" json:"type,omitempty"` @@ -1904,11 +1912,12 @@ const file_sdk_v1alpha_sdk_proto_rawDesc = "" + "\apayload\x18\x01 \x01(\v2\x14.google.protobuf.AnyH\x00R\apayload\x12\x16\n" + "\x05error\x18\x02 \x01(\tH\x00R\x05errorB\n" + "\n" + - "\bresponse\"m\n" + + "\bresponse\"\xac\x01\n" + "\x13TriggerSubscription\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12.\n" + "\apayload\x18\x02 \x01(\v2\x14.google.protobuf.AnyR\apayload\x12\x16\n" + - "\x06method\x18\x03 \x01(\tR\x06method\"W\n" + + "\x06method\x18\x03 \x01(\tR\x06method\x12=\n" + + "\frequirements\x18\x04 \x01(\v2\x19.sdk.v1alpha.RequirementsR\frequirements\"W\n" + "\x11TeeTypeAndRegions\x12(\n" + "\x04type\x18\x01 \x01(\x0e2\x14.sdk.v1alpha.TeeTypeR\x04type\x12\x18\n" + "\aregions\x18\x02 \x03(\tR\aregions\"H\n" + @@ -2050,31 +2059,32 @@ var file_sdk_v1alpha_sdk_proto_depIdxs = []int32{ 34, // 7: sdk.v1alpha.CapabilityRequest.payload:type_name -> google.protobuf.Any 34, // 8: sdk.v1alpha.CapabilityResponse.payload:type_name -> google.protobuf.Any 34, // 9: sdk.v1alpha.TriggerSubscription.payload:type_name -> google.protobuf.Any - 2, // 10: sdk.v1alpha.TeeTypeAndRegions.type:type_name -> sdk.v1alpha.TeeType - 12, // 11: sdk.v1alpha.TeeTypeSelection.types:type_name -> sdk.v1alpha.TeeTypeAndRegions - 35, // 12: sdk.v1alpha.Tee.any:type_name -> google.protobuf.Empty - 13, // 13: sdk.v1alpha.Tee.type_selection:type_name -> sdk.v1alpha.TeeTypeSelection - 11, // 14: sdk.v1alpha.TriggerSubscriptionRequest.subscriptions:type_name -> sdk.v1alpha.TriggerSubscription - 34, // 15: sdk.v1alpha.Trigger.payload:type_name -> google.protobuf.Any - 14, // 16: sdk.v1alpha.Requirements.tee:type_name -> sdk.v1alpha.Tee - 31, // 17: sdk.v1alpha.AwaitCapabilitiesResponse.responses:type_name -> sdk.v1alpha.AwaitCapabilitiesResponse.ResponsesEntry - 35, // 18: sdk.v1alpha.ExecuteRequest.subscribe:type_name -> google.protobuf.Empty - 16, // 19: sdk.v1alpha.ExecuteRequest.trigger:type_name -> sdk.v1alpha.Trigger - 33, // 20: sdk.v1alpha.ExecutionResult.value:type_name -> values.v1.Value - 15, // 21: sdk.v1alpha.ExecutionResult.trigger_subscriptions:type_name -> sdk.v1alpha.TriggerSubscriptionRequest - 25, // 22: sdk.v1alpha.GetSecretsRequest.requests:type_name -> sdk.v1alpha.SecretRequest - 32, // 23: sdk.v1alpha.AwaitSecretsResponse.responses:type_name -> sdk.v1alpha.AwaitSecretsResponse.ResponsesEntry - 26, // 24: sdk.v1alpha.SecretResponse.secret:type_name -> sdk.v1alpha.Secret - 27, // 25: sdk.v1alpha.SecretResponse.error:type_name -> sdk.v1alpha.SecretError - 28, // 26: sdk.v1alpha.SecretResponses.responses:type_name -> sdk.v1alpha.SecretResponse - 5, // 27: sdk.v1alpha.FieldsMap.FieldsEntry.value:type_name -> sdk.v1alpha.ConsensusDescriptor - 10, // 28: sdk.v1alpha.AwaitCapabilitiesResponse.ResponsesEntry.value:type_name -> sdk.v1alpha.CapabilityResponse - 29, // 29: sdk.v1alpha.AwaitSecretsResponse.ResponsesEntry.value:type_name -> sdk.v1alpha.SecretResponses - 30, // [30:30] is the sub-list for method output_type - 30, // [30:30] is the sub-list for method input_type - 30, // [30:30] is the sub-list for extension type_name - 30, // [30:30] is the sub-list for extension extendee - 0, // [0:30] is the sub-list for field type_name + 17, // 10: sdk.v1alpha.TriggerSubscription.requirements:type_name -> sdk.v1alpha.Requirements + 2, // 11: sdk.v1alpha.TeeTypeAndRegions.type:type_name -> sdk.v1alpha.TeeType + 12, // 12: sdk.v1alpha.TeeTypeSelection.types:type_name -> sdk.v1alpha.TeeTypeAndRegions + 35, // 13: sdk.v1alpha.Tee.any:type_name -> google.protobuf.Empty + 13, // 14: sdk.v1alpha.Tee.type_selection:type_name -> sdk.v1alpha.TeeTypeSelection + 11, // 15: sdk.v1alpha.TriggerSubscriptionRequest.subscriptions:type_name -> sdk.v1alpha.TriggerSubscription + 34, // 16: sdk.v1alpha.Trigger.payload:type_name -> google.protobuf.Any + 14, // 17: sdk.v1alpha.Requirements.tee:type_name -> sdk.v1alpha.Tee + 31, // 18: sdk.v1alpha.AwaitCapabilitiesResponse.responses:type_name -> sdk.v1alpha.AwaitCapabilitiesResponse.ResponsesEntry + 35, // 19: sdk.v1alpha.ExecuteRequest.subscribe:type_name -> google.protobuf.Empty + 16, // 20: sdk.v1alpha.ExecuteRequest.trigger:type_name -> sdk.v1alpha.Trigger + 33, // 21: sdk.v1alpha.ExecutionResult.value:type_name -> values.v1.Value + 15, // 22: sdk.v1alpha.ExecutionResult.trigger_subscriptions:type_name -> sdk.v1alpha.TriggerSubscriptionRequest + 25, // 23: sdk.v1alpha.GetSecretsRequest.requests:type_name -> sdk.v1alpha.SecretRequest + 32, // 24: sdk.v1alpha.AwaitSecretsResponse.responses:type_name -> sdk.v1alpha.AwaitSecretsResponse.ResponsesEntry + 26, // 25: sdk.v1alpha.SecretResponse.secret:type_name -> sdk.v1alpha.Secret + 27, // 26: sdk.v1alpha.SecretResponse.error:type_name -> sdk.v1alpha.SecretError + 28, // 27: sdk.v1alpha.SecretResponses.responses:type_name -> sdk.v1alpha.SecretResponse + 5, // 28: sdk.v1alpha.FieldsMap.FieldsEntry.value:type_name -> sdk.v1alpha.ConsensusDescriptor + 10, // 29: sdk.v1alpha.AwaitCapabilitiesResponse.ResponsesEntry.value:type_name -> sdk.v1alpha.CapabilityResponse + 29, // 30: sdk.v1alpha.AwaitSecretsResponse.ResponsesEntry.value:type_name -> sdk.v1alpha.SecretResponses + 31, // [31:31] is the sub-list for method output_type + 31, // [31:31] is the sub-list for method input_type + 31, // [31:31] is the sub-list for extension type_name + 31, // [31:31] is the sub-list for extension extendee + 0, // [0:31] is the sub-list for field type_name } func init() { file_sdk_v1alpha_sdk_proto_init() } diff --git a/cre/sdk/v1alpha/sdk.proto b/cre/sdk/v1alpha/sdk.proto index d8a88f93..3c0c4b80 100644 --- a/cre/sdk/v1alpha/sdk.proto +++ b/cre/sdk/v1alpha/sdk.proto @@ -78,6 +78,7 @@ message TriggerSubscription { string id = 1; google.protobuf.Any payload = 2; string method = 3; + Requirements requirements = 4; } enum TeeType { From a1ec54d2121fcbdc64afa50c1abf7da920bba21e Mon Sep 17 00:00:00 2001 From: Ryan Tinianov Date: Thu, 30 Apr 2026 09:23:42 -0400 Subject: [PATCH 22/27] Add a hook to verify the regions in a TEE. It's not a trigger because that would stream results --- .../compute/confidentialworkflow/v1alpha/client.proto | 8 ++++++++ cre/go/installer/pkg/embedded_gen.go | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto b/cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto index a6ee0921..d811d944 100644 --- a/cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto +++ b/cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto @@ -3,6 +3,7 @@ syntax = "proto3"; package capabilities.compute.confidentialworkflow.v1alpha; import "tools/generator/v1alpha/cre_metadata.proto"; +import "google/protobuf/empty.proto"; message SecretIdentifier { string key = 1; @@ -31,6 +32,8 @@ message WorkflowExecution { // org_id is the organization identifier for the workflow owner. // Used by the enclave when fetching secrets from VaultDON with org-based ownership. string org_id = 7; + // regions that the workflow is allowed to run in. + repeated string regions = 8; } // ConfidentialWorkflowRequest is the input provided to the confidential workflows capability. @@ -46,6 +49,10 @@ message ConfidentialWorkflowResponse { bytes execution_result = 1; } +message GetRegionsResponse { + repeated string regions = 1; +} + service Client { option (tools.generator.v1alpha.capability) = { mode: MODE_DON @@ -53,4 +60,5 @@ service Client { }; rpc Execute(ConfidentialWorkflowRequest) returns (ConfidentialWorkflowResponse); + rpc GetRegions(google.protobuf.Empty) returns (GetRegionsResponse); } diff --git a/cre/go/installer/pkg/embedded_gen.go b/cre/go/installer/pkg/embedded_gen.go index 0dfdeb03..d7a32012 100755 --- a/cre/go/installer/pkg/embedded_gen.go +++ b/cre/go/installer/pkg/embedded_gen.go @@ -1060,6 +1060,7 @@ const computeConfidentialworkflowV1alphaClientEmbedded = `syntax = "proto3"; package capabilities.compute.confidentialworkflow.v1alpha; import "tools/generator/v1alpha/cre_metadata.proto"; +import "google/protobuf/empty.proto"; message SecretIdentifier { string key = 1; @@ -1088,6 +1089,8 @@ message WorkflowExecution { // org_id is the organization identifier for the workflow owner. // Used by the enclave when fetching secrets from VaultDON with org-based ownership. string org_id = 7; + // regions that the workflow is allowed to run in. + repeated string regions = 8; } // ConfidentialWorkflowRequest is the input provided to the confidential workflows capability. @@ -1103,6 +1106,10 @@ message ConfidentialWorkflowResponse { bytes execution_result = 1; } +message GetRegionsResponse { + repeated string regions = 1; +} + service Client { option (tools.generator.v1alpha.capability) = { mode: MODE_DON @@ -1110,6 +1117,7 @@ service Client { }; rpc Execute(ConfidentialWorkflowRequest) returns (ConfidentialWorkflowResponse); + rpc GetRegions(google.protobuf.Empty) returns (GetRegionsResponse); } ` From 06c6d21659488fe5739aa857dcbe9c809e439b42 Mon Sep 17 00:00:00 2001 From: Ryan Tinianov Date: Thu, 30 Apr 2026 13:55:43 -0400 Subject: [PATCH 23/27] Use exec request directly and accept the Tee requirements --- .../compute/confidentialworkflow/v1alpha/client.proto | 8 ++++---- cre/go/installer/pkg/embedded_gen.go | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto b/cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto index d811d944..7cebf22c 100644 --- a/cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto +++ b/cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto @@ -3,6 +3,7 @@ syntax = "proto3"; package capabilities.compute.confidentialworkflow.v1alpha; import "tools/generator/v1alpha/cre_metadata.proto"; +import "sdk/v1alpha/sdk.proto"; import "google/protobuf/empty.proto"; message SecretIdentifier { @@ -20,9 +21,8 @@ message WorkflowExecution { string binary_url = 2; // binary_hash is the expected SHA-256 hash of the WASM binary, for integrity verification. bytes binary_hash = 3; - // execute_request is a serialized sdk.v1alpha.ExecuteRequest proto. // Contains either a subscribe request or a trigger execution request. - bytes execute_request = 4; + sdk.v1alpha.ExecuteRequest execute_request = 4; // owner is the on-chain owner address of the workflow (hex, 0x-prefixed). // Used by the enclave for runtime secret fetching from VaultDON. string owner = 5; @@ -33,7 +33,7 @@ message WorkflowExecution { // Used by the enclave when fetching secrets from VaultDON with org-based ownership. string org_id = 7; // regions that the workflow is allowed to run in. - repeated string regions = 8; + sdk.v1alpha.Tee tee = 8; } // ConfidentialWorkflowRequest is the input provided to the confidential workflows capability. @@ -46,7 +46,7 @@ message ConfidentialWorkflowRequest { // ConfidentialWorkflowResponse is the output from the confidential workflows capability. message ConfidentialWorkflowResponse { // execution_result is a serialized sdk.v1alpha.ExecutionResult proto. - bytes execution_result = 1; + sdk.v1alpha.ExecutionResult execution_result = 1; } message GetRegionsResponse { diff --git a/cre/go/installer/pkg/embedded_gen.go b/cre/go/installer/pkg/embedded_gen.go index d7a32012..b1485041 100755 --- a/cre/go/installer/pkg/embedded_gen.go +++ b/cre/go/installer/pkg/embedded_gen.go @@ -1060,6 +1060,7 @@ const computeConfidentialworkflowV1alphaClientEmbedded = `syntax = "proto3"; package capabilities.compute.confidentialworkflow.v1alpha; import "tools/generator/v1alpha/cre_metadata.proto"; +import "sdk/v1alpha/sdk.proto"; import "google/protobuf/empty.proto"; message SecretIdentifier { @@ -1077,9 +1078,8 @@ message WorkflowExecution { string binary_url = 2; // binary_hash is the expected SHA-256 hash of the WASM binary, for integrity verification. bytes binary_hash = 3; - // execute_request is a serialized sdk.v1alpha.ExecuteRequest proto. // Contains either a subscribe request or a trigger execution request. - bytes execute_request = 4; + sdk.v1alpha.ExecuteRequest execute_request = 4; // owner is the on-chain owner address of the workflow (hex, 0x-prefixed). // Used by the enclave for runtime secret fetching from VaultDON. string owner = 5; @@ -1090,7 +1090,7 @@ message WorkflowExecution { // Used by the enclave when fetching secrets from VaultDON with org-based ownership. string org_id = 7; // regions that the workflow is allowed to run in. - repeated string regions = 8; + sdk.v1alpha.Tee tee = 8; } // ConfidentialWorkflowRequest is the input provided to the confidential workflows capability. @@ -1103,7 +1103,7 @@ message ConfidentialWorkflowRequest { // ConfidentialWorkflowResponse is the output from the confidential workflows capability. message ConfidentialWorkflowResponse { // execution_result is a serialized sdk.v1alpha.ExecutionResult proto. - bytes execution_result = 1; + sdk.v1alpha.ExecutionResult execution_result = 1; } message GetRegionsResponse { From 474ca53a440a51a030216795b1538a70d0d86ac5 Mon Sep 17 00:00:00 2001 From: Ryan Tinianov Date: Fri, 1 May 2026 09:35:12 -0400 Subject: [PATCH 24/27] Take all requirements --- .../compute/confidentialworkflow/v1alpha/client.proto | 4 ++-- cre/go/installer/pkg/embedded_gen.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto b/cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto index 7cebf22c..a76fe8e6 100644 --- a/cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto +++ b/cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto @@ -32,8 +32,8 @@ message WorkflowExecution { // org_id is the organization identifier for the workflow owner. // Used by the enclave when fetching secrets from VaultDON with org-based ownership. string org_id = 7; - // regions that the workflow is allowed to run in. - sdk.v1alpha.Tee tee = 8; + // requirements to run this workflow + sdk.v1alpha.Requirements requirements = 8; } // ConfidentialWorkflowRequest is the input provided to the confidential workflows capability. diff --git a/cre/go/installer/pkg/embedded_gen.go b/cre/go/installer/pkg/embedded_gen.go index b1485041..1aad50e2 100755 --- a/cre/go/installer/pkg/embedded_gen.go +++ b/cre/go/installer/pkg/embedded_gen.go @@ -1089,8 +1089,8 @@ message WorkflowExecution { // org_id is the organization identifier for the workflow owner. // Used by the enclave when fetching secrets from VaultDON with org-based ownership. string org_id = 7; - // regions that the workflow is allowed to run in. - sdk.v1alpha.Tee tee = 8; + // requirements to run this workflow + sdk.v1alpha.Requirements requirements = 8; } // ConfidentialWorkflowRequest is the input provided to the confidential workflows capability. From 5806971948f205cf37629ac68ed1e292b0b46b94 Mon Sep 17 00:00:00 2001 From: Ryan Tinianov Date: Fri, 1 May 2026 09:46:45 -0400 Subject: [PATCH 25/27] Return list of TEEs instead of regions --- .../confidentialworkflow/v1alpha/client.proto | 6 +- cre/go/installer/pkg/embedded_gen.go | 34 +- cre/go/sdk/sdk.pb.go | 420 ++++++++++-------- cre/sdk/v1alpha/sdk.proto | 28 +- 4 files changed, 272 insertions(+), 216 deletions(-) diff --git a/cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto b/cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto index a76fe8e6..b17503a7 100644 --- a/cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto +++ b/cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto @@ -49,8 +49,8 @@ message ConfidentialWorkflowResponse { sdk.v1alpha.ExecutionResult execution_result = 1; } -message GetRegionsResponse { - repeated string regions = 1; +message ProvidedTeesResponse { + repeated sdk.v1alpha.TeeTypeAndRegions tee = 1; } service Client { @@ -60,5 +60,5 @@ service Client { }; rpc Execute(ConfidentialWorkflowRequest) returns (ConfidentialWorkflowResponse); - rpc GetRegions(google.protobuf.Empty) returns (GetRegionsResponse); + rpc ProvidedTees(google.protobuf.Empty) returns (ProvidedTeesResponse); } diff --git a/cre/go/installer/pkg/embedded_gen.go b/cre/go/installer/pkg/embedded_gen.go index 1aad50e2..24269cad 100755 --- a/cre/go/installer/pkg/embedded_gen.go +++ b/cre/go/installer/pkg/embedded_gen.go @@ -1106,8 +1106,8 @@ message ConfidentialWorkflowResponse { sdk.v1alpha.ExecutionResult execution_result = 1; } -message GetRegionsResponse { - repeated string regions = 1; +message ProvidedTeesResponse { + repeated sdk.v1alpha.TeeTypeAndRegions tee = 1; } service Client { @@ -1117,7 +1117,7 @@ service Client { }; rpc Execute(ConfidentialWorkflowRequest) returns (ConfidentialWorkflowResponse); - rpc GetRegions(google.protobuf.Empty) returns (GetRegionsResponse); + rpc ProvidedTees(google.protobuf.Empty) returns (ProvidedTeesResponse); } ` @@ -1581,18 +1581,7 @@ enum TeeType { message TeeTypeAndRegions { TeeType type = 1; - repeated string regions = 2; -} - -message TeeTypeSelection { - repeated TeeTypeAndRegions types = 1; -} - -message Tee { - oneof type { - google.protobuf.Empty any = 1; - TeeTypeSelection type_selection = 2; - } + repeated string regions = 3; } message TriggerSubscriptionRequest { @@ -1604,6 +1593,21 @@ message Trigger { google.protobuf.Any payload = 2; } +message Regions { + repeated string regions = 1; +} + +message TeeTypesAndRegions { + repeated TeeTypeAndRegions tee_type_and_regions = 1; +} + +message Tee { + oneof item { + Regions any_regions = 1; + TeeTypesAndRegions tee_types_and_regions = 2; + }; +} + message Requirements { Tee tee = 1; } diff --git a/cre/go/sdk/sdk.pb.go b/cre/go/sdk/sdk.pb.go index a7c3d913..cbab098f 100644 --- a/cre/go/sdk/sdk.pb.go +++ b/cre/go/sdk/sdk.pb.go @@ -812,7 +812,7 @@ func (x *TriggerSubscription) GetRequirements() *Requirements { type TeeTypeAndRegions struct { state protoimpl.MessageState `protogen:"open.v1"` Type TeeType `protobuf:"varint,1,opt,name=type,proto3,enum=sdk.v1alpha.TeeType" json:"type,omitempty"` - Regions []string `protobuf:"bytes,2,rep,name=regions,proto3" json:"regions,omitempty"` + Regions []string `protobuf:"bytes,3,rep,name=regions,proto3" json:"regions,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -861,27 +861,27 @@ func (x *TeeTypeAndRegions) GetRegions() []string { return nil } -type TeeTypeSelection struct { +type TriggerSubscriptionRequest struct { state protoimpl.MessageState `protogen:"open.v1"` - Types []*TeeTypeAndRegions `protobuf:"bytes,1,rep,name=types,proto3" json:"types,omitempty"` + Subscriptions []*TriggerSubscription `protobuf:"bytes,1,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } -func (x *TeeTypeSelection) Reset() { - *x = TeeTypeSelection{} +func (x *TriggerSubscriptionRequest) Reset() { + *x = TriggerSubscriptionRequest{} mi := &file_sdk_v1alpha_sdk_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *TeeTypeSelection) String() string { +func (x *TriggerSubscriptionRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*TeeTypeSelection) ProtoMessage() {} +func (*TriggerSubscriptionRequest) ProtoMessage() {} -func (x *TeeTypeSelection) ProtoReflect() protoreflect.Message { +func (x *TriggerSubscriptionRequest) ProtoReflect() protoreflect.Message { mi := &file_sdk_v1alpha_sdk_proto_msgTypes[10] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -893,43 +893,40 @@ func (x *TeeTypeSelection) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TeeTypeSelection.ProtoReflect.Descriptor instead. -func (*TeeTypeSelection) Descriptor() ([]byte, []int) { +// Deprecated: Use TriggerSubscriptionRequest.ProtoReflect.Descriptor instead. +func (*TriggerSubscriptionRequest) Descriptor() ([]byte, []int) { return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{10} } -func (x *TeeTypeSelection) GetTypes() []*TeeTypeAndRegions { +func (x *TriggerSubscriptionRequest) GetSubscriptions() []*TriggerSubscription { if x != nil { - return x.Types + return x.Subscriptions } return nil } -type Tee struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Type: - // - // *Tee_Any - // *Tee_TypeSelection - Type isTee_Type `protobuf_oneof:"type"` +type Trigger struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Payload *anypb.Any `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } -func (x *Tee) Reset() { - *x = Tee{} +func (x *Trigger) Reset() { + *x = Trigger{} mi := &file_sdk_v1alpha_sdk_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *Tee) String() string { +func (x *Trigger) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Tee) ProtoMessage() {} +func (*Trigger) ProtoMessage() {} -func (x *Tee) ProtoReflect() protoreflect.Message { +func (x *Trigger) ProtoReflect() protoreflect.Message { mi := &file_sdk_v1alpha_sdk_proto_msgTypes[11] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -941,74 +938,91 @@ func (x *Tee) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Tee.ProtoReflect.Descriptor instead. -func (*Tee) Descriptor() ([]byte, []int) { +// Deprecated: Use Trigger.ProtoReflect.Descriptor instead. +func (*Trigger) Descriptor() ([]byte, []int) { return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{11} } -func (x *Tee) GetType() isTee_Type { +func (x *Trigger) GetId() uint64 { if x != nil { - return x.Type + return x.Id } - return nil + return 0 } -func (x *Tee) GetAny() *emptypb.Empty { +func (x *Trigger) GetPayload() *anypb.Any { if x != nil { - if x, ok := x.Type.(*Tee_Any); ok { - return x.Any - } + return x.Payload } return nil } -func (x *Tee) GetTypeSelection() *TeeTypeSelection { - if x != nil { - if x, ok := x.Type.(*Tee_TypeSelection); ok { - return x.TypeSelection - } - } - return nil +type Regions struct { + state protoimpl.MessageState `protogen:"open.v1"` + Regions []string `protobuf:"bytes,1,rep,name=regions,proto3" json:"regions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -type isTee_Type interface { - isTee_Type() +func (x *Regions) Reset() { + *x = Regions{} + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } -type Tee_Any struct { - Any *emptypb.Empty `protobuf:"bytes,1,opt,name=any,proto3,oneof"` +func (x *Regions) String() string { + return protoimpl.X.MessageStringOf(x) } -type Tee_TypeSelection struct { - TypeSelection *TeeTypeSelection `protobuf:"bytes,2,opt,name=type_selection,json=typeSelection,proto3,oneof"` +func (*Regions) ProtoMessage() {} + +func (x *Regions) ProtoReflect() protoreflect.Message { + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (*Tee_Any) isTee_Type() {} +// Deprecated: Use Regions.ProtoReflect.Descriptor instead. +func (*Regions) Descriptor() ([]byte, []int) { + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{12} +} -func (*Tee_TypeSelection) isTee_Type() {} +func (x *Regions) GetRegions() []string { + if x != nil { + return x.Regions + } + return nil +} -type TriggerSubscriptionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Subscriptions []*TriggerSubscription `protobuf:"bytes,1,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +type TeeTypesAndRegions struct { + state protoimpl.MessageState `protogen:"open.v1"` + TeeTypeAndRegions []*TeeTypeAndRegions `protobuf:"bytes,1,rep,name=tee_type_and_regions,json=teeTypeAndRegions,proto3" json:"tee_type_and_regions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } -func (x *TriggerSubscriptionRequest) Reset() { - *x = TriggerSubscriptionRequest{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[12] +func (x *TeeTypesAndRegions) Reset() { + *x = TeeTypesAndRegions{} + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *TriggerSubscriptionRequest) String() string { +func (x *TeeTypesAndRegions) String() string { return protoimpl.X.MessageStringOf(x) } -func (*TriggerSubscriptionRequest) ProtoMessage() {} +func (*TeeTypesAndRegions) ProtoMessage() {} -func (x *TriggerSubscriptionRequest) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[12] +func (x *TeeTypesAndRegions) ProtoReflect() protoreflect.Message { + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[13] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1019,41 +1033,44 @@ func (x *TriggerSubscriptionRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TriggerSubscriptionRequest.ProtoReflect.Descriptor instead. -func (*TriggerSubscriptionRequest) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{12} +// Deprecated: Use TeeTypesAndRegions.ProtoReflect.Descriptor instead. +func (*TeeTypesAndRegions) Descriptor() ([]byte, []int) { + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{13} } -func (x *TriggerSubscriptionRequest) GetSubscriptions() []*TriggerSubscription { +func (x *TeeTypesAndRegions) GetTeeTypeAndRegions() []*TeeTypeAndRegions { if x != nil { - return x.Subscriptions + return x.TeeTypeAndRegions } return nil } -type Trigger struct { - state protoimpl.MessageState `protogen:"open.v1"` - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Payload *anypb.Any `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` +type Tee struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Item: + // + // *Tee_AnyRegions + // *Tee_TeeTypesAndRegions + Item isTee_Item `protobuf_oneof:"item"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } -func (x *Trigger) Reset() { - *x = Trigger{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[13] +func (x *Tee) Reset() { + *x = Tee{} + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -func (x *Trigger) String() string { +func (x *Tee) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Trigger) ProtoMessage() {} +func (*Tee) ProtoMessage() {} -func (x *Trigger) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[13] +func (x *Tee) ProtoReflect() protoreflect.Message { + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[14] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1064,25 +1081,52 @@ func (x *Trigger) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Trigger.ProtoReflect.Descriptor instead. -func (*Trigger) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{13} +// Deprecated: Use Tee.ProtoReflect.Descriptor instead. +func (*Tee) Descriptor() ([]byte, []int) { + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{14} } -func (x *Trigger) GetId() uint64 { +func (x *Tee) GetItem() isTee_Item { if x != nil { - return x.Id + return x.Item } - return 0 + return nil } -func (x *Trigger) GetPayload() *anypb.Any { +func (x *Tee) GetAnyRegions() *Regions { if x != nil { - return x.Payload + if x, ok := x.Item.(*Tee_AnyRegions); ok { + return x.AnyRegions + } + } + return nil +} + +func (x *Tee) GetTeeTypesAndRegions() *TeeTypesAndRegions { + if x != nil { + if x, ok := x.Item.(*Tee_TeeTypesAndRegions); ok { + return x.TeeTypesAndRegions + } } return nil } +type isTee_Item interface { + isTee_Item() +} + +type Tee_AnyRegions struct { + AnyRegions *Regions `protobuf:"bytes,1,opt,name=any_regions,json=anyRegions,proto3,oneof"` +} + +type Tee_TeeTypesAndRegions struct { + TeeTypesAndRegions *TeeTypesAndRegions `protobuf:"bytes,2,opt,name=tee_types_and_regions,json=teeTypesAndRegions,proto3,oneof"` +} + +func (*Tee_AnyRegions) isTee_Item() {} + +func (*Tee_TeeTypesAndRegions) isTee_Item() {} + type Requirements struct { state protoimpl.MessageState `protogen:"open.v1"` Tee *Tee `protobuf:"bytes,1,opt,name=tee,proto3" json:"tee,omitempty"` @@ -1092,7 +1136,7 @@ type Requirements struct { func (x *Requirements) Reset() { *x = Requirements{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[14] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1104,7 +1148,7 @@ func (x *Requirements) String() string { func (*Requirements) ProtoMessage() {} func (x *Requirements) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[14] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[15] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1117,7 +1161,7 @@ func (x *Requirements) ProtoReflect() protoreflect.Message { // Deprecated: Use Requirements.ProtoReflect.Descriptor instead. func (*Requirements) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{14} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{15} } func (x *Requirements) GetTee() *Tee { @@ -1136,7 +1180,7 @@ type AwaitCapabilitiesRequest struct { func (x *AwaitCapabilitiesRequest) Reset() { *x = AwaitCapabilitiesRequest{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[15] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1148,7 +1192,7 @@ func (x *AwaitCapabilitiesRequest) String() string { func (*AwaitCapabilitiesRequest) ProtoMessage() {} func (x *AwaitCapabilitiesRequest) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[15] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[16] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1161,7 +1205,7 @@ func (x *AwaitCapabilitiesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use AwaitCapabilitiesRequest.ProtoReflect.Descriptor instead. func (*AwaitCapabilitiesRequest) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{15} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{16} } func (x *AwaitCapabilitiesRequest) GetIds() []int32 { @@ -1180,7 +1224,7 @@ type AwaitCapabilitiesResponse struct { func (x *AwaitCapabilitiesResponse) Reset() { *x = AwaitCapabilitiesResponse{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[16] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1192,7 +1236,7 @@ func (x *AwaitCapabilitiesResponse) String() string { func (*AwaitCapabilitiesResponse) ProtoMessage() {} func (x *AwaitCapabilitiesResponse) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[16] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[17] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1205,7 +1249,7 @@ func (x *AwaitCapabilitiesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use AwaitCapabilitiesResponse.ProtoReflect.Descriptor instead. func (*AwaitCapabilitiesResponse) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{16} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{17} } func (x *AwaitCapabilitiesResponse) GetResponses() map[int32]*CapabilityResponse { @@ -1230,7 +1274,7 @@ type ExecuteRequest struct { func (x *ExecuteRequest) Reset() { *x = ExecuteRequest{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[17] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1242,7 +1286,7 @@ func (x *ExecuteRequest) String() string { func (*ExecuteRequest) ProtoMessage() {} func (x *ExecuteRequest) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[17] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[18] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1255,7 +1299,7 @@ func (x *ExecuteRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ExecuteRequest.ProtoReflect.Descriptor instead. func (*ExecuteRequest) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{17} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{18} } func (x *ExecuteRequest) GetConfig() []byte { @@ -1327,7 +1371,7 @@ type ExecutionResult struct { func (x *ExecutionResult) Reset() { *x = ExecutionResult{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[18] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1339,7 +1383,7 @@ func (x *ExecutionResult) String() string { func (*ExecutionResult) ProtoMessage() {} func (x *ExecutionResult) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[18] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[19] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1352,7 +1396,7 @@ func (x *ExecutionResult) ProtoReflect() protoreflect.Message { // Deprecated: Use ExecutionResult.ProtoReflect.Descriptor instead. func (*ExecutionResult) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{18} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{19} } func (x *ExecutionResult) GetResult() isExecutionResult_Result { @@ -1421,7 +1465,7 @@ type GetSecretsRequest struct { func (x *GetSecretsRequest) Reset() { *x = GetSecretsRequest{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[19] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1433,7 +1477,7 @@ func (x *GetSecretsRequest) String() string { func (*GetSecretsRequest) ProtoMessage() {} func (x *GetSecretsRequest) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[19] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[20] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1446,7 +1490,7 @@ func (x *GetSecretsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSecretsRequest.ProtoReflect.Descriptor instead. func (*GetSecretsRequest) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{19} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{20} } func (x *GetSecretsRequest) GetRequests() []*SecretRequest { @@ -1472,7 +1516,7 @@ type AwaitSecretsRequest struct { func (x *AwaitSecretsRequest) Reset() { *x = AwaitSecretsRequest{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[20] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1484,7 +1528,7 @@ func (x *AwaitSecretsRequest) String() string { func (*AwaitSecretsRequest) ProtoMessage() {} func (x *AwaitSecretsRequest) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[20] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[21] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1497,7 +1541,7 @@ func (x *AwaitSecretsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use AwaitSecretsRequest.ProtoReflect.Descriptor instead. func (*AwaitSecretsRequest) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{20} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{21} } func (x *AwaitSecretsRequest) GetIds() []int32 { @@ -1516,7 +1560,7 @@ type AwaitSecretsResponse struct { func (x *AwaitSecretsResponse) Reset() { *x = AwaitSecretsResponse{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[21] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1528,7 +1572,7 @@ func (x *AwaitSecretsResponse) String() string { func (*AwaitSecretsResponse) ProtoMessage() {} func (x *AwaitSecretsResponse) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[21] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[22] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1541,7 +1585,7 @@ func (x *AwaitSecretsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use AwaitSecretsResponse.ProtoReflect.Descriptor instead. func (*AwaitSecretsResponse) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{21} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{22} } func (x *AwaitSecretsResponse) GetResponses() map[int32]*SecretResponses { @@ -1561,7 +1605,7 @@ type SecretRequest struct { func (x *SecretRequest) Reset() { *x = SecretRequest{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[22] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1573,7 +1617,7 @@ func (x *SecretRequest) String() string { func (*SecretRequest) ProtoMessage() {} func (x *SecretRequest) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[22] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[23] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1586,7 +1630,7 @@ func (x *SecretRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SecretRequest.ProtoReflect.Descriptor instead. func (*SecretRequest) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{22} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{23} } func (x *SecretRequest) GetId() string { @@ -1615,7 +1659,7 @@ type Secret struct { func (x *Secret) Reset() { *x = Secret{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[23] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1627,7 +1671,7 @@ func (x *Secret) String() string { func (*Secret) ProtoMessage() {} func (x *Secret) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[23] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[24] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1640,7 +1684,7 @@ func (x *Secret) ProtoReflect() protoreflect.Message { // Deprecated: Use Secret.ProtoReflect.Descriptor instead. func (*Secret) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{23} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{24} } func (x *Secret) GetId() string { @@ -1683,7 +1727,7 @@ type SecretError struct { func (x *SecretError) Reset() { *x = SecretError{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[24] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1695,7 +1739,7 @@ func (x *SecretError) String() string { func (*SecretError) ProtoMessage() {} func (x *SecretError) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[24] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[25] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1708,7 +1752,7 @@ func (x *SecretError) ProtoReflect() protoreflect.Message { // Deprecated: Use SecretError.ProtoReflect.Descriptor instead. func (*SecretError) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{24} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{25} } func (x *SecretError) GetId() string { @@ -1752,7 +1796,7 @@ type SecretResponse struct { func (x *SecretResponse) Reset() { *x = SecretResponse{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[25] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1764,7 +1808,7 @@ func (x *SecretResponse) String() string { func (*SecretResponse) ProtoMessage() {} func (x *SecretResponse) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[25] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[26] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1777,7 +1821,7 @@ func (x *SecretResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SecretResponse.ProtoReflect.Descriptor instead. func (*SecretResponse) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{25} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{26} } func (x *SecretResponse) GetResponse() isSecretResponse_Response { @@ -1830,7 +1874,7 @@ type SecretResponses struct { func (x *SecretResponses) Reset() { *x = SecretResponses{} - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[26] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1842,7 +1886,7 @@ func (x *SecretResponses) String() string { func (*SecretResponses) ProtoMessage() {} func (x *SecretResponses) ProtoReflect() protoreflect.Message { - mi := &file_sdk_v1alpha_sdk_proto_msgTypes[26] + mi := &file_sdk_v1alpha_sdk_proto_msgTypes[27] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1855,7 +1899,7 @@ func (x *SecretResponses) ProtoReflect() protoreflect.Message { // Deprecated: Use SecretResponses.ProtoReflect.Descriptor instead. func (*SecretResponses) Descriptor() ([]byte, []int) { - return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{26} + return file_sdk_v1alpha_sdk_proto_rawDescGZIP(), []int{27} } func (x *SecretResponses) GetResponses() []*SecretResponse { @@ -1920,18 +1964,21 @@ const file_sdk_v1alpha_sdk_proto_rawDesc = "" + "\frequirements\x18\x04 \x01(\v2\x19.sdk.v1alpha.RequirementsR\frequirements\"W\n" + "\x11TeeTypeAndRegions\x12(\n" + "\x04type\x18\x01 \x01(\x0e2\x14.sdk.v1alpha.TeeTypeR\x04type\x12\x18\n" + - "\aregions\x18\x02 \x03(\tR\aregions\"H\n" + - "\x10TeeTypeSelection\x124\n" + - "\x05types\x18\x01 \x03(\v2\x1e.sdk.v1alpha.TeeTypeAndRegionsR\x05types\"\x81\x01\n" + - "\x03Tee\x12*\n" + - "\x03any\x18\x01 \x01(\v2\x16.google.protobuf.EmptyH\x00R\x03any\x12F\n" + - "\x0etype_selection\x18\x02 \x01(\v2\x1d.sdk.v1alpha.TeeTypeSelectionH\x00R\rtypeSelectionB\x06\n" + - "\x04type\"d\n" + + "\aregions\x18\x03 \x03(\tR\aregions\"d\n" + "\x1aTriggerSubscriptionRequest\x12F\n" + "\rsubscriptions\x18\x01 \x03(\v2 .sdk.v1alpha.TriggerSubscriptionR\rsubscriptions\"I\n" + "\aTrigger\x12\x0e\n" + "\x02id\x18\x01 \x01(\x04R\x02id\x12.\n" + - "\apayload\x18\x02 \x01(\v2\x14.google.protobuf.AnyR\apayload\"2\n" + + "\apayload\x18\x02 \x01(\v2\x14.google.protobuf.AnyR\apayload\"#\n" + + "\aRegions\x12\x18\n" + + "\aregions\x18\x01 \x03(\tR\aregions\"e\n" + + "\x12TeeTypesAndRegions\x12O\n" + + "\x14tee_type_and_regions\x18\x01 \x03(\v2\x1e.sdk.v1alpha.TeeTypeAndRegionsR\x11teeTypeAndRegions\"\x9c\x01\n" + + "\x03Tee\x127\n" + + "\vany_regions\x18\x01 \x01(\v2\x14.sdk.v1alpha.RegionsH\x00R\n" + + "anyRegions\x12T\n" + + "\x15tee_types_and_regions\x18\x02 \x01(\v2\x1f.sdk.v1alpha.TeeTypesAndRegionsH\x00R\x12teeTypesAndRegionsB\x06\n" + + "\x04item\"2\n" + "\fRequirements\x12\"\n" + "\x03tee\x18\x01 \x01(\v2\x10.sdk.v1alpha.TeeR\x03tee\",\n" + "\x18AwaitCapabilitiesRequest\x12\x10\n" + @@ -2009,7 +2056,7 @@ func file_sdk_v1alpha_sdk_proto_rawDescGZIP() []byte { } var file_sdk_v1alpha_sdk_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_sdk_v1alpha_sdk_proto_msgTypes = make([]protoimpl.MessageInfo, 30) +var file_sdk_v1alpha_sdk_proto_msgTypes = make([]protoimpl.MessageInfo, 31) var file_sdk_v1alpha_sdk_proto_goTypes = []any{ (AggregationType)(0), // 0: sdk.v1alpha.AggregationType (Mode)(0), // 1: sdk.v1alpha.Mode @@ -2024,62 +2071,63 @@ var file_sdk_v1alpha_sdk_proto_goTypes = []any{ (*CapabilityResponse)(nil), // 10: sdk.v1alpha.CapabilityResponse (*TriggerSubscription)(nil), // 11: sdk.v1alpha.TriggerSubscription (*TeeTypeAndRegions)(nil), // 12: sdk.v1alpha.TeeTypeAndRegions - (*TeeTypeSelection)(nil), // 13: sdk.v1alpha.TeeTypeSelection - (*Tee)(nil), // 14: sdk.v1alpha.Tee - (*TriggerSubscriptionRequest)(nil), // 15: sdk.v1alpha.TriggerSubscriptionRequest - (*Trigger)(nil), // 16: sdk.v1alpha.Trigger - (*Requirements)(nil), // 17: sdk.v1alpha.Requirements - (*AwaitCapabilitiesRequest)(nil), // 18: sdk.v1alpha.AwaitCapabilitiesRequest - (*AwaitCapabilitiesResponse)(nil), // 19: sdk.v1alpha.AwaitCapabilitiesResponse - (*ExecuteRequest)(nil), // 20: sdk.v1alpha.ExecuteRequest - (*ExecutionResult)(nil), // 21: sdk.v1alpha.ExecutionResult - (*GetSecretsRequest)(nil), // 22: sdk.v1alpha.GetSecretsRequest - (*AwaitSecretsRequest)(nil), // 23: sdk.v1alpha.AwaitSecretsRequest - (*AwaitSecretsResponse)(nil), // 24: sdk.v1alpha.AwaitSecretsResponse - (*SecretRequest)(nil), // 25: sdk.v1alpha.SecretRequest - (*Secret)(nil), // 26: sdk.v1alpha.Secret - (*SecretError)(nil), // 27: sdk.v1alpha.SecretError - (*SecretResponse)(nil), // 28: sdk.v1alpha.SecretResponse - (*SecretResponses)(nil), // 29: sdk.v1alpha.SecretResponses - nil, // 30: sdk.v1alpha.FieldsMap.FieldsEntry - nil, // 31: sdk.v1alpha.AwaitCapabilitiesResponse.ResponsesEntry - nil, // 32: sdk.v1alpha.AwaitSecretsResponse.ResponsesEntry - (*pb.Value)(nil), // 33: values.v1.Value - (*anypb.Any)(nil), // 34: google.protobuf.Any - (*emptypb.Empty)(nil), // 35: google.protobuf.Empty + (*TriggerSubscriptionRequest)(nil), // 13: sdk.v1alpha.TriggerSubscriptionRequest + (*Trigger)(nil), // 14: sdk.v1alpha.Trigger + (*Regions)(nil), // 15: sdk.v1alpha.Regions + (*TeeTypesAndRegions)(nil), // 16: sdk.v1alpha.TeeTypesAndRegions + (*Tee)(nil), // 17: sdk.v1alpha.Tee + (*Requirements)(nil), // 18: sdk.v1alpha.Requirements + (*AwaitCapabilitiesRequest)(nil), // 19: sdk.v1alpha.AwaitCapabilitiesRequest + (*AwaitCapabilitiesResponse)(nil), // 20: sdk.v1alpha.AwaitCapabilitiesResponse + (*ExecuteRequest)(nil), // 21: sdk.v1alpha.ExecuteRequest + (*ExecutionResult)(nil), // 22: sdk.v1alpha.ExecutionResult + (*GetSecretsRequest)(nil), // 23: sdk.v1alpha.GetSecretsRequest + (*AwaitSecretsRequest)(nil), // 24: sdk.v1alpha.AwaitSecretsRequest + (*AwaitSecretsResponse)(nil), // 25: sdk.v1alpha.AwaitSecretsResponse + (*SecretRequest)(nil), // 26: sdk.v1alpha.SecretRequest + (*Secret)(nil), // 27: sdk.v1alpha.Secret + (*SecretError)(nil), // 28: sdk.v1alpha.SecretError + (*SecretResponse)(nil), // 29: sdk.v1alpha.SecretResponse + (*SecretResponses)(nil), // 30: sdk.v1alpha.SecretResponses + nil, // 31: sdk.v1alpha.FieldsMap.FieldsEntry + nil, // 32: sdk.v1alpha.AwaitCapabilitiesResponse.ResponsesEntry + nil, // 33: sdk.v1alpha.AwaitSecretsResponse.ResponsesEntry + (*pb.Value)(nil), // 34: values.v1.Value + (*anypb.Any)(nil), // 35: google.protobuf.Any + (*emptypb.Empty)(nil), // 36: google.protobuf.Empty } var file_sdk_v1alpha_sdk_proto_depIdxs = []int32{ - 33, // 0: sdk.v1alpha.SimpleConsensusInputs.value:type_name -> values.v1.Value + 34, // 0: sdk.v1alpha.SimpleConsensusInputs.value:type_name -> values.v1.Value 5, // 1: sdk.v1alpha.SimpleConsensusInputs.descriptors:type_name -> sdk.v1alpha.ConsensusDescriptor - 33, // 2: sdk.v1alpha.SimpleConsensusInputs.default:type_name -> values.v1.Value - 30, // 3: sdk.v1alpha.FieldsMap.fields:type_name -> sdk.v1alpha.FieldsMap.FieldsEntry + 34, // 2: sdk.v1alpha.SimpleConsensusInputs.default:type_name -> values.v1.Value + 31, // 3: sdk.v1alpha.FieldsMap.fields:type_name -> sdk.v1alpha.FieldsMap.FieldsEntry 0, // 4: sdk.v1alpha.ConsensusDescriptor.aggregation:type_name -> sdk.v1alpha.AggregationType 4, // 5: sdk.v1alpha.ConsensusDescriptor.fields_map:type_name -> sdk.v1alpha.FieldsMap 8, // 6: sdk.v1alpha.ReportResponse.sigs:type_name -> sdk.v1alpha.AttributedSignature - 34, // 7: sdk.v1alpha.CapabilityRequest.payload:type_name -> google.protobuf.Any - 34, // 8: sdk.v1alpha.CapabilityResponse.payload:type_name -> google.protobuf.Any - 34, // 9: sdk.v1alpha.TriggerSubscription.payload:type_name -> google.protobuf.Any - 17, // 10: sdk.v1alpha.TriggerSubscription.requirements:type_name -> sdk.v1alpha.Requirements + 35, // 7: sdk.v1alpha.CapabilityRequest.payload:type_name -> google.protobuf.Any + 35, // 8: sdk.v1alpha.CapabilityResponse.payload:type_name -> google.protobuf.Any + 35, // 9: sdk.v1alpha.TriggerSubscription.payload:type_name -> google.protobuf.Any + 18, // 10: sdk.v1alpha.TriggerSubscription.requirements:type_name -> sdk.v1alpha.Requirements 2, // 11: sdk.v1alpha.TeeTypeAndRegions.type:type_name -> sdk.v1alpha.TeeType - 12, // 12: sdk.v1alpha.TeeTypeSelection.types:type_name -> sdk.v1alpha.TeeTypeAndRegions - 35, // 13: sdk.v1alpha.Tee.any:type_name -> google.protobuf.Empty - 13, // 14: sdk.v1alpha.Tee.type_selection:type_name -> sdk.v1alpha.TeeTypeSelection - 11, // 15: sdk.v1alpha.TriggerSubscriptionRequest.subscriptions:type_name -> sdk.v1alpha.TriggerSubscription - 34, // 16: sdk.v1alpha.Trigger.payload:type_name -> google.protobuf.Any - 14, // 17: sdk.v1alpha.Requirements.tee:type_name -> sdk.v1alpha.Tee - 31, // 18: sdk.v1alpha.AwaitCapabilitiesResponse.responses:type_name -> sdk.v1alpha.AwaitCapabilitiesResponse.ResponsesEntry - 35, // 19: sdk.v1alpha.ExecuteRequest.subscribe:type_name -> google.protobuf.Empty - 16, // 20: sdk.v1alpha.ExecuteRequest.trigger:type_name -> sdk.v1alpha.Trigger - 33, // 21: sdk.v1alpha.ExecutionResult.value:type_name -> values.v1.Value - 15, // 22: sdk.v1alpha.ExecutionResult.trigger_subscriptions:type_name -> sdk.v1alpha.TriggerSubscriptionRequest - 25, // 23: sdk.v1alpha.GetSecretsRequest.requests:type_name -> sdk.v1alpha.SecretRequest - 32, // 24: sdk.v1alpha.AwaitSecretsResponse.responses:type_name -> sdk.v1alpha.AwaitSecretsResponse.ResponsesEntry - 26, // 25: sdk.v1alpha.SecretResponse.secret:type_name -> sdk.v1alpha.Secret - 27, // 26: sdk.v1alpha.SecretResponse.error:type_name -> sdk.v1alpha.SecretError - 28, // 27: sdk.v1alpha.SecretResponses.responses:type_name -> sdk.v1alpha.SecretResponse + 11, // 12: sdk.v1alpha.TriggerSubscriptionRequest.subscriptions:type_name -> sdk.v1alpha.TriggerSubscription + 35, // 13: sdk.v1alpha.Trigger.payload:type_name -> google.protobuf.Any + 12, // 14: sdk.v1alpha.TeeTypesAndRegions.tee_type_and_regions:type_name -> sdk.v1alpha.TeeTypeAndRegions + 15, // 15: sdk.v1alpha.Tee.any_regions:type_name -> sdk.v1alpha.Regions + 16, // 16: sdk.v1alpha.Tee.tee_types_and_regions:type_name -> sdk.v1alpha.TeeTypesAndRegions + 17, // 17: sdk.v1alpha.Requirements.tee:type_name -> sdk.v1alpha.Tee + 32, // 18: sdk.v1alpha.AwaitCapabilitiesResponse.responses:type_name -> sdk.v1alpha.AwaitCapabilitiesResponse.ResponsesEntry + 36, // 19: sdk.v1alpha.ExecuteRequest.subscribe:type_name -> google.protobuf.Empty + 14, // 20: sdk.v1alpha.ExecuteRequest.trigger:type_name -> sdk.v1alpha.Trigger + 34, // 21: sdk.v1alpha.ExecutionResult.value:type_name -> values.v1.Value + 13, // 22: sdk.v1alpha.ExecutionResult.trigger_subscriptions:type_name -> sdk.v1alpha.TriggerSubscriptionRequest + 26, // 23: sdk.v1alpha.GetSecretsRequest.requests:type_name -> sdk.v1alpha.SecretRequest + 33, // 24: sdk.v1alpha.AwaitSecretsResponse.responses:type_name -> sdk.v1alpha.AwaitSecretsResponse.ResponsesEntry + 27, // 25: sdk.v1alpha.SecretResponse.secret:type_name -> sdk.v1alpha.Secret + 28, // 26: sdk.v1alpha.SecretResponse.error:type_name -> sdk.v1alpha.SecretError + 29, // 27: sdk.v1alpha.SecretResponses.responses:type_name -> sdk.v1alpha.SecretResponse 5, // 28: sdk.v1alpha.FieldsMap.FieldsEntry.value:type_name -> sdk.v1alpha.ConsensusDescriptor 10, // 29: sdk.v1alpha.AwaitCapabilitiesResponse.ResponsesEntry.value:type_name -> sdk.v1alpha.CapabilityResponse - 29, // 30: sdk.v1alpha.AwaitSecretsResponse.ResponsesEntry.value:type_name -> sdk.v1alpha.SecretResponses + 30, // 30: sdk.v1alpha.AwaitSecretsResponse.ResponsesEntry.value:type_name -> sdk.v1alpha.SecretResponses 31, // [31:31] is the sub-list for method output_type 31, // [31:31] is the sub-list for method input_type 31, // [31:31] is the sub-list for extension type_name @@ -2104,20 +2152,20 @@ func file_sdk_v1alpha_sdk_proto_init() { (*CapabilityResponse_Payload)(nil), (*CapabilityResponse_Error)(nil), } - file_sdk_v1alpha_sdk_proto_msgTypes[11].OneofWrappers = []any{ - (*Tee_Any)(nil), - (*Tee_TypeSelection)(nil), + file_sdk_v1alpha_sdk_proto_msgTypes[14].OneofWrappers = []any{ + (*Tee_AnyRegions)(nil), + (*Tee_TeeTypesAndRegions)(nil), } - file_sdk_v1alpha_sdk_proto_msgTypes[17].OneofWrappers = []any{ + file_sdk_v1alpha_sdk_proto_msgTypes[18].OneofWrappers = []any{ (*ExecuteRequest_Subscribe)(nil), (*ExecuteRequest_Trigger)(nil), } - file_sdk_v1alpha_sdk_proto_msgTypes[18].OneofWrappers = []any{ + file_sdk_v1alpha_sdk_proto_msgTypes[19].OneofWrappers = []any{ (*ExecutionResult_Value)(nil), (*ExecutionResult_Error)(nil), (*ExecutionResult_TriggerSubscriptions)(nil), } - file_sdk_v1alpha_sdk_proto_msgTypes[25].OneofWrappers = []any{ + file_sdk_v1alpha_sdk_proto_msgTypes[26].OneofWrappers = []any{ (*SecretResponse_Secret)(nil), (*SecretResponse_Error)(nil), } @@ -2127,7 +2175,7 @@ func file_sdk_v1alpha_sdk_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_sdk_v1alpha_sdk_proto_rawDesc), len(file_sdk_v1alpha_sdk_proto_rawDesc)), NumEnums: 3, - NumMessages: 30, + NumMessages: 31, NumExtensions: 0, NumServices: 0, }, diff --git a/cre/sdk/v1alpha/sdk.proto b/cre/sdk/v1alpha/sdk.proto index 3c0c4b80..0a64d460 100644 --- a/cre/sdk/v1alpha/sdk.proto +++ b/cre/sdk/v1alpha/sdk.proto @@ -87,18 +87,7 @@ enum TeeType { message TeeTypeAndRegions { TeeType type = 1; - repeated string regions = 2; -} - -message TeeTypeSelection { - repeated TeeTypeAndRegions types = 1; -} - -message Tee { - oneof type { - google.protobuf.Empty any = 1; - TeeTypeSelection type_selection = 2; - } + repeated string regions = 3; } message TriggerSubscriptionRequest { @@ -110,6 +99,21 @@ message Trigger { google.protobuf.Any payload = 2; } +message Regions { + repeated string regions = 1; +} + +message TeeTypesAndRegions { + repeated TeeTypeAndRegions tee_type_and_regions = 1; +} + +message Tee { + oneof item { + Regions any_regions = 1; + TeeTypesAndRegions tee_types_and_regions = 2; + }; +} + message Requirements { Tee tee = 1; } From 7061fbfd5189abbe314f6b93a34824c8b98ad865 Mon Sep 17 00:00:00 2001 From: Ryan Tinianov Date: Mon, 4 May 2026 12:13:22 -0400 Subject: [PATCH 26/27] Add unspecified tee type --- cre/go/installer/pkg/embedded_gen.go | 3 ++- cre/go/sdk/sdk.pb.go | 18 +++++++++++------- cre/sdk/v1alpha/sdk.proto | 3 ++- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/cre/go/installer/pkg/embedded_gen.go b/cre/go/installer/pkg/embedded_gen.go index 24269cad..709dcf06 100755 --- a/cre/go/installer/pkg/embedded_gen.go +++ b/cre/go/installer/pkg/embedded_gen.go @@ -1576,7 +1576,8 @@ message TriggerSubscription { } enum TeeType { - TEE_TYPE_AWS_NITRO = 0; + TEE_TYPE_UNSPECIFIED = 0; + TEE_TYPE_AWS_NITRO = 1; } message TeeTypeAndRegions { diff --git a/cre/go/sdk/sdk.pb.go b/cre/go/sdk/sdk.pb.go index cbab098f..383abf8f 100644 --- a/cre/go/sdk/sdk.pb.go +++ b/cre/go/sdk/sdk.pb.go @@ -131,16 +131,19 @@ func (Mode) EnumDescriptor() ([]byte, []int) { type TeeType int32 const ( - TeeType_TEE_TYPE_AWS_NITRO TeeType = 0 + TeeType_TEE_TYPE_UNSPECIFIED TeeType = 0 + TeeType_TEE_TYPE_AWS_NITRO TeeType = 1 ) // Enum value maps for TeeType. var ( TeeType_name = map[int32]string{ - 0: "TEE_TYPE_AWS_NITRO", + 0: "TEE_TYPE_UNSPECIFIED", + 1: "TEE_TYPE_AWS_NITRO", } TeeType_value = map[string]int32{ - "TEE_TYPE_AWS_NITRO": 0, + "TEE_TYPE_UNSPECIFIED": 0, + "TEE_TYPE_AWS_NITRO": 1, } ) @@ -851,7 +854,7 @@ func (x *TeeTypeAndRegions) GetType() TeeType { if x != nil { return x.Type } - return TeeType_TEE_TYPE_AWS_NITRO + return TeeType_TEE_TYPE_UNSPECIFIED } func (x *TeeTypeAndRegions) GetRegions() []string { @@ -2039,9 +2042,10 @@ const file_sdk_v1alpha_sdk_proto_rawDesc = "" + "\x04Mode\x12\x14\n" + "\x10MODE_UNSPECIFIED\x10\x00\x12\f\n" + "\bMODE_DON\x10\x01\x12\r\n" + - "\tMODE_NODE\x10\x02*!\n" + - "\aTeeType\x12\x16\n" + - "\x12TEE_TYPE_AWS_NITRO\x10\x00b\x06proto3" + "\tMODE_NODE\x10\x02*;\n" + + "\aTeeType\x12\x18\n" + + "\x14TEE_TYPE_UNSPECIFIED\x10\x00\x12\x16\n" + + "\x12TEE_TYPE_AWS_NITRO\x10\x01b\x06proto3" var ( file_sdk_v1alpha_sdk_proto_rawDescOnce sync.Once diff --git a/cre/sdk/v1alpha/sdk.proto b/cre/sdk/v1alpha/sdk.proto index 0a64d460..58fba4f6 100644 --- a/cre/sdk/v1alpha/sdk.proto +++ b/cre/sdk/v1alpha/sdk.proto @@ -82,7 +82,8 @@ message TriggerSubscription { } enum TeeType { - TEE_TYPE_AWS_NITRO = 0; + TEE_TYPE_UNSPECIFIED = 0; + TEE_TYPE_AWS_NITRO = 1; } message TeeTypeAndRegions { From 95fa2df1017b54af1cc78541b8c66a6158b4d4d8 Mon Sep 17 00:00:00 2001 From: "app-token-issuer-engops[bot]" <144731339+app-token-issuer-engops[bot]@users.noreply.github.com> Date: Mon, 4 May 2026 16:14:51 +0000 Subject: [PATCH 27/27] Auto-fix: buf format, gofmt, go generate, go mod tidy --- .../compute/confidentialworkflow/v1alpha/client.proto | 4 ++-- cre/go/installer/pkg/embedded_gen.go | 6 +++--- cre/sdk/v1alpha/sdk.proto | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto b/cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto index b17503a7..667db2d6 100644 --- a/cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto +++ b/cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto @@ -2,9 +2,9 @@ syntax = "proto3"; package capabilities.compute.confidentialworkflow.v1alpha; -import "tools/generator/v1alpha/cre_metadata.proto"; -import "sdk/v1alpha/sdk.proto"; import "google/protobuf/empty.proto"; +import "sdk/v1alpha/sdk.proto"; +import "tools/generator/v1alpha/cre_metadata.proto"; message SecretIdentifier { string key = 1; diff --git a/cre/go/installer/pkg/embedded_gen.go b/cre/go/installer/pkg/embedded_gen.go index 709dcf06..e9c1afb4 100755 --- a/cre/go/installer/pkg/embedded_gen.go +++ b/cre/go/installer/pkg/embedded_gen.go @@ -1059,9 +1059,9 @@ const computeConfidentialworkflowV1alphaClientEmbedded = `syntax = "proto3"; package capabilities.compute.confidentialworkflow.v1alpha; -import "tools/generator/v1alpha/cre_metadata.proto"; -import "sdk/v1alpha/sdk.proto"; import "google/protobuf/empty.proto"; +import "sdk/v1alpha/sdk.proto"; +import "tools/generator/v1alpha/cre_metadata.proto"; message SecretIdentifier { string key = 1; @@ -1606,7 +1606,7 @@ message Tee { oneof item { Regions any_regions = 1; TeeTypesAndRegions tee_types_and_regions = 2; - }; + } } message Requirements { diff --git a/cre/sdk/v1alpha/sdk.proto b/cre/sdk/v1alpha/sdk.proto index 58fba4f6..bfa6c715 100644 --- a/cre/sdk/v1alpha/sdk.proto +++ b/cre/sdk/v1alpha/sdk.proto @@ -112,7 +112,7 @@ message Tee { oneof item { Regions any_regions = 1; TeeTypesAndRegions tee_types_and_regions = 2; - }; + } } message Requirements {