-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
feat: Allow setting API keys expiration #12954
Conversation
Codecov ReportAttention: Patch coverage is 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few comments. Testing this out next
packages/@n8n/api-types/src/dto/api-keys/create-or-update-api-key-request.dto.ts
Outdated
Show resolved
Hide resolved
packages/@n8n/api-types/src/dto/api-keys/create-or-update-api-key-request.dto.ts
Outdated
Show resolved
Hide resolved
packages/@n8n/api-types/src/dto/api-keys/create-or-update-api-key-request.dto.ts
Outdated
Show resolved
Hide resolved
@tomi fixed the custom date selector. In one of the latest changes broke it and did not notice it. Probably a sign that need more test coverage in the FE. Will increase coverage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, almost there 🏁 Couple minor comments
packages/@n8n/api-types/src/dto/api-keys/__tests__/create-api-key-request.dto.test.ts
Outdated
Show resolved
Hide resolved
packages/@n8n/api-types/src/dto/api-keys/__tests__/create-api-key-request.dto.test.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Thank you for addressing everything 🫶 |
|
n8n Run #9090
Run Properties:
|
Project |
n8n
|
Branch Review |
master
|
Run status |
Passed #9090
|
Run duration | 04m 27s |
Commit |
9bcbc2c2cc: 🌳 master 🖥️ browsers:node18.12.0-chrome107 🤖 PR User 🗃️ e2e/*
|
Committer | Ricardo Espinoza |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
5
|
Skipped |
0
|
Passing |
433
|
View all changes introduced in this branch ↗︎ |
✅ All Cypress E2E specs passed |
Got released with |
Summary
introduces expiration for API keys. Each API key can have one of 3 expiration states:
Also moved the creation date to the modal.
Demo
Related Linear tickets, Github issues, and Community forum posts
https://www.notion.so/n8n/Public-API-scopes-and-expiration-51f6bad3305f4397869dc71b95ac2ceb?pvs=4
Review / Merge checklist
release/backport
(if the PR is an urgent fix that needs to be backported)