-
Notifications
You must be signed in to change notification settings - Fork 55
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
Seed poc #1626
base: feature/seed-poc
Are you sure you want to change the base?
Seed poc #1626
Conversation
This reverts commit e2cdecb.
|
): Promise<AuthUser> => { | ||
await this.lock.acquire(); | ||
try { | ||
console.log(`creating ${username}, ${password}`); |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information High
an access to password
import { AuthClient, AuthUser, SeedFunction } from './types.js'; | ||
import { DefaultAuthClient } from './auth_client.js'; | ||
import { CognitoIdentityProviderClient } from '@aws-sdk/client-cognito-identity-provider'; | ||
import { SchemaSeedable, Seedable } from '@aws-amplify/plugin-types'; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
import { defineSeed } from '@aws-amplify/backend'; | ||
import type { Schema } from './data/resource'; | ||
import { defineSeed2, KeysByType, PickByType } from '@aws-amplify/backend-seed'; | ||
import { SchemaSeedable, Seedable } from '@aws-amplify/plugin-types'; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note test
); | ||
}); | ||
|
||
let foo: PickByType<typeof backend, Seedable<'auth'>>; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note test
}); | ||
|
||
let foo: PickByType<typeof backend, Seedable<'auth'>>; | ||
let bar: PickByType<typeof backend, Seedable<'data'>>; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note test
let foo: PickByType<typeof backend, Seedable<'auth'>>; | ||
let bar: PickByType<typeof backend, Seedable<'data'>>; | ||
|
||
let foo2: KeysByType<typeof backend, Seedable<'auth'>>; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note test
let bar: PickByType<typeof backend, Seedable<'data'>>; | ||
|
||
let foo2: KeysByType<typeof backend, Seedable<'auth'>>; | ||
let bar2: KeysByType<typeof backend, Seedable<'data'>>; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note test
} | ||
|
||
createUser = async ( | ||
username: string, |
Check failure
Code scanning / CodeQL
Insecure randomness High
Math.random()
This uses a cryptographically insecure random number generated at
Math.random()
|
||
createUser = async ( | ||
username: string, | ||
password: string |
Check failure
Code scanning / CodeQL
Insecure randomness High
Math.random()
This uses a cryptographically insecure random number generated at
Problem
Issue number, if available:
Changes
Corresponding docs PR, if applicable:
Validation
Checklist
run-e2e
label set.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.