Skip to content

Commit b6c6e7c

Browse files
committed
chore: mark property as deprecated
URL stored in the native OS secrets store is now superseded by the URL stored in the JSON backed settings store.
1 parent 0ba64ce commit b6c6e7c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/kotlin/com/coder/toolbox/store/CoderSecretsStore.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ import java.net.URL
88
* Provides Coder secrets backed by the secrets store service.
99
*/
1010
class CoderSecretsStore(private val store: PluginSecretStore) {
11+
@Deprecated(
12+
message = "The URL is now stored the JSON backed settings store. Use CoderSettingsStore#lastDeploymentURL",
13+
replaceWith = ReplaceWith("context.settingsStore.lastDeploymentURL")
14+
)
1115
val lastDeploymentURL: String = store["last-deployment-url"] ?: ""
1216

1317
fun tokenFor(url: URL): String? = store[url.host]

0 commit comments

Comments
 (0)