keyshade-xyz / keyshade

Realtime secret and configuration management tool, with the best in class security and seamless integration support
https://keyshade.xyz
Mozilla Public License 2.0
128 stars 68 forks source link

PLATFORM: Add skeleton loader in secret #322

Open kriptonian1 opened 2 weeks ago

kriptonian1 commented 2 weeks ago

Description

Add a skeleton loader in secret page for the time the data is loading from the server.


this issue is dependent on the merge of PR #313

Nirajan1-droid commented 2 weeks ago

/attempt

github-actions[bot] commented 2 weeks ago

Assigned the issue to @Nirajan1-droid!

kriptonian1 commented 2 weeks ago

Hey @Nirajan1-droid this issue is dependent on PR #313 so let this me merged then you can start working on this 🙌

Nirajan1-droid commented 2 weeks ago

ok let me know after it is merged

rajdip-b commented 2 weeks ago

@Nirajan1-droid Moving this to FOSS Hack. Hope you are comfortable with that?

Nirajan1-droid commented 2 weeks ago

absolutely

rajdip-b commented 2 weeks ago

Great! Okay, #313 is merged. You can begin your work.

Nirajan1-droid commented 1 week ago

would you please help me to resolve this error: after deploying the migrations the schemas are not listed in db: image also there is "Error while checking if bucket exists in Minio"

image

kriptonian1 commented 1 week ago

Buddy it looks like you are not reading the setup doc, if you do then you won't have all these issues

Nirajan1-droid commented 1 week ago

i followed docs>contributing-to-keyshade>setting-things-up.md :'|

On Wed, Jul 10, 2024, 11:07 AM Sawan Bhattacharya @.***> wrote:

Buddy it looks like you are not reading the setup doc, if you do then you won't have all these issues

— Reply to this email directly, view it on GitHub https://github.com/keyshade-xyz/keyshade/issues/322#issuecomment-2219585686, or unsubscribe https://github.com/notifications/unsubscribe-auth/APUMBH3THONL6IE5W525YJTZLTAI3AVCNFSM6AAAAABKOLWDHWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJZGU4DKNRYGY . You are receiving this because you were mentioned.Message ID: @.***>

kriptonian1 commented 1 week ago

Bro read the other part too, there i part called setting things locally

rajdip-b commented 1 week ago

Howdy @Nirajan1-droid!

There is an issue with name resolution since prisma is including the quotes in the names while creating the schemas, so its a bit tricky at first to check them out. Ideally, they should reside like this -> public."SchemaName"(including the quotes)

As for the Minio error in the console, you can ignore that since we are not yet using buckets.

Hope that solves it!

Nirajan1-droid commented 1 week ago

Would you please send me the video to set it up correctly? I have wasted hours and hours on it, and still, the Postgres database does not have any tables in it.

rajdip-b commented 1 week ago

Hey @Nirajan1-droid, you would have to use the following commands once you have connected to the database:

Hope these steps help. Do let us know if you run into any further trouble.

Nirajan1-droid commented 5 days ago

@rajdip-b @kriptonian1 i am still facing this migration related issue.

is api working correctly as "Error while checking if bucket exists in Minio"?:

image

platform is working though: image

but even after the migration being pushed, there are no relations in the docker postgres container: image

i checked it serveral times. also the api server cannot be connected : image

this was the .env file: DATABASE_URL=postgresql://postgres:password@127.0.0.1:5432/keyshade_db ADMIN_EMAIL=your@email.com

REDIS_URL=redis://127.0.0.1:6379

GITHUB_CLIENT_ID= GITHUB_CLIENT_SECRET= GITHUB_CALLBACK_URL=

API_PORT=

GOOGLE_CLIENT_ID= GOOGLE_CLIENT_SECRET= GOOGLE_CALLBACK_URL=

GITLAB_CLIENT_ID= GITLAB_CLIENT_SECRET= GITLAB_CALLBACK_URL=

SENTRY_DSN= SENTRY_ORG= SENTRY_PROJECT= SENTRY_TRACES_SAMPLE_RATE= SENTRY_PROFILES_SAMPLE_RATE= SENTRY_ENV=

SMTP_HOST= SMTP_PORT= SMTP_EMAIL_ADDRESS=nirajanolass@gmail.com SMTP_PASSWORD=**** FROM_EMAIL="your-name your-name@email.com"

MINIO_ENDPOINT='localhost' MINIO_PORT=9000 MINIO_ACCESS_KEY= MINIO_SECRET_KEY= MINIO_USE_SSL=false MINIO_BUCKET_NAME=

JWT_SECRET=secret

WEB_FRONTEND_URL=http://localhost:3000 PLATFORM_FRONTEND_URL=http://localhost:3100 PLATFORM_OAUTH_SUCCESS_REDIRECT_PATH=/oauth/signin PLATFORM_OAUTH_FAILURE_REDIRECT_PATH=/oauth/failure

DOMAIN=localhost FEEDBACK_FORWARD_EMAIL=nirajanbhattarai12345@gmail.com

BACKEND_URL=http://localhost:4200

containers are working well: image

ps: you can unassign me this issue if it is hectic and time consuming for you guys. i don't want to waste your time.

rajdip-b commented 5 days ago
  1. You can remove all the Minio configs from your .env file since they are optional. Try again and the error should have resolved.
  2. The issue with postgres is really difficult to debug. I would say, turn off the docker container using docker compose down. Then, run pnpm db:deploy-migrations. This should throw an error stating that it couldn't connect to the database. If that is not the case, then there is some other postgres database running on your device.

P.S. This issue isn't on the top priorities, so you can take your time in this.

Nirajan1-droid commented 5 days ago

@rajdip-b i got help from one brother and fixed that postgres error. now that migration worked. but why it is requesting port 3025 while login? image

rajdip-b commented 5 days ago

Yeah, this one is a shortcoming from our end. Just add NEXT_PUBLIC_BACKEND_URL=http://localhost:4200 to your .env file

Nirajan1-droid commented 5 days ago

@rajdip-b yes i did same: image but i am having 401 unauthorized code. although the backend is running correctly: image also database have that email: image

Nirajan1-droid commented 5 days ago

@rajdip-b
i resolved that login error and otp issues. now when i want to add project, i am having this error: image

what is this error?

kriptonian1 commented 5 days ago

Ignore that, that feature is not complete

rajdip-b commented 4 days ago

@rajdip-b i resolved that login error and otp issues. now when i want to add project, i am having this error: image

what is this error?

I'm unaware about the progress of the platform app. If you are facing some difficulties in creating a project from the UI, you can use the postman collection aswell.

Nirajan1-droid commented 4 days ago

@rajdip-b
postman link doesnot works which was provided in docs: image

rajdip-b commented 4 days ago

https://www.postman.com/keyshade/workspace/keyshade/api/a31bdb66-69e3-469b-afb4-f2051385e634?action=share&creator=32733901

Can you try this?