Project Service workload identity securely into Fibers

未关闭
#26 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 4 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
azure, kubernetes, rust

调研方向

Start by reading the Service Identity work in #38 and the related contracts in #23, #24, #25, and #27; coordinate with the Fiberd overhaul before choosing an execution mechanism. The issue calls for synthetic projection tests covering read-only mapping, rotation, path validation, isolation, and error redaction, plus a live federated-login proof. Done also requires documenting trust, ownership, and revocation behavior for the redesigned Fiberd execution model.

由索引模型根据 Issue 内容生成。

描述

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

Goal

Make a Service's projected workload identity available directly inside its hardware-isolated Fibers.

Coordinate with the Fiberd overhaul before choosing the runtime mechanism. Related contracts: #23, #24, #25 and #27.

Required behavior
  • Consume the validated provider-neutral binding, not hardcoded Azure identity behavior in core.
  • Select the declared/generated ServiceAccount and required identity metadata on the execution host appropriate to the new architecture.
  • Map only the approved projected-token directory read-only into that Service's restored Fiber, preserving the token path named by tokenFileEnvironment.
  • Forward only binding-approved environment variable names and their runtime values. Missing/malformed projection must fail explicitly.
  • Validate normalized roots/paths, containment, symlinks, and regular token files; reject path escape or broad host mounts.
  • Mount the directory, not a copied token or a single inode, so projected token rotation is visible.
  • Identity must be supplied at restore/execution time, never included in the reusable snapshot.
  • Azure's workload token is read by Azure CLI/SDK inside the Fiber; no broker or host process should authenticate on the application's behalf.
Secrecy and isolation
  • No token bytes in snapshots, OCI images, ConfigMaps, annotations, Clone payloads, command arguments, error output, logs, or audit records.
  • Identity variable values must not accidentally become ambient registry-pull credentials.
  • A Fiber cannot read another Service's projection or the host's Kubernetes API token.
  • Network permissions remain a separate explicit policy; identity alone grants no outbound access.
  • Do not add a credential sidecar or application Pod to satisfy projection.
Acceptance

Use synthetic projected directories for unit tests: read-only mapping, approved names only, rotation, missing file, symlink escape, foreign Service identity, and error redaction. Include a live federated-login proof without workstation credentials in the application.

Document trust/ownership and revocation/deletion behavior with the redesigned Fiberd execution model.

主要语言
Rust
星标
3
派生
2
平均合并
3 天 57 分钟
30 天内合并 PR
17

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

hyperlight-dev/lampyr 的其他 Issue

查看 hyperlight-dev/lampyr 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。