-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: airtable integration #339
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
Changes from 3 commits
825555d
3c64a38
31aaefa
f0e289d
361b1e6
722b97e
c9ffec9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -25,6 +25,10 @@ interface RobotAttributes { | |||||||||||||||||
| google_sheet_id?: string | null; | ||||||||||||||||||
| google_access_token?: string | null; | ||||||||||||||||||
| google_refresh_token?: string | null; | ||||||||||||||||||
| airtable_base_id?: string | null; // Airtable Base ID | ||||||||||||||||||
| airtable_table_name?: string | null; // Airtable Table Name | ||||||||||||||||||
| airtable_api_key?: string | null; // Airtable API Key | ||||||||||||||||||
| airtable_access_token?: string | null; // Airtable OAuth Access Token | ||||||||||||||||||
| schedule?: ScheduleConfig | null; | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
|
|
@@ -41,7 +45,7 @@ interface ScheduleConfig { | |||||||||||||||||
| cronExpression?: string; | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| interface RobotCreationAttributes extends Optional<RobotAttributes, 'id'> { } | ||||||||||||||||||
| interface RobotCreationAttributes extends Optional<RobotAttributes, 'id'> {} | ||||||||||||||||||
|
|
||||||||||||||||||
| class Robot extends Model<RobotAttributes, RobotCreationAttributes> implements RobotAttributes { | ||||||||||||||||||
| public id!: string; | ||||||||||||||||||
|
|
@@ -53,6 +57,10 @@ class Robot extends Model<RobotAttributes, RobotCreationAttributes> implements R | |||||||||||||||||
| public google_sheet_id?: string | null; | ||||||||||||||||||
| public google_access_token!: string | null; | ||||||||||||||||||
| public google_refresh_token!: string | null; | ||||||||||||||||||
| public airtable_base_id!: string | null; | ||||||||||||||||||
| public airtable_table_name!: string | null; | ||||||||||||||||||
| public airtable_api_key!: string | null; | ||||||||||||||||||
| public airtable_access_token!: string | null; | ||||||||||||||||||
|
||||||||||||||||||
| public airtable_base_id!: string | null; | |
| public airtable_table_name!: string | null; | |
| public airtable_api_key!: string | null; | |
| public airtable_access_token!: string | null; | |
| public airtable_base_id?: string | null; | |
| public airtable_table_name?: string | null; | |
| public airtable_api_key?: string | null; | |
| public airtable_access_token?: string | null; |
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.
💡 Codebase verification
Implement encryption for Airtable credentials using existing utils
The codebase has robust encryption utilities in
server/src/utils/auth.tsthat are already used for similar sensitive data. Use theencrypt()/decrypt()functions to secure the Airtable credentials before storing them, similar to how proxy credentials are handled.[security]
🔗 Analysis chain
Consider security measures for Airtable credentials
The Airtable API key and access token are sensitive credentials. Consider:
Let's check if there are any encryption utilities or secure credential handling patterns in the codebase:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 9606