Tagging fips endpoint resolves to a domain that doesn't exist

Đang mở
#3,395 1 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 1 ngày

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
50/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
aws, php
Lĩnh vực
cloud

Hướng nghiên cứu

Reproduce with the PHP snippet using Aws\Sdk with use_fips_endpoint set to true in us-gov-west-1, then trace how createResourceGroupsTaggingAPI() resolves its endpoint for the tagging service. Compare the tagging service's FIPS endpoint metadata with a service that resolves correctly in GovCloud, and check whether the endpoint should be corrected or rejected explicitly. Done means GetResources targets a resolvable FIPS host or fails with a clear unsupported-endpoint error, with a test covering the GovCloud FIPS case.

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

Mô tả

bug p2 queued service-api
Describe the bug

In for govcloud regions with AWS_USE_FIPS_ENDPOINT=true the following urls are resolved:

This leads to errors like:

Error executing "GetResources" on "https://tagging-fips.us-gov-west-1.amazonaws.com/"; AWS HTTP error: cURL error 6: Could not resolve host: tagging-fips.us-gov-west-1.amazonaws.com (see https://curl.se/libcurl/c/libcurl-errors.html) for https://tagging-fips.us-gov-west-1.amazonaws.com/

Regression Issue
  • Select this option if this issue appears to be a regression.
Expected Behavior

I expect the domain that it uses to have a DNS entry that routes to the fips compliant service

Current Behavior

A domain that is actually routed should be returned.

Reproduction Steps
$sdk = new Aws\Sdk([
    'region' => 'us-gov-west-1',
    'use_fips_endpoint' => true, // or AWS_USE_FIPS_ENDPOINT=true
    ...
]);
$sdk->createResourceGroupsTaggingAPI()->getResources();
Possible Solution

Add a dns entry for the fips tagging API, or throw an exception if there is no fips tagging API.

Additional Information/Context

No response

SDK version used

3.402.2

Environment details (Version of PHP (php -v)? OS name and version, etc.)

PHP 8.5, environment independent

Ngôn ngữ chính
PHP
Star
6.2k
Fork
1.3k
Merge trung bình
4 ngày 15 giờ
Pull request đã merge (30 ngày)
21

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 aws/aws-sdk-php

Tất cả issue của aws/aws-sdk-php

Issue tương tự

Thêm issue về PHP

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.