Define provider-neutral Service Identity in lampyr.yaml

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

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

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

評価

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

調査の方向性

Start by reading the project loading and immutable artifact metadata paths, then trace how ly deploy, status, and delete invoke provider lifecycle operations. Coordinate with issues #24–#27 and #31 because this contract depends on their protocol and integration work. Done means the manifest envelope and structural bounds are validated, opaque config values survive loading and metadata storage, and the specified lifecycle and rejection cases are covered without changing behavior when identity is omitted.

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

説明

Part of the Service Identity work (#38), feature 1 in its inventory.

Goal

Let a Service declare a provider-managed identity in lampyr.yaml without putting cloud-specific interpretation in Lampyr core.

This is general product functionality, not a sample-specific API.

Proposed manifest contract
identity:
  name: tool-identity
  providerName: azure
  config:
    resourceGroup: tool-resources
    createResourceGroup: true
    roleAssignments:
      - role: Reader
  • name is a logical identity key, not an instruction to infer roles, resources, or privileges.
  • providerName selects the installed infrastructure provider. Fail clearly if it differs from the installation or identity support is unavailable.
  • config is an opaque provider-owned mapping. Preserve its values and pass it to the provider; core must not interpret Azure fields, role names, scopes, or defaults.
  • Core validates the envelope, names, and structural resource bounds before mutation.
  • Proposed bounds from the prior specification: 32 KiB serialized config, maximum depth 16, 2,048 value nodes, 1,024 scalars, 4 KiB per serialized scalar, and keys at most 256 bytes without NUL. Keep Rust/Go consumers consistent.
  • Configuration and stored metadata contain no credentials or projected token contents.
  • No identity declaration means no implicit application cloud identity or role assignment.
Integration and acceptance
  • Carry the declaration through project loading and immutable artifact metadata without provider-specific transformations.
  • ly deploy invokes the selected provider identity lifecycle; status/delete use the corresponding saved identity and ownership context.
  • Reject unsupported identity capability before creating partial resources.
  • Cover malformed names, unknown envelope fields, non-object config, oversize/deep inputs, provider mismatch, and opaque nested-value round trips.
  • Do not silently change existing Services' identity behavior when this feature is omitted.
Design boundaries

Coordinate with provider protocol #24, Azure implementation #25, inventory #31, RBAC #27, and runtime projection #26. Runtime Pod/Grant wiring is deliberately separate so the contract can be implemented around the upcoming Fiberd overhaul.

An earlier exploratory prototype contains the previous specification, not an accepted implementation to transplant.

主要言語
Rust
スター
3
フォーク
2
平均マージ
3日 57分
マージ済み PR(30日)
17

環境構築

はじめの一歩

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

hyperlight-dev/lampyr のほかの issue

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

似ている issue

Rust の issue をもっと見る

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

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