Skip to content

A POST -> GET proxy for the Buf Schema Registry's GetResourceByName endpoint

License

Notifications You must be signed in to change notification settings

helpwave/buf-resource-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

buf-resource-proxy

A POST -> GET proxy for the Buf Schema Registry's GetResourceByName endpoint

Why?

We use this proxy at helpwave as a custom datasource for renovate.

How?

Make the following changes to your renovate.json:

  "customDatasources": {
+     "buf": {
+        "defaultRegistryUrlTemplate": "https://buf-resource-proxy.fly.dev/{{packageName}}",
+        "transformTemplates": ["{\"releases\":[{\"version\": resource.plugin.version }], \"sourceUrl\": resource.plugin.sourceUrl, \"homepage\": $join([\"https://buf.build/\", resource.plugin.owner, \"/\", resource.plugin.name])}"]
+     } 
  },
  "customManagers": [
+    {
+      "customType": "regex",
+      "fileMatch": ["buf.gen.yaml$"],
+      "matchStrings": [
+        "plugin: buf.build/(?<depName>.*?):(?<currentValue>.+?)\\s"
+      ],
+      "datasourceTemplate": "custom.buf",
+      "versioningTemplate": "semver"
+    }
  ]

Warning

This is not a helpwave product and https://buf-resource-proxy.fly.dev/ may become unavailable at any time. You should deploy this on your own and make appropriate changes in the renovate.json.

MPL-2.0 licensed

About

A POST -> GET proxy for the Buf Schema Registry's GetResourceByName endpoint

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published