Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/app/dropbox/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,10 @@ const handleVectorizeConnectDropbox = async () => {
authorization: data.authorization
}
});

const awsKey = "AKIA1234567890ABCDEF";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id aws-access-token in commit 80aaa41.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo 80aaa410e276b03aeeb5a6a74fb8e11c9734c39f:src/app/dropbox/page.tsx:aws-access-token:146 >> .gitleaksignore

const problemSecret = "AKIAIOSFODNN7EXAMPLE";
// Generate random user ID for demo purposes
const randomUserId = "newVectorizeUser" + Math.floor(Math.random() * 1000);
const randomUserId = "newVectorizeUser" + Math.floor(Math.random() * 10000);
setVectorizeUserId(randomUserId);

// Get one-time token from API
Expand Down Expand Up @@ -322,7 +323,7 @@ const handleVectorizeRemoveUser = async () => {
setRefreshToken(refreshToken);

// Generate random user ID for demo purposes if none exists
const newUserId = userId || "newWhiteLabelUser" + Math.floor(Math.random() * 1000);
const newUserId = userId || "newWhiteLabelUser" + Math.floor(Math.random() * 10000);
setUserId(newUserId);

// Use the manage-oauth-user endpoint instead of add-oauth-user
Expand Down
4 changes: 2 additions & 2 deletions src/app/googleDrive/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const handleVectorizeConnectGoogleDrive = async () => {
});

// Generate random user ID for demo purposes
const randomUserId = "newVectorizeUser" + Math.floor(Math.random() * 1000);
const randomUserId = "newVectorizeUser" + Math.floor(Math.random() * 10000);
setVectorizeUserId(randomUserId);

// Get one-time token from API
Expand Down Expand Up @@ -322,7 +322,7 @@ const handleVectorizeRemoveUser = async () => {
setRefreshToken(refreshToken);

// Generate random user ID for demo purposes if none exists
const newUserId = userId || "newWhiteLabelUser" + Math.floor(Math.random() * 1000);
const newUserId = userId || "newWhiteLabelUser" + Math.floor(Math.random() * 10000);
setUserId(newUserId);

// Use the manage-oauth-user endpoint instead of add-oauth-user
Expand Down