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

feat: map secrets name to 1:1 #136

Closed
Eomm opened this issue Oct 10, 2021 · 0 comments · Fixed by #138
Closed

feat: map secrets name to 1:1 #136

Eomm opened this issue Oct 10, 2021 · 0 comments · Fixed by #138
Assignees

Comments

@Eomm
Copy link

Eomm commented Oct 10, 2021

I would like to keep the env variable name as fastify.secrets's keys.

I think it would be nice to support this syntax:

  fastify.register(FastifySecrets, {
    secrets: ['PG_PASS']
  })

At the moment, the array creates a fastify.sercrets['0'] property

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants