Merge pull request #324509 from camcalaquian/pkg/oathkeeper

Added ory oathkeeper
This commit is contained in:
Aleksana 2024-07-15 17:57:46 +08:00 committed by GitHub
commit f80a9be95f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 52 additions and 0 deletions

View File

@ -3137,6 +3137,12 @@
githubId = 7435854;
name = "Victor Calvert";
};
camcalaquian = {
email = "camcalaquian@gmail.com";
github = "camcalaquian";
githubId = 36902555;
name = "Carl Calaquian";
};
camelpunch = {
email = "me@andrewbruce.net";
github = "camelpunch";

View File

@ -0,0 +1,46 @@
{
fetchFromGitHub,
buildGoModule,
lib,
}:
let
pname = "oathkeeper";
version = "0.40.7";
commit = "c75695837f170334b526359f28967aa33d61bce6";
in
buildGoModule {
inherit pname version commit;
src = fetchFromGitHub {
owner = "ory";
repo = "oathkeeper";
rev = "v${version}";
hash = "sha256-Y5bowCFR9S70ko0vNCwZnhOIKKGdqgcDEBEtZisKEig=";
};
vendorHash = "sha256-+hh7MFYGPTaAlU/D0ROv5pw6YvzkAm6URuhP5jdgQtM=";
tags = [
"sqlite"
"json1"
"hsm"
];
subPackages = [ "." ];
# Pass versioning information via ldflags
ldflags = [
"-s"
"-w"
"-X github.com/ory/oathkeeper/internal/driver/config.Version=${version}"
"-X github.com/ory/oathkeeper/internal/driver/config.Commit=${commit}"
];
meta = {
description = "Open-source identity and access proxy that authorizes HTTP requests based on sets of rules";
homepage = "https://www.ory.sh/oathkeeper/";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ camcalaquian ];
mainProgram = "oathkeeper";
};
}