Define provider-neutral Service Identity in lampyr.yaml

Đang mở
#23 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 4 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
kubernetes, rust, yaml
Lĩnh vực
backend, infrastructure

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Rust
Star
3
Fork
2
Merge trung bình
3 ngày 57 phút
Pull request đã merge (30 ngày)
17

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của hyperlight-dev/lampyr

Tất cả issue của hyperlight-dev/lampyr

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.