This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/master by this push:
new d0bb173e103 [ci] Add a manual OIDC probe for website OSS (#4687)
d0bb173e103 is described below
commit d0bb173e103e4830afb93fbbc7874f322a67f831
Author: Mingyu Chen (Rayner) <[email protected]>
AuthorDate: Mon Nov 23 22:10:04 2026 +0800
[ci] Add a manual OIDC probe for website OSS (#4687)
The new website bucket needs a live GitHub OIDC check before production
uploads move to it. Add a manual workflow restricted to
`apache/doris-website` on `master` that checks `site/` access, explicit
denials outside the deployment permissions, CDN delivery, and rejection
of anonymous OSS reads.
The workflow uses repository variables and short-lived STS credentials,
with pinned Actions and a checksummed ossutil binary. It writes only
unique, non-secret diagnostic objects. It does not change production
publishing workflows or asset URLs.
Validation:
- All 37 `.github/scripts` tests passed, including 9 probe/workflow
tests.
- actionlint 1.7.12 passed for the new workflow.
- The new CDN passed public DNS, certificate, all 50 restored asset
metadata checks, sampled body checks, and private-origin access
validation.
- Live GitHub OIDC remains to be verified after this workflow is merged
into `master`; the role deliberately does not trust PR or fork subjects.
Merging follows the repository's existing push-workflow behavior. The
added diagnostic itself runs only through `workflow_dispatch` and has no
website publication step.
Co-authored-by: morningman <[email protected]>
---
.github/scripts/test_website_oss_probe.py | 143 +++++++++++++++++++++++++
.github/scripts/website_oss_probe.py | 167 ++++++++++++++++++++++++++++++
.github/workflows/verify-website-oss.yml | 69 ++++++++++++
scripts/publish/oss-oidc-probe.md | 53 ++++++++++
4 files changed, 432 insertions(+)
diff --git a/.github/scripts/test_website_oss_probe.py
b/.github/scripts/test_website_oss_probe.py
new file mode 100644
index 00000000000..b08682b9604
--- /dev/null
+++ b/.github/scripts/test_website_oss_probe.py
@@ -0,0 +1,143 @@
+import importlib.util
+import json
+import os
+from pathlib import Path
+import subprocess
+import unittest
+from unittest.mock import patch
+
+spec = importlib.util.spec_from_file_location('website_oss_probe',
Path(__file__).with_name('website_oss_probe.py'))
+probe = importlib.util.module_from_spec(spec)
+spec.loader.exec_module(probe)
+
+CONFIG = {
+ 'GITHUB_REPOSITORY': 'apache/doris-website',
+ 'GITHUB_REF': 'refs/heads/master',
+ 'GITHUB_EVENT_NAME': 'workflow_dispatch',
+ 'GITHUB_SHA': 'a' * 40,
+ 'GITHUB_RUN_ID': '123',
+ 'GITHUB_RUN_ATTEMPT': '1',
+ 'WEBSITE_OSS_BUCKET': 'doris-website-assets-prod-bj',
+ 'WEBSITE_OSS_REGION': 'cn-beijing',
+ 'WEBSITE_OSS_ENDPOINT': 'https://oss-cn-beijing.aliyuncs.com',
+ 'WEBSITE_ASSET_BASE_URL': 'https://assets-cdn.selectdb.com/site',
+}
+DENIED = 'Http Status Code: 403.\nError Code: AccessDenied.\n'
+
+
+class ProbeTests(unittest.TestCase):
+ def test_workflow_is_manual_master_only_and_cannot_publish(self):
+ root = Path(__file__).resolve().parents[2]
+ raw = subprocess.check_output(['node', '-e', """
+ const fs = require('fs'), yaml = require('js-yaml');
+
console.log(JSON.stringify(yaml.load(fs.readFileSync('.github/workflows/verify-website-oss.yml',
'utf8'))));
+ """], cwd=root)
+ workflow = json.loads(raw)
+ self.assertEqual(set(workflow['on']), {'workflow_dispatch'})
+ self.assertEqual(workflow['permissions'], {'contents': 'read'})
+ job = workflow['jobs']['probe']
+ self.assertEqual(job['permissions'], {'contents': 'read', 'id-token':
'write'})
+ for condition in ["github.repository == 'apache/doris-website'",
+ "github.ref == 'refs/heads/master'",
+ "github.event_name == 'workflow_dispatch'"]:
+ self.assertIn(condition, job['if'])
+ checkout = job['steps'][0]
+ self.assertEqual(checkout['with']['ref'], '${{ github.sha }}')
+ self.assertFalse(checkout['with']['persist-credentials'])
+ self.assertNotIn('environment', job)
+ self.assertNotIn('secrets.', json.dumps(workflow))
+ self.assertNotIn('asf-site', json.dumps(job))
+ for step in job['steps']:
+ if 'uses' in step:
+ self.assertRegex(step['uses'], r'@[0-9a-f]{40}$')
+
+ def test_rejects_untrusted_contexts_before_any_cloud_access(self):
+ for key, value in [('GITHUB_REPOSITORY', 'someone/doris-website'),
+ ('GITHUB_REF', 'refs/pull/1/merge'),
+ ('GITHUB_REF', 'refs/heads/preview'),
+ ('GITHUB_EVENT_NAME', 'pull_request'),
+ ('GITHUB_SHA', 'master'),
+ ('GITHUB_RUN_ID', '../site'),
+ ('WEBSITE_OSS_ENDPOINT',
'http://oss-cn-beijing.aliyuncs.com'),
+ ('WEBSITE_OSS_BUCKET', 'doris-community-ci'),
+ ('WEBSITE_ASSET_BASE_URL',
'https://assets-cdn.selectdb.com')]:
+ with self.subTest(key=key, value=value),
self.assertRaises(probe.ProbeError):
+ probe.configuration({**CONFIG, key: value})
+
+ def test_only_explicit_access_denials_count_as_permission_boundaries(self):
+ self.assertTrue(probe.access_denied(subprocess.CompletedProcess([], 2,
'', DENIED)))
+ for code, message in [(0, DENIED), (2, 'connection timed out'),
+ (2, 'Http Status Code: 404.\nError Code:
NoSuchKey.'),
+ (2, 'Http Status Code: 403.\nError Code:
SecurityTokenExpired.'),
+ (2, 'Http Status Code: 400.\nError Code:
AccessDenied.')]:
+ with self.subTest(message=message):
+
self.assertFalse(probe.access_denied(subprocess.CompletedProcess([], code, '',
message)))
+
+ def fake_runner(self, calls, *, allow_media_write=False):
+ def run(command, **kwargs):
+ calls.append(command)
+ if command[1] == 'cat':
+ return subprocess.CompletedProcess(command, 0,
'github-123-1-aaaaaaaaaaaa\n', '')
+ operation = command[2]
+ key = command[command.index('--key') + 1] if '--key' in command
else ''
+ prefix = command[command.index('--prefix') + 1] if '--prefix' in
command else ''
+ allowed = (operation == 'get-bucket-location'
+ or operation == 'put-object' and
key.startswith('site/rebuild-probes/')
+ or operation == 'list-objects-v2' and prefix ==
'site/rebuild-probes/'
+ or allow_media_write and operation == 'put-object' and
key.startswith('media/'))
+ return subprocess.CompletedProcess(command, 0 if allowed else 2,
'', '' if allowed else DENIED)
+ return run
+
+ def test_full_probe_uses_disposable_keys_and_never_publishes(self):
+ calls = []
+ with patch.object(probe, 'verify_delivery') as delivery, \
+ patch.object(probe, 'request', return_value=(403, b'',
{'Server': 'AliyunOSS'})):
+ report = probe.Probe(CONFIG, run=self.fake_runner(calls)).execute()
+ self.assertFalse(report['published'])
+ self.assertEqual(len(report['checks']), 14)
+ delivery.assert_called_once_with(
+
'https://assets-cdn.selectdb.com/site/rebuild-probes/github-123-1-aaaaaaaaaaaa.txt',
+ b'github-123-1-aaaaaaaaaaaa\n')
+ for command in calls:
+ self.assertEqual(command[command.index('--mode') + 1], 'StsToken')
+ self.assertEqual(command[command.index('--config-file') + 1],
os.devnull)
+ self.assertNotIn('--access-key-id', command)
+ self.assertNotIn('--access-key-secret', command)
+ self.assertNotIn('--sts-token', command)
+ if 'delete-object' in command:
+ self.assertIn('/never-created-github-',
command[command.index('--key') + 1])
+ if 'put-object-acl' in command:
+ self.assertEqual(command[command.index('--object-acl') + 1],
'private')
+
+ def test_broad_write_permissions_fail_the_probe(self):
+ with self.assertRaisesRegex(probe.ProbeError, 'media_write_denied'):
+ probe.Probe(CONFIG, run=self.fake_runner([],
allow_media_write=True)).execute()
+
+ def test_public_oss_origin_fails_the_probe(self):
+ with patch.object(probe, 'verify_delivery'), \
+ patch.object(probe, 'request', return_value=(200, b'',
{'Server': 'AliyunOSS'})), \
+ self.assertRaisesRegex(probe.ProbeError, 'Anonymous OSS read'):
+ probe.Probe(CONFIG, run=self.fake_runner([])).execute()
+
+ def test_cdn_requires_exact_content_and_cors(self):
+ for response in [(200, b'wrong', {'Access-Control-Allow-Origin':
'https://doris.apache.org'}),
+ (200, b'expected', {}), (404, b'expected', {})]:
+ with self.subTest(response=response),
self.assertRaises(probe.ProbeError):
+
probe.verify_delivery('https://assets-cdn.selectdb.com/site/probe.txt',
b'expected',
+ fetch=lambda _: response, pause=lambda
_: None)
+
+ def test_cdn_retries_propagation_errors(self):
+ responses = iter([(503, b'', {}), (200, b'expected',
{'access-control-allow-origin': 'https://doris.apache.org'})])
+
probe.verify_delivery('https://assets-cdn.selectdb.com/site/probe.txt',
b'expected',
+ fetch=lambda _: next(responses), pause=lambda _:
None)
+
+ def test_cli_failure_does_not_log_raw_signed_requests(self):
+ def fail(command, **kwargs):
+ return subprocess.CompletedProcess(command, 2, '', 'signed request
with secret-data')
+ with self.assertRaises(probe.ProbeError) as error:
+ probe.Probe(CONFIG, run=fail).oss('read', 'cat',
'oss://bucket/site/probe')
+ self.assertNotIn('secret-data', str(error.exception))
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/.github/scripts/website_oss_probe.py
b/.github/scripts/website_oss_probe.py
new file mode 100644
index 00000000000..4ed98f9195a
--- /dev/null
+++ b/.github/scripts/website_oss_probe.py
@@ -0,0 +1,167 @@
+#!/usr/bin/env python3
+"""Verify the new website role without publishing or changing bucket
settings."""
+import argparse
+import hashlib
+import json
+import os
+from pathlib import Path
+import re
+import subprocess
+import tempfile
+import time
+from urllib.error import HTTPError, URLError
+from urllib.parse import urlsplit
+from urllib.request import Request, urlopen
+
+
+class ProbeError(RuntimeError):
+ pass
+
+
+def configuration(env):
+ expected = {
+ 'GITHUB_REPOSITORY': 'apache/doris-website',
+ 'GITHUB_REF': 'refs/heads/master',
+ 'GITHUB_EVENT_NAME': 'workflow_dispatch',
+ 'WEBSITE_OSS_BUCKET': 'doris-website-assets-prod-bj',
+ 'WEBSITE_OSS_REGION': 'cn-beijing',
+ 'WEBSITE_OSS_ENDPOINT': 'https://oss-cn-beijing.aliyuncs.com',
+ 'WEBSITE_ASSET_BASE_URL': 'https://assets-cdn.selectdb.com/site',
+ }
+ for name, value in expected.items():
+ if env.get(name) != value:
+ raise ProbeError('Unexpected or missing configuration: ' + name)
+ if not re.fullmatch(r'[0-9a-f]{40}', env.get('GITHUB_SHA', '')):
+ raise ProbeError('Expected an immutable source SHA')
+ for name in ['GITHUB_RUN_ID', 'GITHUB_RUN_ATTEMPT']:
+ if not re.fullmatch(r'[1-9][0-9]*', env.get(name, '')):
+ raise ProbeError('Invalid run identity: ' + name)
+ return {key: env[key] for key in expected}
+
+
+def access_denied(result):
+ # Timeouts, missing objects, wrong endpoints and expired tokens must fail.
+ # ossutil 2.x reports "Http Status Code: 403" and "Error Code:
AccessDenied".
+ message = result.stdout + result.stderr
+ return (result.returncode != 0
+ and re.search(r'Http Status Code:\s*403\b', message) is not None
+ and re.search(r'Error Code:\s*AccessDenied\b', message) is not
None)
+
+
+def request(url, method='GET'):
+ try:
+ with urlopen(Request(url, method=method), timeout=20) as response:
+ return response.status, response.read(),
dict(response.headers.items())
+ except HTTPError as response:
+ return response.code, response.read(), dict(response.headers.items())
+
+
+def verify_delivery(url, expected, fetch=request, pause=time.sleep):
+ for attempt in range(6):
+ try:
+ status, body, headers = fetch(url)
+ headers = {key.lower(): value for key, value in headers.items()}
+ if (status == 200 and body == expected
+ and headers.get('access-control-allow-origin') ==
'https://doris.apache.org'):
+ return
+ except (URLError, TimeoutError, OSError):
+ pass
+ if attempt < 5:
+ pause(5)
+ raise ProbeError('CDN probe content or CORS verification failed')
+
+
+class Probe:
+ def __init__(self, env, run=subprocess.run):
+ self.config = configuration(env)
+ self.run = run
+ self.bucket = env['WEBSITE_OSS_BUCKET']
+ self.suffix =
f"github-{env['GITHUB_RUN_ID']}-{env['GITHUB_RUN_ATTEMPT']}-{env['GITHUB_SHA'][:12]}"
+ self.key = 'site/rebuild-probes/' + self.suffix + '.txt'
+ self.body = (self.suffix + '\n').encode()
+ self.results = []
+
+ def oss(self, label, *args, denied=False):
+ command = ['ossutil', *args, '--region',
self.config['WEBSITE_OSS_REGION'],
+ '--endpoint', self.config['WEBSITE_OSS_ENDPOINT'],
'--mode', 'StsToken',
+ '--config-file', os.devnull, '--retry-times', '1',
'--read-timeout', '20']
+ try:
+ result = self.run(command, capture_output=True, text=True,
timeout=90, check=False)
+ except (OSError, subprocess.TimeoutExpired):
+ raise ProbeError(label + ': command did not complete') from None
+ if denied:
+ if not access_denied(result):
+ raise ProbeError(label + ': expected an explicit OSS 403
AccessDenied')
+ elif result.returncode:
+ # Do not print CLI diagnostics that might include a signed request.
+ raise ProbeError(label + ': OSS command failed; no credentials or
raw diagnostics logged')
+ self.results.append(label)
+ print(label + ': PASS', flush=True)
+ return result.stdout
+
+ def execute(self):
+ self.oss('bucket_location', 'api', 'get-bucket-location', '--bucket',
self.bucket)
+ with tempfile.TemporaryDirectory(prefix='website-oss-probe-') as
directory:
+ source = Path(directory) / 'probe.txt'
+ source.write_bytes(self.body)
+ self.oss('site_write', 'api', 'put-object', '--bucket',
self.bucket, '--key', self.key,
+ '--body', 'file://' + str(source), '--content-type',
'text/plain',
+ '--cache-control', 'no-store', '--metadata', 'sha256=' +
hashlib.sha256(self.body).hexdigest())
+ self.oss('site_list', 'api', 'list-objects-v2', '--bucket',
self.bucket,
+ '--prefix', 'site/rebuild-probes/', '--max-keys', '1')
+ body = self.oss('site_read', 'cat',
f'oss://{self.bucket}/{self.key}', '--quiet')
+ if body.encode() != self.body:
+ raise ProbeError('Authenticated probe read returned different
content')
+ for prefix in ['media', 'downloads']:
+ # Unexpected permission can create only our non-secret
diagnostic.
+ key = f'{prefix}/rebuild-probes/{self.suffix}.txt'
+ self.oss(prefix + '_write_denied', 'api', 'put-object',
'--bucket', self.bucket,
+ '--key', key, '--body', 'file://' + str(source),
denied=True)
+ self.oss('root_list_denied', 'api', 'list-objects-v2', '--bucket',
self.bucket,
+ '--max-keys', '1', denied=True)
+ self.oss('media_list_denied', 'api', 'list-objects-v2', '--bucket',
self.bucket,
+ '--prefix', 'media/', '--max-keys', '1', denied=True)
+ self.oss('private_prefix_read_denied', 'api', 'get-object',
'--bucket', self.bucket,
+ '--key', f'private/rebuild-probes/{self.suffix}.txt',
denied=True)
+ # Use a nonexistent diagnostic key; never delete an existing object.
+ self.oss('object_delete_denied', 'api', 'delete-object', '--bucket',
self.bucket,
+ '--key', 'site/rebuild-probes/never-created-' + self.suffix,
denied=True)
+ # Even if permissions are too broad, this keeps our own probe private.
+ self.oss('object_acl_change_denied', 'api', 'put-object-acl',
'--bucket', self.bucket,
+ '--key', self.key, '--object-acl', 'private', denied=True)
+ self.oss('bucket_acl_read_denied', 'api', 'get-bucket-acl',
'--bucket', self.bucket, denied=True)
+ verify_delivery('https://assets-cdn.selectdb.com/' + self.key,
self.body)
+ self.results.append('cdn_content_and_cors')
+ endpoint = urlsplit(self.config['WEBSITE_OSS_ENDPOINT'])
+ url = f'{endpoint.scheme}://{self.bucket}.{endpoint.netloc}/{self.key}'
+ status, _, headers = request(url, method='HEAD')
+ if status != 403 or {key.lower(): value for key, value in
headers.items()}.get('server') != 'AliyunOSS':
+ raise ProbeError('Anonymous OSS read must return OSS 403')
+ self.results.append('anonymous_oss_read_denied')
+ return {'probe_key': self.key, 'checks': self.results, 'published':
False}
+
+
+def main():
+ parser = argparse.ArgumentParser(description=__doc__)
+ parser.add_argument('--check-config', action='store_true')
+ args = parser.parse_args()
+ configuration(os.environ)
+ if args.check_config:
+ print('Trusted master and website resource configuration: PASS')
+ return
+ if not all(os.environ.get(name) for name in ['OSS_ACCESS_KEY_ID',
'OSS_ACCESS_KEY_SECRET', 'OSS_SESSION_TOKEN']):
+ raise ProbeError('Missing short-lived STS credentials')
+ report = Probe(os.environ).execute()
+ print(json.dumps(report, indent=2))
+ if os.environ.get('GITHUB_STEP_SUMMARY'):
+ with open(os.environ['GITHUB_STEP_SUMMARY'], 'a') as file:
+ file.write('Website OSS OIDC probe passed. No website
publication.\n\n')
+ file.write('Probe: `' + report['probe_key'] + '`\n\n')
+ file.write('\n'.join('- ' + check + ': PASS' for check in
report['checks']) + '\n')
+
+
+if __name__ == '__main__':
+ try:
+ main()
+ except ProbeError as error:
+ raise SystemExit(str(error)) from None
diff --git a/.github/workflows/verify-website-oss.yml
b/.github/workflows/verify-website-oss.yml
new file mode 100644
index 00000000000..753bd4dd7ca
--- /dev/null
+++ b/.github/workflows/verify-website-oss.yml
@@ -0,0 +1,69 @@
+name: Verify Website OSS OIDC
+
+on:
+ workflow_dispatch:
+
+permissions:
+ contents: read
+
+# This diagnostic writes only unique probe objects and never publishes
asf-site.
+concurrency:
+ group: website-oss-oidc-probe
+ cancel-in-progress: false
+
+jobs:
+ probe:
+ if: >-
+ github.repository == 'apache/doris-website' &&
+ github.ref == 'refs/heads/master' &&
+ github.event_name == 'workflow_dispatch'
+ runs-on: ubuntu-22.04
+ timeout-minutes: 15
+ permissions:
+ contents: read
+ id-token: write
+ env:
+ WEBSITE_OSS_BUCKET: ${{ vars.WEBSITE_OSS_BUCKET }}
+ WEBSITE_OSS_REGION: ${{ vars.WEBSITE_OSS_REGION }}
+ WEBSITE_OSS_ENDPOINT: ${{ vars.WEBSITE_OSS_ENDPOINT }}
+ WEBSITE_ASSET_BASE_URL: ${{ vars.WEBSITE_ASSET_BASE_URL }}
+ steps:
+ - name: Checkout trusted probe code
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ with:
+ ref: ${{ github.sha }}
+ persist-credentials: false
+
+ - name: Check repository and non-secret configuration
+ run: python3 .github/scripts/website_oss_probe.py --check-config
+
+ - name: Install pinned ossutil
+ shell: bash
+ run: |
+ set -euo pipefail
+ tool_dir="$RUNNER_TEMP/website-ossutil"
+ mkdir -p "$tool_dir"
+ curl --fail --location --retry 3 \
+
'https://gosspublic.alicdn.com/ossutil/v2/2.4.1/ossutil-2.4.1-linux-amd64.zip' \
+ --output "$tool_dir/ossutil.zip"
+ echo
'57ee4c56796a40144acd6b0b96b53b4ba75e5cec09c01d8d0313c09a5524022f
'"$tool_dir/ossutil.zip" | sha256sum --check
+ unzip -q "$tool_dir/ossutil.zip" -d "$tool_dir"
+ install -m 0755 "$tool_dir/ossutil-2.4.1-linux-amd64/ossutil"
"$tool_dir/ossutil"
+ echo "$tool_dir" >> "$GITHUB_PATH"
+
+ - name: Authenticate using GitHub OIDC
+ id: aliyun
+ uses:
aliyun/configure-aliyun-credentials-action@1e5248c8d5d93a8781ac344a68e19a43341e79e6
+ with:
+ oidc-provider-arn: ${{ vars.ALIYUN_OIDC_PROVIDER_ARN }}
+ role-to-assume: ${{ vars.ALIYUN_WEBSITE_ROLE_ARN }}
+ audience: sts.aliyuncs.com
+ role-session-name: doris-probe-${{ github.run_id }}-${{
github.run_attempt }}
+ role-session-expiration: 900
+
+ - name: Verify website permissions and private-origin delivery
+ env:
+ OSS_ACCESS_KEY_ID: ${{ steps.aliyun.outputs.aliyun-access-key-id }}
+ OSS_ACCESS_KEY_SECRET: ${{
steps.aliyun.outputs.aliyun-access-key-secret }}
+ OSS_SESSION_TOKEN: ${{ steps.aliyun.outputs.aliyun-security-token }}
+ run: python3 .github/scripts/website_oss_probe.py
diff --git a/scripts/publish/oss-oidc-probe.md
b/scripts/publish/oss-oidc-probe.md
new file mode 100644
index 00000000000..c4a951ffa7a
--- /dev/null
+++ b/scripts/publish/oss-oidc-probe.md
@@ -0,0 +1,53 @@
+# Website OSS OIDC probe
+
+Run **Verify Website OSS OIDC** manually from `master` after the workflow has
+been merged into `apache/doris-website`. The RAM role trusts the default GitHub
+OIDC subject `repo:apache/doris-website:ref:refs/heads/master`; a PR or fork
cannot
+perform this live check. The workflow has no push or pull request trigger and
+does not build or publish the website.
+
+Configure these repository-level Actions variables. No GitHub Environment or
+permanent AccessKey secret is required.
+
+| Variable | Value |
+| --- | --- |
+| `ALIYUN_OIDC_PROVIDER_ARN` | Provider ARN for
`https://token.actions.githubusercontent.com`, audience `sts.aliyuncs.com` |
+| `ALIYUN_WEBSITE_ROLE_ARN` | ARN of the role that can read and write only
website objects |
+| `WEBSITE_OSS_BUCKET` | `doris-website-assets-prod-bj` |
+| `WEBSITE_OSS_REGION` | `cn-beijing` |
+| `WEBSITE_OSS_ENDPOINT` | `https://oss-cn-beijing.aliyuncs.com` |
+| `WEBSITE_ASSET_BASE_URL` | `https://assets-cdn.selectdb.com/site` |
+
+The probe verifies:
+
+- Bucket location lookup and authenticated write, list, and read under `site/`.
+- Denied writes to `media/` and `downloads/`, denied listing outside `site/`,
+ and denied reads of a nonexistent diagnostic key under `private/`.
+- Denied object deletion, object ACL changes, and bucket ACL reads.
+- A unique probe delivered over CDN HTTPS with exact content and website CORS.
+- Rejection of an anonymous HTTPS request for that same existing object at OSS.
+
+Only an explicit OSS `403 AccessDenied` passes a negative permission check.
+Network errors, missing objects and expired credentials fail the workflow.
+Credentials are passed through environment variables, and raw CLI diagnostics
+are not printed because they may contain signed request information.
+
+The probe leaves a small, non-secret text object under `site/rebuild-probes/`
+with a unique run/attempt/commit name. Deletion is checked against a key that
was
+never created. The ACL check attempts only to keep the probe private. If a
+negative write unexpectedly succeeds, the workflow fails and may also leave
+that diagnostic under `media/rebuild-probes/` or `downloads/rebuild-probes/`;
+an administrator should inspect the role and remove those test objects.
+
+Use the successful run to validate the cloud role before migrating production
+uploads. Existing publishing workflows, their credentials, asset URLs and
+the `asf-site` branch are unaffected by adding this manual diagnostic.
+
+Local validation:
+
+```sh
+python3 -m unittest discover -s .github/scripts -p 'test_website_oss_probe.py'
-v
+```
+
+The tests exercise permission and content failures with a simulated CLI. Live
+OIDC, OSS and CDN checks require the manual workflow on `master`.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]