Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password rotation #163

Open
simoncarbajal opened this issue Aug 31, 2022 · 0 comments
Open

Password rotation #163

simoncarbajal opened this issue Aug 31, 2022 · 0 comments
Labels
support Questions, discussions, and general support

Comments

@simoncarbajal
Copy link

Support plan

  • is this issue currently blocking your project?: no
  • is this issue affecting a production system?: no

Context

  • node version: v18.2.0
  • module version: 11.0.0
  • environment (e.g. node, browser, native): node, browser
  • used with (e.g. hapi application, another framework, standalone, ...): hapi app
  • any other relevant information: no

How can we help?

In the documentation you write: "Consider rotating your cookie session password on a regular basis" but you fail to explain how to do this.
Is straightforward if we restart the server every time we want to rotate the session password:

import yar from '@hapi/yar'
const server = new hapi.Server({ port })
const yarPlugin = {
    plugin: yar,
    options: {
      name: 'yarCookie',
      cookieOptions: {
        password: randomPassword(),
      }
    }
  }
await server.register(yarPlugin)

How can we do this without restarting the server?

@simoncarbajal simoncarbajal added the support Questions, discussions, and general support label Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Questions, discussions, and general support
Projects
None yet
Development

No branches or pull requests

1 participant