Skip to content

doc/rgw: document s3control apis for PublicAccessBlock - #69111

Merged
cbodley merged 2 commits into
ceph:mainfrom
cbodley:wip-doc-71265
May 27, 2026
Merged

cbodley merged 2 commits into
ceph:mainfrom
cbodley:wip-doc-71265

Conversation

@cbodley

@cbodley cbodley commented May 26, 2026

Copy link
Copy Markdown
Contributor

documentation for #64293

Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

Comment thread doc/radosgw/s3.rst
Comment on lines +89 to +90
| **Bucket PublicAccessBlock** | Supported | |
+---------------------------------+-----------------+--------------------------------------------------+

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we've supported this at the bucket level since the octopus release. i split this part into a separate commit so it can be backported to squid/tentacle

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

backports in #69131 and #69130

Comment thread doc/radosgw/s3/s3control.rst Outdated

.. versionadded:: Umbrella

Ceph Object Gateway supports a subset of the `AWS S3 Control API`_ for ``PublicAccessBlock`` configuration on :ref:`User Accounts <radosgw-account>`, similar to the S3 API's ``PublicAccessBlock`` configuration for buckets. This account-level configuration applies to all buckets owned by the account. When configured at both account- and bucket-level, precedence goes to whichever is more restrictive.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Ceph ...

Also, we like to keep doc files roughly below 80 chars per line, with breaks where it's natural. This is not hard limit, but longer lines are harder to read and review.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, addressed both points in a squash commit

Comment thread doc/radosgw/s3/s3control.rst Outdated
Wildcard DNS
~~~~~~~~~~~~

When issuing S3 Control requests, `awscli`_ and some AWS SDKs add the account id to the host name like ``rgw69573912842483864.s3.example.com``, so expect a DNS configuration that allows a wildcard subdomain. If the :ref:`HTTP Frontend <rgw_frontends>` is configured for SSL, its certificate must also match this wildcard subdomain.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expect a DNS configuration? I'm not super experienced with this aspect of RGW so I don't know what this is saying, consider me a 🦆 . There might be a more clear way to phrase.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these clients would send http requests to different dns names like account1.s3.example.com account2.s3.example.com etc, so dns would need to be configured to map all of those names to the radosgw host(s) or load balancer. this is accomplished with a https://en.wikipedia.org/wiki/Wildcard_DNS_record like *.s3.example.com

this is essentially the same thing as s3's virtual-hosted buckets, where dns names start with bucketname.s3.example.com. our documentation for that and rgw_dns_name are still lacking

Comment thread doc/radosgw/s3/s3control.rst Outdated

Because this behavior is not documented in the AWS API reference (and the
account id is already supplied in the ``x-amz-account-id`` request header),
Ceph Object Gateway does not require the account to be part of the host name

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer hostname but others might disagree. I lost re file system.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated, tyvm for review

@cbodley
cbodley merged commit 0b0fc31 into ceph:main May 27, 2026
6 checks passed
@cbodley
cbodley deleted the wip-doc-71265 branch May 27, 2026 18:35
@bluikko

bluikko commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Hello. This PR added a new docs file doc/radosgw/s3/s3control.rst which is not included in the docs toctree. While that is not a problem per se, the document is more difficult to discover and Sphinx will issue a warning on docs build:

/home/docs/checkouts/readthedocs.org/user_builds/ceph/checkouts/70057/doc/radosgw/s3/s3control.rst: WARNING: document isn't included in any toctree

I am trying to fix all these warnings and I propose to add it to the toctree in file doc/radosgw/s3.rst.
Alternatively, I can mark the file as orphan to simply silence the warning.
Please let me know if you prefer to leave the s3control.rst file outside of the toctree. A simple +1 / -1 on this comment or approval on the relevant PR would be appreciated. The proposed change is #70058.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants