Open Closed

Can I reset my API key? #9643


User avatar
0
rexhxiao created

In case of a potential API key exposure, is it possible to reset the key? Also, what would be the impact on our live systems or those already deployed to client environments?


7 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The API Key is the token of PRO packages hosted on nuget.abp.io. Your private NuGet source is https://nuget.abp.io/your_key/v3/index.json This is automatically added as a feed to your NuGet.Config in your ABP solution. Do not share your private key with unauthorized users!

    If you reset it, the previous key will no longer be able to restore packages from nuget.abp.io.

    The live system will not be affected since it does not need to restore the packages.

    You can send an email to info@abp.io to request a reset.

    Please include your organization's info in the mail.

    Thanks.

  • User Avatar
    0
    rexhxiao created

    Thank you for the explanation. I also have a related follow-up question:

    1. Should the appsettings.secrets.json file be included when deploying the application to client environments?
    2. If we reset the API key, how would that affect this file? Would it need manual updates, or is it handled automatically?
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Should the appsettings.secrets.json file be included when deploying the application to client environments?

    Yes, You should include it.

    The license code in appsettings.secrets.json is different from API Key.

    Resetting the API key will not affect the License code.

    Thanks.

  • User Avatar
    0
    rexhxiao created

    Regarding the same issue, is it possible to reset the license code?

  • User Avatar
    0
    alper created
    Support Team Director

    Hi,

    There are 2 ABP secret keys that are custom to your organization:

    1. ApiKey: The private key to access nuget.abp.io server. All organizations have a dedicated private ApiKey. This key is stored in the NuGet.config file. If your ApiKey is exposed, you can send an email to info@abp.io, and we can change your ApiKey. When we change it, the old key is invalidated and projects that still use that old ApiKey will stop restoring ABP packages. If your system is on production, it will still run without any problem because you are not restoring packages. But it's advised to manually update your ApiKey for your CI/CD pipeline.

    2. AbpLicenseCode: The license code is used to validate how many and which developers are working on the ABP solution. Each developer must sign in via ABP CLI or ABP Studio to be able to write code on their ABP project. This code is stored in several appsettings.secrets.json files in your startup projects. If your AbpLicenseCode is exposed, you can send an email to info@abp.io, and we can reset your AbpLicenseCode. When we change it, the old license code is invalidated, and developers will see errors when they run their ABP project. As we use caching, the errors will arise after some time. You must manually update the old AbpLicenseCode. To get your new AbpLicenseCode, you must create a new dummy project with the same project name and copy the new AbpLicenseCode from this new project into your existing project.

  • User Avatar
    0
    rexhxiao created

    Dear ABP Team,

    Thank you for the detailed explanation regarding the ABP secret keys (ApiKey and AbpLicenseCode). I appreciate the clear instructions on how to handle these keys, especially in cases where they might be exposed.

    Your support is invaluable, and I’ll be sure to follow the outlined steps if needed. Thanks again for your assistance!

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    You're welcome. : )

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 04, 2025, 08:36