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

🚀 Feature: Retrieve API keys programatically for given organisation #6670

Open
2 tasks done
akshay-panchakshari opened this issue Oct 10, 2024 · 3 comments
Open
2 tasks done
Labels

Comments

@akshay-panchakshari
Copy link

🔖 Feature description

Need API to programatically fetch API keys for given organisation.

Currently Novu provides https://api.novu.co/v1/environments/api-keys that requires API key as Authorization header but returns same API key as response which is not useful.

🎤 Why is this feature needed ?

We are working on feature where we need multiple organisations to be created and managed. We have multiple applications that are going to subscribe to our novu service in order receive customised notifications. So we will be creating an organisation for every application programatically and store the API key in out Database (Encrypted).

✌️ How do you aim to achieve this?

We are expecting something like below which would help to fetch the API key on demand

https://api.novu.co/v1/environments/{organisationId}/api-keys

🔄️ Additional Information

I checked related issue #5556 but could not find any solutions

👀 Have you spent some time to check if this feature request has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

None

Copy link

linear bot commented Oct 10, 2024

@aarifkhan7
Copy link

Hey @akshay-panchakshari

I'm a beginner interested in contributing to open source, and this issue seems like a good starting point for me. Could you please assign it to me?

Thanks!

@wh1337
Copy link
Contributor

wh1337 commented Oct 24, 2024

@akshay-panchakshari how would you propose this route be protected?

I suspect you would need some type of skeleton key-style api token but I personally don't see how this would work for both the cloud and the self-hosted versions.

On the other hand, you might be able to look over this file and see if you can replicate it with a custom script you guys run in your org.

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

No branches or pull requests

3 participants