Skip to content

Remove access code - #726

Merged
reshmabidikar merged 12 commits into
killbill:remove-access-codefrom
reshmabidikar:remove-access-code
Nov 20, 2026
Merged

reshmabidikar merged 12 commits into
killbill:remove-access-codefrom
reshmabidikar:remove-access-code

Conversation

@reshmabidikar

Copy link
Copy Markdown
Contributor

No description provided.

reshmabidikar and others added 12 commits September 1, 2026 11:07
- Template: canonical link to the /latest/ URL on every page; pages with
  the kb-noindex attribute get meta robots noindex instead.
- scripts/canonicalize_versions.rb, run by update_gh-pages.sh: old version
  directories on gh-pages are not rebuilt, so the script writes a canonical
  link to the same page under /latest/ (or noindex when there is no
  equivalent, see scripts/canonical-overrides.txt) into their HTML.
  Idempotent. Also adds a self canonical to /latest/ pages that are not
  rebuilt from this branch.
- scripts/generate_sitemap.rb, run by make.sh: sitemap.xml with /latest/
  pages only, lastmod from git history (omitted in shallow clones).
  publish.yml fetches full history for it.
- static/robots.txt (allow all, sitemap location), static/_headers
  (noindex on *.pages.dev hosts and /errors/*), static/_redirects
  (renamed database migrations page).
- userguide/site/404.adoc: Cloudflare Pages returns 404.html with a 404
  status for missing paths instead of the home page with 200.
- make.sh: set -e (the shebang flag is ignored by "bash make.sh"),
  site-root files assembled in build/root; update_gh-pages.sh and
  cloudflare_deploy.sh copy them to the site root.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014mAnVCTfXeAj6TfPfuw2ps
Ruby 3.2.2 is not available on ubuntu-latest (ubuntu-26.04) runners.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014mAnVCTfXeAj6TfPfuw2ps
New pages: Aviate Members, Aviate Single Sign-On, Aviate Access Control
(permission model, enabling it, built-in and example roles, permission
reference). Add the required permissions to the wallet, coupons,
metering, health and authentication pages. Replace the insider preview
RBAC page, which described a different model.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Clarify token acquisition instructions for Aviate members with email/password login.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Aviate: document members, single sign-on and access control
Indexing: canonical links, robots.txt, sitemap, 404 page and preview noindex
Copilot AI balanced review requested due to automatic review settings November 20, 2026 12:52
@reshmabidikar
reshmabidikar merged commit 5e16dbe into killbill:remove-access-code Nov 20, 2026
2 checks passed

Copilot AI left a comment

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.

🟡 Changes recommended

The change introduces an access-code gate for Insider Preview guides and leaves the retired RBAC guide publicly accessible and indexable with a conflicting role model.

5 open issues
What changed in this PR

This PR expands Aviate access-management documentation and improves documentation publishing and search indexing. It also revises the email notification guide and adds an Insider Preview access-code gate.

Changes:

  • Replace the preview RBAC guide with access-control, membership, and single sign-on documentation.
  • Add canonical URLs, sitemap generation, crawler directives, redirects, and a custom 404 page.
  • Expand email customization instructions and update documentation navigation.
File Description
userguide/​tutorials/​email-notification-plugin.adoc Reorganizes setup and adds branding customization guidance.
userguide/​site/​404.adoc Adds a non-indexable missing-page document.
userguide/​preview/​aviate-rbac.adoc Removes the previous preview RBAC guide.
userguide/​aviate/​aviate-wallet.adoc Documents wallet endpoint permissions.
userguide/​aviate/​aviate-sso.adoc Adds organization SSO setup and troubleshooting.
userguide/​aviate/​aviate-metering.adoc Documents metering permissions.
userguide/​aviate/​aviate-members.adoc Adds organization membership management guidance.
userguide/​aviate/​aviate-health.adoc Documents health endpoint permissions.
userguide/​aviate/​aviate-coupons.adoc Adds coupon permission requirements.
userguide/​aviate/​aviate-authentication.adoc Clarifies the authentication endpoint’s permission requirement.
userguide/​aviate/​aviate-access-control.adoc Adds roles, enforcement setup, and permission references.
update_gh-pages.sh Publishes root assets and canonicalizes versioned pages.
static/​robots.txt Allows crawling and advertises the sitemap.
static/​_redirects Redirects the renamed database migration guide.
static/​_headers Adds indexing restrictions for deployment aliases and error paths.
scripts/​generate_sitemap.rb Generates latest-page URLs and source modification dates.
scripts/​canonicalize_versions.rb Adds canonical or noindex tags to published versions.
scripts/​canonical-overrides.txt Maps renamed and retired historical pages.
README.md Documents root assets and canonicalization.
make.sh Enables fail-fast execution and generates site-root files.
javascripts/​kb.js Adds the Insider Preview access-code gate.
html5/​document.html.slim Adds canonical URLs and optional noindex metadata.
html5/​_main_toc.html.slim Links new Aviate guides and removes the preview RBAC entry.
cloudflare_deploy.sh Copies generated root assets into deployments.
.github/​workflows/​publish.yml Fetches full history for sitemap modification dates.

Review effort: Balanced

Comment thread javascripts/kb.js
Comment on lines +194 to +195
const ACCESS_KEY = 'insider-access';
const ACCESS_CODE = 'aviate2026';
Comment thread update_gh-pages.sh
cp -f $BUILD/build/root/* $BUILD/killbill-docs/

# Canonical link (or noindex) in every version directory, self canonical on older /latest/ pages
ruby $DIR/scripts/canonicalize_versions.rb $BUILD/killbill-docs $DIR/scripts/canonical-overrides.txt
Comment on lines +476 to +479
| Key | Description |
| `EMAIL_TEMPLATE_COMPANY_INFO` | Email-template-level company information (overrides `COMPANY_INFO`) |
| `EMAIL_TEMPLATE_LOGO_INFO` | Email-template-level logo (overrides `LOGO_INFO`) |
| `EMAIL_TEMPLATE_BRAND_INFO` | Email-template-level style/brand information (overrides `BRAND_INFO`). Accepts all 4 fields: `textColor`, `tableBorderColor`, `tableHeadingBgColor`, `tableHeadingTextColor`. |

Organization-level branding (`COMPANY_INFO`, `LOGO_INFO`, `BRAND_INFO`) is shared across invoices and emails — see https://docs.killbill.io/latest/invoice_templates.html#upload-branding-information["Upload Branding Information"] in the Invoice Templates document for those keys and example payloads.

To override branding for a specific email template type, use the corresponding `EMAIL_TEMPLATE_*` key instead:
Comment on lines +543 to 546
the `locale` and `email` fields set. If these fields are missing, emails will not be sent and you will see the following exception in the Kill Bill logs:

[source,bash]
com.samskivert.mustache.MustacheException: No key, method or field with name 'account.companyName'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants