DomainID or DomainName validation is inconsistent
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 42/100
Hướng nghiên cứu
Tái hiện hành vi xác thực bằng test.pkr.hcl được cung cấp với packer validate, so sánh các trường hợp domain_id, domain_name, token và OS_DOMAIN_ID. Truy vết điểm vào của quá trình xác thực tạo ra hai lỗi xung đột, đồng thời thêm hoặc cập nhật coverage cho các cấu hình này. Công việc hoàn tất khi các cấu hình tương đương nhận được kết quả xác thực nhất quán và chính xác.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Overview of the Issue
Using hashicorp/packer container with a HCL file that contains token:
- Setting
domain_id(withoutdomain_name) ask to remove it because is not required while usingtoken - If neither
domain_nameordomain_idis used then error asking for one of them - If neither
domain_nameordomain_idis used butOS_DOMAIN_IDenv var exported then is OK
Reproduction Steps
packer validate test.pkr.hcl
If domain_id = "default" + token = '...' then:
packer validate vault-raft.pkr.hcl
Error: 1 error(s) occurred:
* DomainID may not be provided when authenticating with a TokenID
on vault-raft.pkr.hcl line 1:
(source code not available)
If #domain_id = "default" = token = '...' then:
Error: 1 error(s) occurred:
* You must provide exactly one of DomainID or DomainName in a Scope with ProjectName
on vault-raft.pkr.hcl line 1:
(source code not available)
If #domain_id = "default" = token = '...' + export OS_DOMAIN_ID=default then:
The configuration is valid.
Plugin and Packer version
packer version
Packer v1.8.0
Simplified Packer Buildfile
test.pkr.hcl file:
source "openstack" "hello" {
#domain_id = "default"
token = "TheRealTokenWasHere"
identity_endpoint = "https://auth.cloud.ovh.net/v3"
image_name = "debian-hello-test"
source_image_name = "Debian 11"
flavor = "s1-2"
tenant_name = "TheTenantNameWasHere"
region = "GRA7"
ssh_username = "debian"
networks = ["TheNetworkIdWasHere"]
}
build {
sources = ["source.openstack.hello"]
provisioner "shell" {
execute_command = "sudo -S sh -c '{{ .Vars }} {{ .Path }}'"
scripts = fileset(".", "scripts/{install,secure}.sh")
}
}
Operating system and Environment details
Docker image hashicorp/packer running in GitlabCI runner ignoring the entrypoint
Also tested in a Debian 11 laptop running the same Packer version.
- Ngôn ngữ chính
- Go
- Star
- 29
- Fork
- 27
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của hashicorp/packer-plugin-openstack
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Error initializing block storage client with Openstack 2026.1Có thể đã có người làm @elelaysh đã nhận 72 ngày trước. Đang mởbug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
hashicorp/packer-plugin-openstack#162 · 1 bình luận ·
-
Feature Request: Add keep_volume option to preserve boot volume artifacts in OpenStack builderĐang mởenhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
hashicorp/packer-plugin-openstack#151 · 1 bình luận · 1 reaction ·
-
Packer 1.12.0-alpha1 testingĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Response Error: No image found with ID .... code 404 Not Found title Not Found (Floating problem )Đang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
hashicorp/packer-plugin-openstack#130 · 1 bình luận ·
Tất cả issue của hashicorp/packer-plugin-openstack
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
multica-ai/multica#10081 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
csp-probe needs efqdn to probe CSP domainsCó thể đã có người làm @unknownhackerworld đã nhận 1 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
projectdiscovery/httpx#2725 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
stefanpejcic/OpenPanel#1321 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug triage/pending
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày