coder / coder/envbuilder

Adding CA certificate into Coder template failing build (k8s)

未关闭
#464 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
300
派生
64
平均合并
20 分钟
30 天内合并 PR
1

描述

Using the [devcontainer Coder template](https://github.com/coder/coder/blob/main/examples/templates/kubernetes-devcontainer/main.tf) I'm seeing the following issue when mounting my CA certificates:

```bash
error: temp remount: temp remount: bind mount /ca-certs/ca-file => /.envbuilder/mnt/ca-certs/ca-file: permission denied
```

Adding certificate directory to ENV:
```hcl

locals {
...
"SSL_CERT_DIR" : "/ca-certs"
//or
"SSL_CERT_FILE": "/ca-certs/ca-file"
}
```

```hcl
resource "kubernetes_deployment" "main" {
...

spec {
template {
spec {
...
volume_mount {
name = "ca-file"
mount_path = "/ca-certs/ca-file"
}
}

volume {
name = "ca-file"
secret {
secret_name = "coder-tls"
}
...
}
}
```

Just trying to have the container built trust my private PKI services.

贡献指南

这个仓库没有索引到贡献指南

调研方向

从 examples/templates/kubernetes-devcontainer/main.tf 开始,使用报告中的配置在 Kubernetes 中复现 CA 证书挂载。跟踪环境构建器对 /ca-certs/ca-file bind mount 的处理,并验证构建可以信任私有 PKI,且不会出现 permission-denied remount error。

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

评估

技术栈
go, kubernetes
领域
infrastructure, security
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 发到你的邮箱

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