Projects
osmocom:master
open5gs
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 761
View file
commit_8c8b51790df9331b9a4053620f1dbbc8bef9de1e.txt
Deleted
View file
commit_926256b78de9409387ebbb3e05904784dd65e83a.txt
Added
View file
open5gs_2.7.6.4862.8c8b.dsc -> open5gs_2.7.6.4863.9262.dsc
Changed
@@ -2,7 +2,7 @@ Source: open5gs Binary: open5gs-common, open5gs-mme, open5gs-sgwc, open5gs-smf, open5gs-amf, open5gs-sgwu, open5gs-upf, open5gs-hss, open5gs-pcrf, open5gs-nrf, open5gs-scp, open5gs-sepp, open5gs-ausf, open5gs-udm, open5gs-pcf, open5gs-nssf, open5gs-bsf, open5gs-udr, open5gs, open5gs-dbg Architecture: any -Version: 2.7.6.4862.8c8b +Version: 2.7.6.4863.9262 Maintainer: Harald Welte <laforge@gnumonks.org> Uploaders: Sukchan Lee <acetcom@gmail.com> Homepage: https://open5gs.org @@ -32,8 +32,8 @@ open5gs-udr deb net optional arch=any open5gs-upf deb net optional arch=any Checksums-Sha1: - 65d3d0422df72b668313ff075a0d12b9c0ddd037 15114720 open5gs_2.7.6.4862.8c8b.tar.xz + 69d0932219e56370388c5489294d32b2187e587d 15115480 open5gs_2.7.6.4863.9262.tar.xz Checksums-Sha256: - ea310a677f6e870267a6c104eb0719a7ade93c75247a7de67dd29e12312931cc 15114720 open5gs_2.7.6.4862.8c8b.tar.xz + 019f38859dab33e3db6666ea29eefe7bc85e8c6e5a1289dc55ad8e16300614e4 15115480 open5gs_2.7.6.4863.9262.tar.xz Files: - 93d1ea6d8a2be9187167ce22e9d8f577 15114720 open5gs_2.7.6.4862.8c8b.tar.xz + 49761c0188c8be501f176afa7b6b52d0 15115480 open5gs_2.7.6.4863.9262.tar.xz
View file
open5gs_2.7.6.4862.8c8b.tar.xz/.tarball-version -> open5gs_2.7.6.4863.9262.tar.xz/.tarball-version
Changed
@@ -1 +1 @@ -2.7.6.4862-8c8b +2.7.6.4863-9262
View file
open5gs_2.7.6.4862.8c8b.tar.xz/debian/changelog -> open5gs_2.7.6.4863.9262.tar.xz/debian/changelog
Changed
@@ -1,8 +1,8 @@ -open5gs (2.7.6.4862.8c8b) unstable; urgency=medium +open5gs (2.7.6.4863.9262) unstable; urgency=medium * Automatically generated changelog entry for building the Osmocom master feed - -- Osmocom OBS scripts <info@osmocom.org> Wed, 14 Jan 2026 07:35:43 +0000 + -- Osmocom OBS scripts <info@osmocom.org> Sat, 17 Jan 2026 02:02:45 +0000 open5gs (2.7.6) unstable; urgency=medium
View file
open5gs_2.7.6.4862.8c8b.tar.xz/webui/package.json -> open5gs_2.7.6.4863.9262.tar.xz/webui/package.json
Changed
@@ -50,6 +50,7 @@ "scripts": { "dev": "node server/index.js", "build": "next build", + "prestart": "node server/ensure-secret.js", "start": "NODE_ENV=production node server/index.js" } }
View file
open5gs_2.7.6.4863.9262.tar.xz/webui/server/ensure-secret.js
Added
@@ -0,0 +1,38 @@ +const fs = require('fs'); +const crypto = require('crypto'); +const path = require('path'); + +const envPath = path.join(__dirname, '../.env'); + +module.exports = function() { + // List of keys we want to ensure exist + const keysToEnsure = 'SECRET_KEY', 'JWT_SECRET_KEY'; + + let envContent = ''; + if (fs.existsSync(envPath)) { + envContent = fs.readFileSync(envPath, 'utf8'); + } else { + fs.writeFileSync(envPath, '', 'utf8'); + } + + keysToEnsure.forEach(key => { + // Dynamic Regex: looks for the specific key at the start of a line + const regex = new RegExp(`^${key}=(.*)$`, 'm'); + const match = envContent.match(regex); + + if (match && match1) { + process.envkey = match1.trim(); + console.log(`--- ${key} loaded from .env ---`); + } else { + // Key missing: Generate, Set, and Append + const newSecret = crypto.randomBytes(32).toString('hex'); + process.envkey = newSecret; + + const secretLine = `\n# Generated automatically\n${key}=${newSecret}\n`; + fs.appendFileSync(envPath, secretLine, 'utf8'); + // Update envContent string so the next loop knows this key now exists + envContent += secretLine; + console.log(`--- Created and stored new unique ${key} ---`); + } + }); +};
View file
open5gs_2.7.6.4862.8c8b.tar.xz/webui/server/index.js -> open5gs_2.7.6.4863.9262.tar.xz/webui/server/index.js
Changed
@@ -23,7 +23,11 @@ const LocalStrategy = require('passport-local').Strategy; const csrf = require('lusca').csrf(); -const secret = process.env.SECRET_KEY || 'change-me'; + +require('./ensure-secret')(); + +const secret = process.env.SECRET_KEY; + const api = require('./routes');
View file
open5gs_2.7.6.4862.8c8b.tar.xz/webui/server/routes/auth.js -> open5gs_2.7.6.4863.9262.tar.xz/webui/server/routes/auth.js
Changed
@@ -4,7 +4,7 @@ const passport = require('passport'); const jwt = require('jsonwebtoken'); -const secret = process.env.JWT_SECRET_KEY || 'change-me'; +const secret = process.env.JWT_SECRET_KEY; router.get('/csrf', (req, res) => { return res.json({csrfToken: res.locals._csrf});
View file
open5gs_2.7.6.4862.8c8b.tar.xz/webui/server/routes/index.js -> open5gs_2.7.6.4863.9262.tar.xz/webui/server/routes/index.js
Changed
@@ -4,7 +4,8 @@ const router = express.Router(); -const secret = process.env.JWT_SECRET_KEY || 'change-me'; +const secret = process.env.JWT_SECRET_KEY; + const passport = require('passport'); const JWTstrategy = require('passport-jwt').Strategy; const ExtractJWT = require('passport-jwt').ExtractJwt; @@ -28,4 +29,4 @@ router.use('/auth', auth); router.use('/db', passport.authenticate('jwt', { session: false }), db); -module.exports = router; \ No newline at end of file +module.exports = router;
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.