Skip to content

Remove exposed OpenWeather key from guide samples - #529

Merged
jamesfredley merged 3 commits into
masterfrom
feature/remove-openweather-api-key
Jul 23, 2026
Merged

Remove exposed OpenWeather key from guide samples#529
jamesfredley merged 3 commits into
masterfrom
feature/remove-openweather-api-key

Conversation

@jamesfredley

@jamesfredley jamesfredley commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • replace the live OpenWeather appid in the Grails 3 and Grails 4 guide snippets with an optional OPENWEATHER_APPID environment placeholder
  • remove the screenshot that also displayed the live key and remove its guide references
  • update both run instructions to explain how readers supply their own key

This intentionally updates the current branch only and does not rewrite repository history.

Companion current-guide source PR: grails-guides/grails-mock-http-server#6

Verification

  • ./gradlew clean check --no-daemon --no-configuration-cache
  • ./gradlew renderGuide_grails_mock_http_server_3 renderGuide_grails_mock_http_server_4 --no-daemon --no-configuration-cache
  • browser QA of both rendered guides confirmed the environment-variable instruction, no API-key screenshot, no 32-hex key text, and no console errors

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
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
Update both guide versions so their run instructions match the environment-backed API key configuration.

Assisted-by: opencode:gpt-5.6-sol codegraph playwright
Copilot AI review requested due to automatic review settings July 23, 2026 14:01

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.

Pull request overview

Removes a previously hard-coded OpenWeather API key from the Grails Mock HTTP Server guides by replacing it with an environment-variable placeholder, and removes guide content that displayed the key in a screenshot.

Changes:

  • Replace the live openweather.appid value in both Grails 3 and Grails 4 application.yml snippets with ${OPENWEATHER_APPID:}.
  • Update “running the app” instructions to tell readers to set OPENWEATHER_APPID.
  • Remove apiKey.png screenshot references from both guide versions.

Reviewed changes

Copilot reviewed 6 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
guides/grails-mock-http-server/v4/snippets/grails-app/conf/application.yml Replaces the embedded OpenWeather key with an env-var placeholder.
guides/grails-mock-http-server/v4/guide/runningTheApp.adoc Updates run instructions to reference OPENWEATHER_APPID.
guides/grails-mock-http-server/v4/guide/openweather.adoc Removes the API-key screenshot reference.
guides/grails-mock-http-server/v3/snippets/grails-app/conf/application.yml Replaces the embedded OpenWeather key with an env-var placeholder.
guides/grails-mock-http-server/v3/guide/runningTheApp.adoc Updates run instructions to reference OPENWEATHER_APPID.
guides/grails-mock-http-server/v3/guide/openweather.adoc Removes the API-key screenshot reference.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jamesfredley
jamesfredley merged commit ef5ee93 into master Jul 23, 2026
2 checks passed
@jamesfredley
jamesfredley deleted the feature/remove-openweather-api-key branch July 23, 2026 17:59
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.

2 participants