.NET SDK binding for register_credential

オープン
#137 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
csharp, rust
領域
api, security

調査の方向性

まず既存の Python binding と issue #89 を読み、次に register_credential と CredentialEntry::with_static_resolver を追跡します。.NET コールバックの形、ライフタイムの扱い、秘匿化した例外のマッピングを定義します。.NET FFI サーフェスが resolver コールバックをサポートし、C ABI を通じて例外メッセージを公開しない状態を完了とします。

索引モデルが issue の本文から書いたものです。

説明

enhancement

Follow-up from #89 (Scoped credentials for outgoing HTTP).

The .NET SDK has no FFI surface for register_credential yet (Python is done). A faithful binding must:

  • Marshal a C# delegate across the C-ABI as the resolver callback.
  • Keep a GC root on the Func<string> for the sandbox's lifetime.
  • Map any .NET exception thrown from the delegate back to Rust as the redacted Err(String) — without letting the exception message ride across the boundary.

A constrained first cut (FFI accepting only a static token, mapped onto CredentialEntry::with_static_resolver) is feasible in isolation, but was deliberately deferred so the .NET surface can be designed around the callback shape from day one rather than a static-only stub that would later need a breaking rename.

主要言語
Rust
スター
83
フォーク
8
平均マージ
2日 20時間
マージ済み PR(30日)
29

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

hyperlight-dev/hyperlight-sandbox のほかの issue

hyperlight-dev/hyperlight-sandbox の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。