Skip to content

Commit

Permalink
Increase JWT life span
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexagon committed Apr 26, 2024
1 parent 05ca6fe commit ebb5cae
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ _For detailed documentation, visit [pup.56k.guru](https://pup.56k.guru)._
To install Pup, open your terminal and execute the following command:

```bash
deno run -Ar jsr:@pup/[email protected].35 setup --channel prerelease
deno run -Ar jsr:@pup/[email protected].36 setup --channel prerelease
```

This command downloads the latest version of Pup and installs it on your system. The `--channel prerelease` option is included as there is no stable version of Pup yet. Read more abour release
Expand Down
2 changes: 1 addition & 1 deletion application.meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

const Application = {
name: "pup",
version: "1.0.0-rc.35",
version: "1.0.0-rc.36",
url: "jsr:@pup/pup@$VERSION",
canary_url: "https://raw.githubusercontent.com/Hexagon/pup/main/pup.ts",
deno: null, /* Minimum stable version of Deno required to run Pup (without --unstable-* flags) */
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pup/pup",
"version": "1.0.0-rc.35",
"version": "1.0.0-rc.36",

"exports": {
".": "./pup.ts",
Expand Down
2 changes: 1 addition & 1 deletion docs/src/_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"description": "Universal Process Manager"
},
"substitute": {
"$PUP_VERSION": "1.0.0-rc.35"
"$PUP_VERSION": "1.0.0-rc.36"
},
"top_links": [
{
Expand Down
8 changes: 8 additions & 0 deletions docs/src/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ nav_order: 13

All notable changes to this project will be documented in this section.

## [1.0.0-rc.36] - 2024-04-26

## Added

- fix(docs): Fix broken links in documentation
- remove(splunk): Remove documentation about deprecated splunk plugin
- fix(plugins): Increase life-span of plugin jwts

## [1.0.0-rc.35] - 2024-04-26

## Added
Expand Down
2 changes: 1 addition & 1 deletion lib/core/pup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class Pup {
// Initialize plugins
if (this.configuration.plugins) {
const secret = await this.secret?.load()
const pluginToken = await GenerateToken(secret!, { consumer: "plugin" }, Date.now() + 100000)
const pluginToken = await GenerateToken(secret!, { consumer: "plugin" }, Date.now() + 720 * 24 * 60 * 60 * 1000)
for (const plugin of this.configuration.plugins) {
const newPlugin = new Plugin(plugin, `${this.restApi?.hostname}:${this.restApi?.port}`, pluginToken)
let success = true
Expand Down
14 changes: 14 additions & 0 deletions versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@
"canary_url": "https://raw.githubusercontent.com/Hexagon/pup/main/pup.ts",
"stable": [],
"prerelease": [
{
"version": "1.0.0-rc.36",
"url": "jsr:@pup/[email protected]",
"deno": null,
"deno_unstable": "1.42.0",
"default_permissions": [
"--allow-env",
"--allow-read",
"--allow-write",
"--allow-sys=loadavg,systemMemoryInfo,osUptime,osRelease,uid,gid",
"--allow-net",
"--allow-run"
]
},
{
"version": "1.0.0-rc.35",
"url": "jsr:@pup/[email protected]",
Expand Down

0 comments on commit ebb5cae

Please sign in to comment.