Add comprehensive user documentation with FAQ covering all credential types and failure scenarios #43
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added a comprehensive Chinese user guide (
docs/zh-CN/FAQ.md) addressing deployment, configuration, and troubleshooting for the credentials library.Documentation Structure
Each FAQ entry includes: error message/symptom, root cause with code references, and multiple solution approaches.
Example FAQ Entry
Q7: "The role was not found in the instance"
Root cause: ECS metadata service returns 404 when instance lacks bound RAM role or code runs outside ECS. See
src/Providers/EcsRamRoleCredentialsProvider.php:143-145.Solutions:
curl http://100.100.100.200/latest/meta-data/aliyun ecs AttachInstanceRamRole --InstanceIds '["i-xxxx"]' --RamRoleName MyRoleroleNameparameterAdditional Sections
You need to complete
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/0ca86845ce43291e8f5692c7356fccf3bcf02bf4/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/PHPCSStandards/composer-installer/zipball/845eb62303d2ca9b289ef216356568ccc075ffd1/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/Seldaek/jsonlint/zipball/1748aaf847fc731cfad7725aec413ee46f0cc3a2/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/Seldaek/monolog/zipball/904713c5929655dc9b97288b69cfeedad610c9a1/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/Seldaek/phar-utils/zipball/ea2f4014f163c1be4c601b9b7bd6af81ba8d701c/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/adbario/php-dot-notation/zipball/081e2cca50c84bfeeea2e3ef9b2c8d206d80ccae/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/aliyun/tea-php/zipball/1619cb96c158384f72b873e1f85de8b299c9c367/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/bovigo/vfsStream/zipball/fe695ec993e0a55c3abdda10a9364eb31c6f1bf0/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/composer/ca-bundle/zipball/1905981ee626e6f852448b7aaa978f8666c5bc54/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/composer/composer/zipball/f8f49191eec76f039b466aa1f161406fe43aff50/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/composer/semver/zipball/647490bbcaf7fc4891c58f47b825eb99d19c377a/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/composer/spdx-licenses/zipball/edf364cefe8c43501e21e88110aac10b284c3c9f/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/composer/xdebug-handler/zipball/f27e06cd9675801df441b3656569b328e04aa37c/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/guzzle/guzzle/zipball/b51ac707cfa420b7bfd4e4d5e510ba8008e822b4/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/guzzle/psr7/zipball/21dc724a0583619cd1652f673303492272778051/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/jsonrainbow/json-schema/zipball/feb2ca6dd1cebdaf1ed60a4c8de2e53ce11c4fd8/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/pfrenssen/coder/zipball/07c14cf2217c2b53cc4469e2ed360141e6bb18ea/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/php-fig/container/zipball/513e0666f7216c7459170d56df27dfcefe1689ea/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/phpstan/phpdoc-parser/zipball/1e0cd5370df5dd2e556a36b9c62f62e555870495/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/05d5692a7993ecccd56a03e40cd7e5b09b1d404e/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/sebastianbergmann/type/zipball/75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/sirbrillig/phpcs-variable-analysis/zipball/a15e970b8a0bf64cfa5e86d941f5e6b08855f369/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/slevomat/coding-standard/zipball/1dd80bf3b93692bedb21a6623c496887fad05fec/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/symfony/console/zipball/95794074741645473221fb126d5cb4057ad25bf1/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/symfony/filesystem/zipball/57c8294ed37d4a055b77057827c67f9558c95c54/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/symfony/finder/zipball/63741784cd7b9967975eec610b256eed3ede022b/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/symfony/polyfill-ctype/zipball/a3cc8b044a6ea513310cbd48ef7333b384945638/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6d857f4d76bd4b343eac26d6b539585d2bc56493/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/symfony/polyfill-php73/zipball/0f68c03565dcaaf25a890667542e8bd75fe7e5bb/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/symfony/polyfill-php80/zipball/0cc9dd0f17f61d8131e7df6b84bd344899fe2608/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/symfony/process/zipball/5d1662fb32ebc94f17ddb8d635454a776066733d/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/symfony/service-contracts/zipball/f37b419f7aea2e9abf10abd261832cace12e3300/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/symfony/yaml/zipball/29b60e88ff11a45b708115004fdeacab1ee3dd5d/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/7d5mJ1 /usr/bin/composer install --no-interaction(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.