`dependency add` and `project build` do not support Git HTTPS authentication for private dependencies
メンテナーはふだん 6 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with the dependency add and project build command entry points, then compare their dependency access with dependency update-cache, which already exposes the Git HTTPS credential options. Verify both commands read CROSSPLANE_GIT_TOKEN and CROSSPLANE_GIT_USERNAME, support the documented workflow, and keep credentials out of project files, URLs, logs, and errors.
索引モデルが issue の本文から書いたものです。
説明
What happened?
Our corporate network cannot access public source-code hosts such as GitHub. We mirror the CRD manifests we need in a private repository on our internal Git server and use that repository as a project dependency.
The CLI cannot authenticate to that repository when it is accessed by crossplane dependency add or crossplane project build.
This leaves us unable to:
- Add the Git dependency to a project in the first place.
- Build a project when its dependency schemas need to be generated or refreshed.
This is surprising because crossplane dependency update-cache already supports Git-over-HTTPS authentication with:
--git-token/CROSSPLANE_GIT_TOKEN--git-username/CROSSPLANE_GIT_USERNAME
The equivalent options are not available to dependency add or project build.
How can we reproduce it?
dependency add rejects the authentication flag:
$ crossplane dependency add --git-token=not-a-real-token
crossplane: error: unknown flag --git-token
The same flag is available on dependency update-cache:
$ crossplane dependency update-cache --help
...
--git-token=STRING Token for git HTTPS authentication ($CROSSPLANE_GIT_TOKEN).
--git-username="x-access-token"
Username for git HTTPS authentication ($CROSSPLANE_GIT_USERNAME).
I expect this workflow to work:
export CROSSPLANE_GIT_TOKEN=<read-only-token>
crossplane dependency add \
https://<git-server>/<organization>/<repository>.git \
--git-ref main \
--git-path config/crd/bases
After the dependency has been added, a regular build should also be able to access it:
crossplane project build
Both commands should use credentials supplied through environment variables. Credentials must not be written to crossplane-project.yaml, included in the repository URL, or exposed in logs and error messages.
I would be happy to contribute a fix for this issue.
What environment did it happen in?
- Crossplane CLI version:
v2.5.0 - Platform:
linux/amd64 - Crossplane version: not applicable
- 主要言語
- Go
- スター
- 20
- フォーク
- 33
- 平均マージ
- 4日 9時間
- マージ済み PR(30日)
- 16
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
crossplane/cli のほかの issue
-
`credsStore` in docker config causes unit test failures対応中かも @sujeito-operator が 55 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
crossplane/cli#282 ·
メンテナーはふだん 6 日以内に返信
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
crossplane/cli#410 ·
メンテナーはふだん 6 日以内に返信
-
render: label the Docker containers and networks render creates対応中かも @jcogilvie が 11 日前に担当しました。 オープンenhancement
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
crossplane/cli#401 ·
メンテナーはふだん 6 日以内に返信
-
render: interrupting with Ctrl+C (SIGINT/SIGTERM) leaks Function containers, the render container, and the network対応中かも @jcogilvie が 11 日前に担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
crossplane/cli#400 ·
メンテナーはふだん 6 日以内に返信
-
render: Function cleanup failures are invisible without --verbose対応中かも @jcogilvie が 11 日前に担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 70/100
crossplane/cli#399 ·
メンテナーはふだん 6 日以内に返信
似ている issue
-
unbounded value for n in `/v1/logs` can panic/OOM対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンsmall item
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
canonical/pebble#1127 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[schema-coverage] elasticstack_elasticsearch_synonym_set (data source)対応中かも @github-actions が今日担当しました。 オープンacceptance-tests phase-coding schema-coverage testing triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 81/100
elastic/terraform-provider-elasticstack#5211 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 89/100
open-policy-agent/opa#9366 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
defect
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
nats-io/nats-server#8752 ·
メンテナーはふだん 1 日以内に返信
-
enhancement needs-acceptance wg/router-models-inference-runtime
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
vllm-project/semantic-router#5015 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信