This is an automated email from the ASF dual-hosted git repository.

jdaugherty pushed a commit to branch feat/forge-grails-composite
in repository https://gitbox.apache.org/repos/asf/grails-core.git


The following commit(s) were added to refs/heads/feat/forge-grails-composite by 
this push:
     new 313f9787b7 Keep hosted Forge API details in the deployment runbook
313f9787b7 is described below

commit 313f9787b74fb81a8d0cd8baad698ddd806cb54d
Author: James Daugherty <[email protected]>
AuthorDate: Tue Oct 13 18:08:06 2026 +0100

    Keep hosted Forge API details in the deployment runbook
---
 grails-doc/src/en/guide/upgrading/upgrading81x.adoc |  6 +-----
 grails-forge/README.md                              |  2 ++
 grails-forge/docs/aws-elastic-beanstalk.md          | 12 ++++++++++++
 3 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/grails-doc/src/en/guide/upgrading/upgrading81x.adoc 
b/grails-doc/src/en/guide/upgrading/upgrading81x.adoc
index 784ae7385b..587dc4f20b 100644
--- a/grails-doc/src/en/guide/upgrading/upgrading81x.adoc
+++ b/grails-doc/src/en/guide/upgrading/upgrading81x.adoc
@@ -25,10 +25,6 @@ As with `contentType`, codecs and `compileStatic`, the last 
value of a preproces
 
 The new `trimLogicLines` setting is opt-in. See link:#pageDirectives[Page 
Directives] for its supported syntax and line-ending behavior.
 
-=== Forge generation and API compatibility
+=== Forge project generation
 
 Default projects consistently include Mockito with Spock. When both Grails 
Data for MongoDB and the synchronous MongoDB driver are selected, Grails Data 
owns the MongoDB URLs: development and test use embedded databases, while 
production uses the configured external server.
-
-Forge generation endpoints reject explicitly supplied invalid options with 
HTTP 400; omitted options retain their defaults. Error responses expose the 
reason in `message` and `_embedded.errors[0].message`. Feature-listing filters 
remain lenient. Option enum values retain their uppercase names for 
compatibility with existing UI selections and shared links, and GET endpoints 
also accept HEAD.
-
-The Forge CLI loads its application configuration from the classpath rather 
than from the project being generated. The hosted API continues to use 
`HOSTNAME` as its HTTPS link base when set; an explicit `grails.forge.url` 
overrides it.
diff --git a/grails-forge/README.md b/grails-forge/README.md
index c46e8c0ec6..8929912fa2 100644
--- a/grails-forge/README.md
+++ b/grails-forge/README.md
@@ -55,6 +55,8 @@ Use `-PskipForgeTests` to skip Forge tests and their 
local-Maven publication pre
 
 The CLI is a Java application distributed with Grails for Windows, Linux and 
macOS. Download it from the [releases 
page](https://github.com/apache/grails-core/releases). For installation see the 
[Grails 
documentation](https://grails.apache.org/docs/latest/guide/index.html#buildCLI).
 
+The Forge CLI defaults to classpath application configuration 
(`spring.config.location=classpath:/`), so local `application.yml` and 
`config/` files are not loaded into the generator's context.
+
 If you prefer not to install an application to create Grails applications you 
can do so with `curl` directly from the API:
 
 ```bash
diff --git a/grails-forge/docs/aws-elastic-beanstalk.md 
b/grails-forge/docs/aws-elastic-beanstalk.md
index 7f210bb81d..e733a3696f 100644
--- a/grails-forge/docs/aws-elastic-beanstalk.md
+++ b/grails-forge/docs/aws-elastic-beanstalk.md
@@ -89,6 +89,8 @@ Create one environment stack for each row. The seven listener 
priorities must re
 
 `HostName` supplies both the host-header condition and the application's 
`HOSTNAME` setting. Do not use a path rule or the listener default rule for a 
slot. `next-snapshot` currently serves `8.0.0-SNAPSHOT` from `8.0.x`. `older` 
currently serves `7.0.6` from `7.0.x`.
 
+The Grails-based API uses `https://<HOSTNAME>` as the base for its response 
links and plain-text usage URLs, even without an `X-Forwarded-Proto` header. An 
explicit `grails.forge.url` overrides it. When neither is configured, the API 
derives the base URL from the request, including forwarded headers.
+
 ## Stack Deployment Order
 
 Deploy `grails-forge/infrastructure/shared.yaml` first. Its exact required 
parameters are `VpcId`, `PublicSubnets`, `CertificateArn`, and 
`GitHubOidcProviderArn`; `ApplicationName` defaults to `grails-forge` and may 
be supplied explicitly. The workflow derives each environment name as 
`<ApplicationName>-<slot>`. Do not use `StackPrefix` or `PublicSubnetIds`.
@@ -171,6 +173,16 @@ curl --fail --show-error --silent \
 
 Repeat for all seven hostnames. Success proves certificate selection, SNI, the 
host rule, and target reachability. Public DNS already CNAMEs these hostnames 
to the ALB, so the same check works without `--connect-to`.
 
+## API Compatibility
+
+The Grails-based hosted API preserves the contracts used by the Forge UI and 
existing shared links:
+
+- Generation endpoints reject explicitly supplied invalid options with HTTP 
400; omitted options retain their defaults.
+- Error responses expose the reason in `message` and 
`_embedded.errors[0].message`.
+- Feature-listing filters remain lenient, ignoring unrecognized option values.
+- `/select-options` retains uppercase option enum names for compatibility with 
stored UI selections and shared links.
+- GET endpoints also accept HEAD with the same status and content type and no 
response body. For example, `HEAD /versions` returns 200, and `HEAD 
/create/web/demo` returns 201.
+
 ## Cloudflare DNS
 
 Cloudflare is authoritative for the seven API hostnames. Configure each as a 
DNS-only (grey-cloud, not proxied) CNAME targeting the shared stack 
`SharedLoadBalancerDnsName` output. Resolve that value with:

Reply via email to