mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
* feat(dsql): add Aurora DSQL's control plane and AWS::DSQL::Cluster The first half of #6014. Aurora DSQL's REST JSON control plane, with the answers measured on AWS (eu-west-1): CreateCluster, GetCluster, ListClusters, UpdateCluster, DeleteCluster, GetVpcEndpointServiceName, the cluster policy calls and tagging on cluster ARNs. Identifiers are 26 characters of lowercase base32 as DSQL's are, and malformed or unknown ones are refused with DSQL's messages; a cluster created without deletionProtectionEnabled is protected, and deleting a protected one is refused. CreateCluster answers CREATING and the cluster is ACTIVE right after. AWS::DSQL::Cluster waits for ACTIVE, returns the identifier from Ref and Identifier, ResourceArn, Status, CreationTime, Endpoint, VpcEndpoint and VpcEndpointServiceName through Fn::GetAtt, and a protected cluster makes the stack's deletion fail, as on AWS. A cluster has no database behind it here: its endpoint is named as on AWS, <id>.dsql.<region>.localhost.floci.io, but not served. Serving it is the second half of #6014, its own pull request. * fix(dsql): answer the control plane's edge cases as DSQL does Review of #6048, each answer measured on DSQL (eu-west-1) first: - ListClusters carries on from a page token whose cluster was deleted in between, as AWS does: the token now holds the sort position of the next page's first cluster rather than its identifier. - deletionProtectionEnabled is read as DSQL reads it: text is false when it spells false in any case and true otherwise; empty text, a number, an object and a list fail with SerializationException. - The tag calls refuse another account's cluster ARN with 403 AccessDeniedException instead of reading it in the caller's account. - A client token reused with other parameters answers 409 ConflictException; with the same ones, the earlier cluster. - AWS_OWNED_KMS_KEY names AWS's own key on create and update. AWS::DSQL::Cluster reads DeletionProtectionEnabled and PolicyDocument with AWS::NoValue as left out, and an update that drops the multi-Region properties clears them, as it already reset the key and deletion protection. ListTagsForResource copies the tags under the cluster's lock, and a cluster's lock goes with the cluster. * fix(dsql): answer errors, policies, updates and multi-Region clusters as DSQL does A review asked for the attribute coverage, the reason ValidationException carries, a real untag assertion and tests of the stack-update path. Measuring them on DSQL (eu-west-1, 2026-10-20) found more that did not match, fixed here too. - Attributes are written with resource.getAttributes().put, which the schema coverage test reads; EncryptionDetails, an object an output refuses on AWS, is recorded as a gap. - DSQL leaves reason out of its model-validation errors. Only the page token's refusal carries it, with fieldList naming next-token and its own text. maxResults no longer quotes the value. - Tag calls answer what DSQL answers: 403 for an ARN that is not a cluster ARN, 400 BadRequestException for another Region's, 404 NotFoundException for no cluster. The 403s name the caller. - Policy versions are epoch milliseconds, DeleteClusterPolicy answers the deleted version, and the missing-policy and stale-version errors carry DSQL's texts and resourceType. - Policies are checked and kept as DSQL does: its three refusal texts, a service principal, a principal that names no one, a public grant, and the lockout check when both policy actions are denied to the caller, unless bypassPolicyLockoutSafetyCheck. The kept form is Jackson's pretty printer in DSQL's element order, with condition operators and keys in HashMap order, as measured. - The public check shares its condition keys with Lambda web functions through PublicAccessConditions, and S3 now takes its fixed-value and SourceIp range tests from there. Sharing the whole rule was tried and dropped: DSQL was measured to treat some operators otherwise than LambdaWeb's and S3's rules do (ForAnyValue:, ArnLike "*", StringEquals "*"), so the operator rules stay per service. The lockout check is IamPolicyEvaluator's. - A multi-Region cluster is PENDING_SETUP and lists itself until it and each peer name one another, then ACTIVE; its deletion answers PENDING_DELETE. - AWS::DSQL::Cluster reads its properties through CfnPropertyTypes, so a PolicyDocument object or DeletionProtectionEnabled "yes" fails as on AWS, where Boolean.valueOf made "yes" false. An update leaves a property the template no longer sets as it was, deletion protection, KMS key and multi-Region alike, and removes only the tags and the policy; an earlier change put them back to their defaults, which was not measured and is not what CloudFormation does. A policy the template does not change keeps its version, and create settles on PENDING_SETUP too. DsqlServiceTest, DsqlClusterPoliciesTest and DsqlCfnProvisionerTest cover these in isolation, the integration tests over the wire. * fix(dsql): keep the public access rule to DSQL and forget a deleted policy's version A review asked to leave S3 and Lambda web functions out of this change, and pointed at DSQL's own block public access page. The shared helper is dropped and S3 and Lambda web functions are as on main; folding their copies into one helper belongs to a separate change. DSQL now has its own keys: the trusted ones its page lists, and aws:SourceIp, aws:SourceVpcArn and the three aws:Vpce* keys, which the page leaves out but DSQL accepts (measured, eu-west-1, 2026-10-20). As the page says, a policy variable never restricts: StringEquals with ${aws:PrincipalArn}, ${aws:SourceVpc} or a role/${aws:username} ARN is public on DSQL. ArnEquals reads like ArnLike, as IAM matches both the same way, so a value that is no ARN, ${aws:SourceArn} among them, matches nothing and restricts, as measured. DeleteClusterPolicy left the deleted version on the cluster, so a put naming it went through; it is now cleared, and a put that names a version on a cluster with no policy is refused as not found.
237 lines
8.5 KiB
YAML
237 lines
8.5 KiB
YAML
site_name: Floci
|
|
site_description: Fast, free, open-source local AWS emulator
|
|
site_url: https://floci.io/floci/
|
|
repo_url: https://github.com/floci-io/floci
|
|
repo_name: floci-io/floci
|
|
edit_uri: edit/main/docs/
|
|
|
|
theme:
|
|
name: material
|
|
custom_dir: overrides
|
|
logo: assets/floci-header.svg
|
|
favicon: assets/floci.svg
|
|
palette:
|
|
- media: "(prefers-color-scheme: light)"
|
|
scheme: default
|
|
primary: custom
|
|
accent: custom
|
|
toggle:
|
|
icon: material/brightness-7
|
|
name: Switch to dark mode
|
|
- media: "(prefers-color-scheme: dark)"
|
|
scheme: slate
|
|
primary: custom
|
|
accent: custom
|
|
toggle:
|
|
icon: material/brightness-4
|
|
name: Switch to light mode
|
|
features:
|
|
- navigation.tabs
|
|
- navigation.sections
|
|
- navigation.top
|
|
- navigation.instant
|
|
- search.highlight
|
|
- search.suggest
|
|
- content.code.copy
|
|
- content.code.annotate
|
|
- content.tabs.link
|
|
|
|
# Fail the build on any warning so a docs page without a nav entry, or a broken link,
|
|
# is caught in CI instead of silently shipping unreachable (see floci-io/floci: eleven
|
|
# services/*.md pages went live without a nav line and nothing was red).
|
|
strict: true
|
|
validation:
|
|
nav:
|
|
omitted_files: warn
|
|
not_found: warn
|
|
absolute_links: warn
|
|
links:
|
|
not_found: warn
|
|
absolute_links: warn
|
|
unrecognized_links: warn
|
|
not_in_nav: |
|
|
configuration/application-yml.md
|
|
design/*.md
|
|
|
|
extra_css:
|
|
- assets/extra.css
|
|
|
|
plugins:
|
|
- search
|
|
|
|
markdown_extensions:
|
|
- admonition
|
|
- pymdownx.details
|
|
- pymdownx.superfences
|
|
- pymdownx.highlight:
|
|
anchor_linenums: true
|
|
- pymdownx.tabbed:
|
|
alternate_style: true
|
|
- pymdownx.inlinehilite
|
|
- tables
|
|
- attr_list
|
|
|
|
nav:
|
|
- Home: index.md
|
|
- Getting Started:
|
|
- Quick Start: getting-started/quick-start.md
|
|
- Installation: getting-started/installation.md
|
|
- AWS CLI & SDK Setup: getting-started/aws-setup.md
|
|
- Terraform: getting-started/terraform.md
|
|
- Migrate from LocalStack: getting-started/migrate-from-localstack.md
|
|
- Configuration:
|
|
- Environment Variables: configuration/environment-variables.md
|
|
- Docker Images: configuration/docker-images.md
|
|
- Docker Compose: configuration/docker-compose.md
|
|
- Docker Configuration: configuration/docker.md
|
|
- Ports Reference: configuration/ports.md
|
|
- Multi-Account Isolation: configuration/multi-account.md
|
|
- AWS Partitions: configuration/partitions.md
|
|
- Storage Modes: configuration/storage.md
|
|
- TLS / HTTPS: configuration/tls.md
|
|
- Initialization Hooks: configuration/initialization-hooks.md
|
|
- Advanced:
|
|
- application.yml Reference: configuration/advanced/application-yml.md
|
|
- Services:
|
|
- Overview: services/index.md
|
|
- SSM Parameter Store: services/ssm.md
|
|
- SQS: services/sqs.md
|
|
- SNS: services/sns.md
|
|
- SES: services/ses.md
|
|
- S3: services/s3.md
|
|
- S3 Tables: services/s3tables.md
|
|
- S3 Vectors: services/s3vectors.md
|
|
- EFS: services/efs.md
|
|
- DynamoDB: services/dynamodb.md
|
|
- Lambda: services/lambda.md
|
|
- Lambda MicroVMs: services/lambda-microvms.md
|
|
- Lambda Web Functions: services/lambda-web-functions.md
|
|
- API Gateway: services/api-gateway.md
|
|
- Cognito: services/cognito.md
|
|
- Cognito Identity: services/cognitoidentity.md
|
|
- Global Accelerator: services/globalaccelerator.md
|
|
- KMS: services/kms.md
|
|
- CloudHSM v2: services/cloudhsmv2.md
|
|
- Kinesis: services/kinesis.md
|
|
- Managed Service for Apache Flink: services/kinesisanalytics.md
|
|
- Secrets Manager: services/secrets-manager.md
|
|
- CloudFormation: services/cloudformation.md
|
|
- Cloud Control API: services/cloudcontrol.md
|
|
- Step Functions: services/step-functions.md
|
|
- SWF: services/swf.md
|
|
- IAM: services/iam.md
|
|
- STS: services/sts.md
|
|
- Organizations: services/organizations.md
|
|
- AWS Account Management: services/account.md
|
|
- IAM Access Analyzer: services/access-analyzer.md
|
|
- IAM Identity Center (SSO Admin): services/ssoadmin.md
|
|
- IAM Identity Center (OIDC): services/ssooidc.md
|
|
- IAM Identity Center (Access Portal): services/ssoportal.md
|
|
- Identity Store: services/identitystore.md
|
|
- AWS Budgets: services/budgets.md
|
|
- Amazon Macie: services/macie2.md
|
|
- Amazon Inspector: services/inspector2.md
|
|
- Security Hub: services/securityhub.md
|
|
- Amazon Detective: services/detective.md
|
|
- Amazon Verified Permissions: services/verifiedpermissions.md
|
|
- Control Catalog: services/controlcatalog.md
|
|
- AWS Marketplace: services/marketplace.md
|
|
- Control Tower: services/controltower.md
|
|
- AWS Service Catalog: services/service-catalog.md
|
|
- ElastiCache: services/elasticache.md
|
|
- MemoryDB: services/memorydb.md
|
|
- Aurora DSQL: services/dsql.md
|
|
- RDS: services/rds.md
|
|
- RDS Data API: services/rds-data.md
|
|
- Timestream for InfluxDB: services/timestream-influxdb.md
|
|
- MSK (Kafka): services/msk.md
|
|
- Amazon MQ: services/amazonmq.md
|
|
- Glue: services/glue.md
|
|
- Lake Formation: services/lakeformation.md
|
|
- Neptune: services/neptune.md
|
|
- DocumentDB: services/docdb.md
|
|
- DMS: services/dms.md
|
|
- Athena: services/athena.md
|
|
- Redshift: services/redshift.md
|
|
- Redshift Data API: services/redshift-data.md
|
|
- Redshift Serverless: services/redshift-serverless.md
|
|
- Data Firehose: services/firehose.md
|
|
- EventBridge: services/eventbridge.md
|
|
- EventBridge Pipes: services/pipes.md
|
|
- EventBridge Scheduler: services/scheduler.md
|
|
- CloudWatch: services/cloudwatch.md
|
|
- CloudWatch Metric Filter Verification: services/cloudwatch-metric-filters-verification.md
|
|
- CloudWatch OAM: services/oam.md
|
|
- CloudWatch RUM: services/rum.md
|
|
- Managed Prometheus (AMP): services/managed-prometheus.md
|
|
- GuardDuty: services/guardduty.md
|
|
- Connect: services/connect.md
|
|
- AppIntegrations: services/appintegrations.md
|
|
- Amazon Data Lifecycle Manager: services/dlm.md
|
|
- ACM: services/acm.md
|
|
- ECS: services/ecs.md
|
|
- ECR: services/ecr.md
|
|
- AWS Resource Groups: services/resource-groups.md
|
|
- Resource Groups Tagging API: services/resource-groups-tagging.md
|
|
- Resource Explorer 2: services/resource-explorer.md
|
|
- EKS: services/eks.md
|
|
- MWAA: services/mwaa.md
|
|
- OpenSearch: services/opensearch.md
|
|
- EC2: services/ec2.md
|
|
- Lightsail: services/lightsail.md
|
|
- AppConfig: services/appconfig.md
|
|
- Bedrock: services/bedrock.md
|
|
- Bedrock Runtime: services/bedrock-runtime.md
|
|
- Bedrock AgentCore: services/bedrock-agentcore.md
|
|
- ELB v2: services/elb.md
|
|
- ELB Classic (v1): services/elb-classic.md
|
|
- Auto Scaling: services/autoscaling.md
|
|
- Application Auto Scaling: services/applicationautoscaling.md
|
|
- Elastic Beanstalk: services/elastic-beanstalk.md
|
|
- CodeBuild: services/codebuild.md
|
|
- AWS Batch: services/batch.md
|
|
- SageMaker: services/sagemaker.md
|
|
- CodeDeploy: services/codedeploy.md
|
|
- CodeGuru Reviewer: services/codegurureviewer.md
|
|
- CodeArtifact: services/codeartifact.md
|
|
- CodePipeline: services/codepipeline.md
|
|
- Service Quotas: services/servicequotas.md
|
|
- AWS RAM: services/ram.md
|
|
- AWS Backup: services/backup.md
|
|
- AWS FIS: services/fis.md
|
|
- CloudTrail: services/cloudtrail.md
|
|
- CloudFront: services/cloudfront.md
|
|
- Route53: services/route53.md
|
|
- Route 53 Resolver: services/route53resolver.md
|
|
- AWS Cloud Map: services/cloudmap.md
|
|
- AWS IoT Core: services/iot.md
|
|
- AppSync: services/appsync.md
|
|
- Transfer Family: services/transfer.md
|
|
- DataSync: services/datasync.md
|
|
- AWS Config: services/config.md
|
|
- EMR: services/emr.md
|
|
- EMR Serverless: services/emr-serverless.md
|
|
- WAF v2: services/wafv2.md
|
|
- AWS Network Firewall: services/network-firewall.md
|
|
- Textract: services/textract.md
|
|
- Transcribe: services/transcribe.md
|
|
- Comprehend: services/comprehend.md
|
|
- Rekognition: services/rekognition.md
|
|
- Translate: services/translate.md
|
|
- Pricing: services/pricing.md
|
|
- Cost Explorer: services/ce.md
|
|
- Cost and Usage Reports: services/cur.md
|
|
- BCM Pricing Calculator: services/bcm-pricing-calculator.md
|
|
- BCM Data Exports: services/bcm-data-exports.md
|
|
- Web Console:
|
|
- Overview: ui/index.md
|
|
- Console Contract v1: ui/console-contract.md
|
|
- Testcontainers:
|
|
- Overview: testcontainers/index.md
|
|
- Java: testcontainers/java.md
|
|
- Node.js / TypeScript: testcontainers/nodejs.md
|
|
- Python: testcontainers/python.md
|
|
- .NET: testcontainers/dotnet.md
|
|
- Go: testcontainers/go.md
|
|
- Contributing: contributing.md
|