Skip to content

Commit

Permalink
fix(plugins): Enable RemotePluginInfoReleaseCache bean only when the …
Browse files Browse the repository at this point in the history
…property matches the condition (#1041) (#1070)

Last week during Github's downtime, because the RemotePluginInfoReleaseCache runs in the background every 1 minutes, it forced the plugins to be reloaded(downloaded again from Github), action which failed because the Github keys were rotated due to their security leak

The refresh of the plugins is caused by the updateManager.refresh() call in the refresh method of the RemotePluginInfoReleaseCache.

As far as we can tell, the concept of remote plugins is something that is not used at all. So we can opt-in for this cache refresh bean by manually setting spinnaker.extensibility.remote-plugins.cache.enabled to true

Incident report page: https://www.githubstatus.com/incidents/x7njwb481j9b

(cherry picked from commit f7c9ef7)

Co-authored-by: ovidiupopa07 <[email protected]>
  • Loading branch information
mergify[bot] and ovidiupopa07 authored Jul 18, 2023
1 parent bc53b32 commit 61ed6c8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ public static PluginInfoReleaseProvider pluginInfoReleaseProvider(
/** Not a static bean - see {@link RemotePluginsConfiguration}. */
@Bean
@Beta
@ConditionalOnProperty(
value = "spinnaker.extensibility.remote-plugins.cache.enabled",
havingValue = "true",
matchIfMissing = true)
public RemotePluginInfoReleaseCache remotePluginInfoReleaseCache(
Collection<PluginInfoReleaseSource> pluginInfoReleaseSources,
SpringStrictPluginLoaderStatusProvider springStrictPluginLoaderStatusProvider,
Expand Down

0 comments on commit 61ed6c8

Please sign in to comment.