about summary refs log tree commit diff
path: root/pkgs/servers/nginx-sso
diff options
context:
space:
mode:
authorIndeedNotJames <git@indeednotjames.com>2023-03-25 10:37:22 +0100
committerIndeedNotJames <git@indeednotjames.com>2023-03-25 10:37:22 +0100
commitec49c9872d5ee9b59ec5fbdc9c2a632482e915b4 (patch)
treeea72efeebf32490e2baf451e50652871c8d9c2be /pkgs/servers/nginx-sso
parenta64e169e396460d6b5763a1de1dd197df8421688 (diff)
nginx-sso: 0.25.0 -> 0.26.0
https://github.com/Luzifer/nginx-sso/releases/tag/v0.26.0
diff: https://github.com/Luzifer/nginx-sso/compare/v0.25.0...v0.26.0

`rune.patch` is no longer needed as of https://github.com/Luzifer/nginx-sso/commit/89a1a2e565d3986da7afea6b297176645d444850
Diffstat (limited to 'pkgs/servers/nginx-sso')
-rw-r--r--pkgs/servers/nginx-sso/default.nix8
-rw-r--r--pkgs/servers/nginx-sso/rune.patch13
2 files changed, 3 insertions, 18 deletions
diff --git a/pkgs/servers/nginx-sso/default.nix b/pkgs/servers/nginx-sso/default.nix
index 56aa8205c5d17..1043ee519bc85 100644
--- a/pkgs/servers/nginx-sso/default.nix
+++ b/pkgs/servers/nginx-sso/default.nix
@@ -6,18 +6,16 @@
 
 buildGoModule rec {
   pname = "nginx-sso";
-  version = "0.25.0";
+  version = "0.26.0";
 
   src = fetchFromGitHub {
     owner = "Luzifer";
     repo = "nginx-sso";
     rev = "v${version}";
-    sha256 = "sha256-uYl6J2auAkboPpT6lRZzI70bCU9LvxfCdCyHfLNIsHw=";
+    hash = "sha256-vtbomeezW8PMv2lCR6PJqYw+PCFJ3M1SAQPGaIWouXY=";
   };
 
-  vendorSha256 = null;
-
-  patches = [ ./rune.patch ];
+  vendorHash = "sha256-THTQhUgIfDDTgnR4qZxWFoGQzvqr3xrrz5ZxnV9ipBM=";
 
   postInstall = ''
     mkdir -p $out/share
diff --git a/pkgs/servers/nginx-sso/rune.patch b/pkgs/servers/nginx-sso/rune.patch
deleted file mode 100644
index 5e5480787deca..0000000000000
--- a/pkgs/servers/nginx-sso/rune.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git i/main.go w/main.go
-index bf80f3d..632f7d6 100644
---- i/main.go
-+++ w/main.go
-@@ -174,7 +174,7 @@ func handleAuthRequest(res http.ResponseWriter, r *http.Request) {
- 	case plugins.ErrNoValidUserFound:
- 		// No valid user found, check whether special anonymous "user" has access
- 		// Username is set to 0x0 character to prevent accidental whitelist-match
--		if mainCfg.ACL.HasAccess(string(0x0), nil, r) {
-+		if mainCfg.ACL.HasAccess(string(rune(0x0)), nil, r) {
- 			mainCfg.AuditLog.Log(auditEventValidate, r, map[string]string{"result": "anonymous access granted"}) // #nosec G104 - This is only logging
- 			res.WriteHeader(http.StatusOK)
- 			return