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

Add use of AWS Secrets Manager to NextJS app in order to get JWT Secret #62

Open
jupiter007 opened this issue Jun 28, 2024 · 1 comment

Comments

@jupiter007
Copy link
Collaborator

We need a secure way to access the JWT Secret between the NextJS app and the backend NodeJS Express server. The best option appears to be AWS Secrets Manager. It is very secure, and allows us to rotate out the secret.

The frontend implementation will most likely be done using the aws-sdk package.

Example:

const AWS = require('aws-sdk');

const getSecret = async (secretName) => {
    const client = new AWS.SecretsManager({
        region: 'us-west-2'
    });
    const data = await client.getSecretValue({SecretId: secretName}).promise();
@jupiter007
Copy link
Collaborator Author

Blocked by this ticket: CDLUC3/dmsp_aws_prototype#153

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

No branches or pull requests

1 participant