mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
docs(aws): distinguish model and compatibility SDK pins (#5972)
This commit is contained in:
1 parent
98b2429e58
commit
fe5e0f06fa
2 files changed
+27
No files matched your search
@@ -355,6 +355,27 @@ regenerates the IAM managed-policy catalog (`src/main/resources/iam/managed-poli
|
||||
`local/aws/iam-dataset` checkout; without that checkout, as in CI, `make aws-data-check` only
|
||||
verifies the catalog's shape.
|
||||
|
||||
### Botocore pin of record
|
||||
|
||||
[tools/aws/requirements.txt](tools/aws/requirements.txt) is the botocore pin of record
|
||||
for AWS model audits and vendored AWS data. CI installs this file before running
|
||||
`make aws-data-check`. Use an isolated environment installed from this file when checking
|
||||
whether botocore models an operation, request member, endpoint, or partition.
|
||||
|
||||
[compatibility-tests/sdk-test-python/requirements.txt](compatibility-tests/sdk-test-python/requirements.txt)
|
||||
pins the boto3 and botocore clients used by the Python compatibility suite. Those client
|
||||
versions can differ from the generator pin; they are not the model-audit reference.
|
||||
Updating a compatibility client alone does not change the vendored AWS data.
|
||||
|
||||
Generators using `resolve_botocore_data`, including partitions and request shapes, prefer
|
||||
an explicit `--botocore-data` directory, then `local/aws/botocore/botocore/data`, then the
|
||||
installed botocore package. The region-facts generator instead requires its local sources
|
||||
(or explicit source paths); it does not fall back to the installed package, and `--check`
|
||||
only verifies shape when its sources are missing. When a local checkout or explicit
|
||||
directory is selected, ensure it matches the tools pin too: checking only the installed
|
||||
package version does not establish which data is being read.
|
||||
Keep a generator-pin change and its required regenerated data together, as described above.
|
||||
|
||||
## Reporting Security Issues
|
||||
|
||||
Please do **not** open public issues for security vulnerabilities. Report them privately by emailing the maintainer or using [GitHub private vulnerability reporting](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing/privately-reporting-a-security-vulnerability).
|
||||
@@ -75,6 +75,12 @@ just setup-typescript # npm install
|
||||
just setup-awscli # Clone bats-core, bats-support, bats-assert
|
||||
```
|
||||
|
||||
The boto3 and botocore versions in `sdk-test-python/requirements.txt` pin the test clients,
|
||||
not the AWS models used to generate Floci's vendored data. For model audits and data
|
||||
regeneration, use the pin in `tools/aws/requirements.txt` at the repository root and check
|
||||
the selected model source. See [Botocore pin of record](../CONTRIBUTING.md#botocore-pin-of-record)
|
||||
for the distinction and the generators' data-source precedence.
|
||||
|
||||
## Running Tests
|
||||
|
||||
### All SDKs
|
||||
|
||||
Reference in new issue
Block a user