mirror of
https://github.com/floci-io/floci.git
synced 2026-12-03 02:07:58 -05:00
The request-resources table gives aws:ResourceTag keys to S3's bucket and object types, but S3 gave IAM no tags, so an aws:ResourceTag condition on an S3 action never matched. The S3 User Guide says "you can control access to S3 resources based on the bucket's tags", that S3 "evaluates this condition key only after you enable ABAC on your bucket", and its example bucket policy conditions s3:GetObject on a bucket's objects on the bucket's tag. tools/aws/fetch_s3_tag_inheritance.py vendors those sentences and the example's object resource and condition key into tools/aws/sources/s3-tag-inheritance.json, refusing a reworded page. TAG_INHERITANCE_SOURCES grants it for s3, beside API Gateway, and tag_parents gives the object type, whose path continues the bucket's past a '/', the bucket as its tag parent. S3StoredResourceArns reads S3Service.storedTags: the tags of the general purpose bucket the ARN names, only while its ABAC status is Enabled, read in place with no legacy entry moved (the caller's bucket, or with the global bucket namespace the one of that name another account owns, one get per owning account), copied under the lock its tag writes hold, and none for an object or no bucket. Bucket names are one namespace here, a request signed for any partition reaching the same bucket, so the ARN's partition is not matched against the bucket's. IamConditionContextResolver gives an object its bucket's tags from tagParents, and no longer gives s3:GetBucketTagging, s3:DeleteBucket and DeleteBucketTagging the bucket's tags itself, ABAC or not. S3's own bucket policy check reads the same tags, so a bucket policy conditioned on aws:ResourceTag grants a caller from another account what it says. s3:BucketTag/<key> is not read: the generator's resource-tag key reading takes ResourceTag keys alone. The Service Reference and the IAM identifiers page changed upstream, and the IAM data drift gate this change runs reads both: tools/aws/sources/iam-identifiers.json and the table are synced, adding IAM's workload identity provider and template types and their operations, Bedrock's and Redshift Serverless's new types, and new Athena, Budgets and STS operations. The generator took a type of no variables of its own for the account's one, which every request names, even where its format lies within another type's the action acts on: Redshift Serverless's expressConfiguration, workgroup/express/express-default, is a workgroup of a fixed name, and GetCredentials was checked on it beside the workgroup its workgroupName names. Such a type is now named only by a request naming it, which leaves GetCredentials checked on the named workgroup alone. S3BucketTagIamEnforcementIntegrationTest checks that a caller allowed s3:GetObject, s3:ListBucket and the bucket's tagging actions only on resources tagged team=blue reads and lists a blue bucket with ABAC enabled and reads its tags, and is refused a red one and a blue one whose ABAC is off, its tagging actions included; and that a bucket policy granting another account s3:GetObject on blue buckets lets that account read the blue one and not the red. S3BucketStoredTagsTest checks the read and its refusals; IamConditionContextResolverTest that an object has its bucket's tags and that a bucket action's request context leaves the bucket's tags to its stored tags; test_fetch_s3_tag_inheritance.py the fetcher; test_regen_iam_request_resources.py the object's parent and the fixed-name type; IamRequestResourceEnforcementIntegrationTest that a caller allowed GetCredentials on one workgroup gets its credentials and is refused another's.
224 lines
11 KiB
JSON
224 lines
11 KiB
JSON
{
|
|
"_source": {
|
|
"pages": [
|
|
"https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html",
|
|
"https://docs.aws.amazon.com/IAM/latest/APIReference/API_Operations.html"
|
|
],
|
|
"fetcher": "tools/aws/fetch_iam_identifiers.py",
|
|
"retrieved": "2026-12-01",
|
|
"note": "The identifiers page's ARN syntax and examples, each variable written {name}, and its sentences on paths given through the API; and each sentence of the description or of a request parameter of the API reference page of each operation the actions page lists that says the operation acts on the user who signs it, that the caller needs permission on the old and the new name, that a parameter's value is the resource's ARN, or the format of an identifier, copied as they stand."
|
|
},
|
|
"arns": {
|
|
"page": "https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html",
|
|
"syntax": [
|
|
"arn:aws:iam::{account}:root",
|
|
"arn:aws:iam::{account}:user/{user-name-with-path}",
|
|
"arn:aws:iam::{account}:group/{group-name-with-path}",
|
|
"arn:aws:iam::{account}:role/{role-name-with-path}",
|
|
"arn:aws:iam::{account}:policy/{policy-name-with-path}",
|
|
"arn:aws:iam::{account}:instance-profile/{instance-profile-name-with-path}",
|
|
"arn:aws:sts::{account}:federated-user/{user-name}",
|
|
"arn:aws:sts::{account}:assumed-role/{role-name}/{role-session-name}",
|
|
"arn:aws:sts::{account}:self",
|
|
"arn:aws:iam::{account}:mfa/{virtual-device-name-with-path}",
|
|
"arn:aws:iam::{account}:u2f/{u2f-token-id}",
|
|
"arn:aws:iam::{account}:server-certificate/{certificate-name-with-path}",
|
|
"arn:aws:iam::{account}:saml-provider/{provider-name}",
|
|
"arn:aws:iam::{account}:oidc-provider/{provider-name}",
|
|
"arn:aws:iam::aws:contextProvider/{context-provider-name}",
|
|
"arn:aws:iam::{account}:workload-identity-provider/{provider-name}",
|
|
"arn:aws:iam::{organization-id}:workload-identity-provider/{provider-name}",
|
|
"arn:aws:iam::{account}:workload-identity-template/{template-name}",
|
|
"arn:aws:iam::{organization-id}:workload-identity-template/{template-name}",
|
|
"arn:aws:iam::aws:workload-identity-template-definition/{service-principal}/{definition-path}:{major-version}"
|
|
],
|
|
"examples": [
|
|
"arn:aws:iam::123456789012:root",
|
|
"arn:aws:iam::123456789012:user/John",
|
|
"arn:aws:iam::123456789012:user/division_abc/subdivision_xyz/Jane",
|
|
"arn:aws:iam::123456789012:group/Developers",
|
|
"arn:aws:iam::123456789012:group/division_abc/subdivision_xyz/product_A/Developers",
|
|
"arn:aws:iam::123456789012:role/S3Access",
|
|
"arn:aws:iam::123456789012:role/application_abc/component_xyz/RDSAccess",
|
|
"arn:aws:iam::123456789012:role/aws-service-role/access-analyzer.amazonaws.com/AWSServiceRoleForAccessAnalyzer",
|
|
"arn:aws:iam::123456789012:role/service-role/QuickSightAction",
|
|
"arn:aws:iam::123456789012:policy/UsersManageOwnCredentials",
|
|
"arn:aws:iam::123456789012:policy/division_abc/subdivision_xyz/UsersManageOwnCredentials",
|
|
"arn:aws:iam::123456789012:instance-profile/Webserver",
|
|
"arn:aws:sts::123456789012:federated-user/John",
|
|
"arn:aws:sts::123456789012:assumed-role/Accounting-Role/Jane",
|
|
"arn:aws:sts::123456789012:self",
|
|
"arn:aws:iam::123456789012:mfa/JaneMFA",
|
|
"arn:aws:iam::123456789012:u2f/user/John/default (U2F security key)",
|
|
"arn:aws:iam::123456789012:server-certificate/ProdServerCert",
|
|
"arn:aws:iam::123456789012:server-certificate/division_abc/subdivision_xyz/ProdServerCert",
|
|
"arn:aws:iam::123456789012:saml-provider/ADFSProvider",
|
|
"arn:aws:iam::123456789012:oidc-provider/GoogleProvider",
|
|
"arn:aws:iam::123456789012:oidc-provider/oidc.eks.us-west-2.amazonaws.com/id/a1b2c3d4567890abcdefEXAMPLE11111",
|
|
"arn:aws:iam::123456789012:oidc-provider/server.example.org",
|
|
"arn:aws:iam::aws:contextProvider/IdentityCenter",
|
|
"arn:aws:iam::123456789012:workload-identity-provider/payments-prod",
|
|
"arn:aws:iam::o-a1b2c3d4e5:workload-identity-provider/corp-example-prod",
|
|
"arn:aws:iam::123456789012:workload-identity-template/eks-prod-1",
|
|
"arn:aws:iam::o-a1b2c3d4e5:workload-identity-template/eks-payments",
|
|
"arn:aws:iam::aws:workload-identity-template-definition/eks.amazonaws.com/account-provider-default:1"
|
|
],
|
|
"paths": [
|
|
"If you use the IAM API or AWS Command Line Interface (AWS CLI) to create IAM resources, you can add an optional path."
|
|
]
|
|
},
|
|
"signingUser": [
|
|
{
|
|
"operation": "ChangePassword",
|
|
"parameter": null,
|
|
"sentence": "Changes the password of the IAM user who is calling this operation."
|
|
},
|
|
{
|
|
"operation": "CreateAccessKey",
|
|
"parameter": null,
|
|
"sentence": "If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request."
|
|
},
|
|
{
|
|
"operation": "CreateLoginProfile",
|
|
"parameter": "UserName",
|
|
"sentence": "If no user name is included, it defaults to the principal making the request."
|
|
},
|
|
{
|
|
"operation": "DeactivateMFADevice",
|
|
"parameter": "UserName",
|
|
"sentence": "If no user name is included, it defaults to the principal making the request."
|
|
},
|
|
{
|
|
"operation": "DeleteAccessKey",
|
|
"parameter": null,
|
|
"sentence": "If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request."
|
|
},
|
|
{
|
|
"operation": "DeleteLoginProfile",
|
|
"parameter": "UserName",
|
|
"sentence": "If no user name is included, it defaults to the principal making the request."
|
|
},
|
|
{
|
|
"operation": "DeleteServiceSpecificCredential",
|
|
"parameter": "UserName",
|
|
"sentence": "If this value is not specified, then the operation assumes the user whose credentials are used to call the operation."
|
|
},
|
|
{
|
|
"operation": "DeleteSigningCertificate",
|
|
"parameter": null,
|
|
"sentence": "If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request."
|
|
},
|
|
{
|
|
"operation": "GetLoginProfile",
|
|
"parameter": "UserName",
|
|
"sentence": "If no user name is included, it defaults to the principal making the request."
|
|
},
|
|
{
|
|
"operation": "GetUser",
|
|
"parameter": null,
|
|
"sentence": "If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID used to sign the request to this operation."
|
|
},
|
|
{
|
|
"operation": "GetUser",
|
|
"parameter": "UserName",
|
|
"sentence": "If it is not included, it defaults to the user making the request."
|
|
},
|
|
{
|
|
"operation": "ListAccessKeys",
|
|
"parameter": null,
|
|
"sentence": "If the UserName is not specified, the user name is determined implicitly based on the AWS access key ID used to sign the request."
|
|
},
|
|
{
|
|
"operation": "ListMFADevices",
|
|
"parameter": null,
|
|
"sentence": "If you do not specify a user name, IAM determines the user name implicitly based on the AWS access key ID signing the request for this operation."
|
|
},
|
|
{
|
|
"operation": "ListServiceSpecificCredentials",
|
|
"parameter": "UserName",
|
|
"sentence": "If this value is not specified, then the operation assumes the user whose credentials are used to call the operation."
|
|
},
|
|
{
|
|
"operation": "ListSigningCertificates",
|
|
"parameter": null,
|
|
"sentence": "If the UserName field is not specified, the user name is determined implicitly based on the AWS access key ID used to sign the request for this operation."
|
|
},
|
|
{
|
|
"operation": "ListSSHPublicKeys",
|
|
"parameter": "UserName",
|
|
"sentence": "If none is specified, the UserName field is determined implicitly based on the AWS access key used to sign the request."
|
|
},
|
|
{
|
|
"operation": "ResetServiceSpecificCredential",
|
|
"parameter": "UserName",
|
|
"sentence": "If this value is not specified, then the operation assumes the user whose credentials are used to call the operation."
|
|
},
|
|
{
|
|
"operation": "UpdateAccessKey",
|
|
"parameter": null,
|
|
"sentence": "If the UserName is not specified, the user name is determined implicitly based on the AWS access key ID used to sign the request."
|
|
},
|
|
{
|
|
"operation": "UpdateServiceSpecificCredential",
|
|
"parameter": "UserName",
|
|
"sentence": "If you do not specify this value, then the operation assumes the user whose credentials are used to call the operation."
|
|
},
|
|
{
|
|
"operation": "UpdateSigningCertificate",
|
|
"parameter": null,
|
|
"sentence": "If the UserName field is not specified, the user name is determined implicitly based on the AWS access key ID used to sign the request."
|
|
},
|
|
{
|
|
"operation": "UploadSigningCertificate",
|
|
"parameter": null,
|
|
"sentence": "If the UserName is not specified, the IAM user name is determined implicitly based on the AWS access key ID used to sign the request."
|
|
}
|
|
],
|
|
"bothNames": [
|
|
{
|
|
"operation": "UpdateGroup",
|
|
"parameter": null,
|
|
"sentence": "The person making the request (the principal), must have permission to change the role group with the old name and the new name."
|
|
},
|
|
{
|
|
"operation": "UpdateServerCertificate",
|
|
"parameter": null,
|
|
"sentence": "The person making the request (the principal), must have permission to change the server certificate with the old name and the new name."
|
|
},
|
|
{
|
|
"operation": "UpdateUser",
|
|
"parameter": null,
|
|
"sentence": "To change a user name, the requester must have appropriate permissions on both the source object and the target object."
|
|
}
|
|
],
|
|
"sameAsArn": [
|
|
{
|
|
"operation": "DeleteVirtualMFADevice",
|
|
"parameter": "SerialNumber",
|
|
"sentence": "For virtual MFA devices, the serial number is the same as the ARN."
|
|
},
|
|
{
|
|
"operation": "ListMFADeviceTags",
|
|
"parameter": "SerialNumber",
|
|
"sentence": "For virtual MFA devices, the serial number is the same as the ARN."
|
|
},
|
|
{
|
|
"operation": "TagMFADevice",
|
|
"parameter": "SerialNumber",
|
|
"sentence": "For virtual MFA devices, the serial number is the same as the ARN."
|
|
},
|
|
{
|
|
"operation": "UntagMFADevice",
|
|
"parameter": "SerialNumber",
|
|
"sentence": "For virtual MFA devices, the serial number is the same as the ARN."
|
|
}
|
|
],
|
|
"formats": [
|
|
{
|
|
"operation": "GetServiceLinkedRoleDeletionStatus",
|
|
"parameter": "DeletionTaskId",
|
|
"sentence": "This identifier is returned by the DeleteServiceLinkedRole operation in the format task/aws-service-role/<service-principal-name>/<role-name>/<task-uuid> ."
|
|
}
|
|
]
|
|
}
|