You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by ja...@apache.org on 2026/07/23 13:58:08 UTC
(grails-static-website) 01/03: Remove exposed OpenWeather key from Grails 3 guide
This is an automated email from the ASF dual-hosted git repository.
jamesfredley pushed a commit to branch feature/remove-openweather-api-key
in repository https://gitbox.apache.org/repos/asf/grails-static-website.git
commit f2151dcbc3af6dc07cff70b6d1886a744f164fa3
Author: James Fredley <ja...@users.noreply.github.com>
AuthorDate: Thu Jul 23 09:36:43 2026 -0400
Remove exposed OpenWeather key from Grails 3 guide
Replace the committed appid with an optional environment variable placeholder and remove the screenshot that reveals the key.
Assisted-by: opencode:gpt-5.6-sol codegraph playwright
---
.../grails-mock-http-server/v3/guide/openweather.adoc | 2 --
guides/grails-mock-http-server/v3/img/apiKey.png | Bin 123760 -> 0 bytes
.../v3/snippets/grails-app/conf/application.yml | 2 +-
3 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/guides/grails-mock-http-server/v3/guide/openweather.adoc b/guides/grails-mock-http-server/v3/guide/openweather.adoc
index e56744e7845..f2174225d5b 100644
--- a/guides/grails-mock-http-server/v3/guide/openweather.adoc
+++ b/guides/grails-mock-http-server/v3/guide/openweather.adoc
@@ -8,6 +8,4 @@ They have a FREE plan which allows you to get the https://openweathermap.org/cur
After you register, you get an API Key. You will need an API key to interact with the Open Weather Map API.
-image::apiKey.png[]
-
TIP: the API key may take several minutes to become active.
diff --git a/guides/grails-mock-http-server/v3/img/apiKey.png b/guides/grails-mock-http-server/v3/img/apiKey.png
deleted file mode 100644
index 6d9be3ce838..00000000000
Binary files a/guides/grails-mock-http-server/v3/img/apiKey.png and /dev/null differ
diff --git a/guides/grails-mock-http-server/v3/snippets/grails-app/conf/application.yml b/guides/grails-mock-http-server/v3/snippets/grails-app/conf/application.yml
index 03edb2dd01d..29107263bbd 100644
--- a/guides/grails-mock-http-server/v3/snippets/grails-app/conf/application.yml
+++ b/guides/grails-mock-http-server/v3/snippets/grails-app/conf/application.yml
@@ -132,7 +132,7 @@ environments:
---
#tag::openweathermap[]
openweather:
- appid: 1f6c7d09a28f1ddccf70c06e2cb75ee4
+ appid: '${OPENWEATHER_APPID:}'
cityName: London
countryCode: uk
#end::openweathermap[]