From nobody Fri Apr 12 09:16:02 2024 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VG9sb58lvz5H1g3 for ; Fri, 12 Apr 2024 09:16:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VG9sb3Ny6z4C9h for ; Fri, 12 Apr 2024 09:16:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712913363; a=rsa-sha256; cv=none; b=L6fMXPKCHvOnJ3IzL5klHRtivPgOFvv9uI8js511LhXLynlAMKWvrp/0PI/NVOhq2GGO4j RJFoKQGs5TAo+t/3do5V2roUzzq6BJh97gMxQ8Xi7GMHg6Ps8a01wqOB+U+d7mhvxCTd0h C7KAlLu9c+AAZHTsxDrAcu/JUZJSIj+1BsR4wUuyXwAvVSut189nxywRxbzZSpGGOy1syc 7RfZrVPuDawsfVumXXFMSTTffYVyOmj7Q0klH2QCoOOCKUjvspo5NqbxIygsfAZPWsA3u3 RJu8fK0Du6oijoZVTIpD7LprmEYYWeL9UvqtCiZVL+Sj3INYAJYEGjjycpjtjg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712913363; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ydJwWIwtD7bZWpaBpAmfEzKqnU69S15XYWOBl6/xrbA=; b=dV7S89N8Ipu1ErI2fdyP0t2I1ZuT4j+Hp46IU+RAABhEZ66mP8MBId34f7jGWgaoq+yo8F kq/mr+430xBrXzUhxdDoKCr7cpNUkxTX0uTxLipyZjaygJdtY7QBdysJbxC8aNnGDPrcGZ HuxveAEffoUfSNN8j/XXZeBQRa4+Leihi3Bt5UTrCsQ2/YRHqtf7QEob2Jng4OC5D9zQMS 2LS7VZxvy0PybPcz83SwNGV5xzxF8A5lxaulVXU+1+gDgr2PiL4cr4LkCzM3rq0QrGW8Ju oDt7MfwtwHMlXELNp1XQ+gnevthMHyKqUDQo+RskCd9s3u0TOmavTV5dO6QcTQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VG9sb31HPzkHv for ; Fri, 12 Apr 2024 09:16:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 43C9G3gd057645 for ; Fri, 12 Apr 2024 09:16:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 43C9G33e057638 for ports-bugs@FreeBSD.org; Fri, 12 Apr 2024 09:16:03 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 278325] www/oauth2-proxy enhancement: rc-script instancing of multiple oauth2-proxies on the same system Date: Fri, 12 Apr 2024 09:16:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: netchild@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278325 Bug ID: 278325 Summary: www/oauth2-proxy enhancement: rc-script instancing of multiple oauth2-proxies on the same system Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: netchild@FreeBSD.org CC: freebsd@rheinwolf.de Flags: maintainer-feedback?(freebsd@rheinwolf.de) CC: freebsd@rheinwolf.de Created attachment 249926 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D249926&action= =3Dedit new rc script Hi, the attached rc script is a modification of the existing one: - use instancing to be able to create new instances of the script via links (done like in the tomcat ports, or the openhab port) - rename (hyphen to underscore, see below) What this allows to do: - ln -s oauth2_proxy /usr/local/etc/rc.d/oauth2_proxy_sitename - cp -p /usr/local/etc/oauth2-proxy.cfg /usr/localetc/oauth2-proxy-sitename.cfg - edit oauth2-proxy-sitename.cfg (not only other port) - sysrc oauth2_proxy_sitename_enable=3DYES - service oauth2_proxy_sitename start Changes: - change the name of start script (the config name is derived from the scr= ipt name by replacing underscores with hyphens) - the logfiles (each one different based upon the rc.d name) will have an underscore in the name of the logfile - daemon will write child-pid files, which are used in the rc script to use them to only kill the child which belongs to it on stop - pidfiles are derived from rc.d name - rc.conf variable names are derived from the rc.d name This way you can either use the original config if you need only one oauth2 proxy, or you can host multiple oauth2-proxy instances to different backend sites on one system and manage them independently. This also requires to change the Makefile of the port to adapt to the new n= ame of the rc script (and an updating entry about it). If you agree to this enhancement, I can writeup an UPDATING entry and commit the change. Bye, Alexander. --=20 You are receiving this mail because: You are the assignee for the bug.=