-
Notifications
You must be signed in to change notification settings - Fork 8
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
Log full data with delay #365
Conversation
PostSignedDataResponseSchema, | ||
} from './types'; | ||
import { extractBearerToken, generateErrorResponse, isBatchUnique } from './utils'; | ||
|
||
const env = loadEnv(); | ||
const LOG_API_DATA_DELAY_MS = 5 * 60 * 1000; |
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.
I think a hardcoded delay is good enough.
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.
Yes it looks okay unless we set delaySeconds to more than 5 minutes.
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.
Looks good to me 👍🏼
PostSignedDataResponseSchema, | ||
} from './types'; | ||
import { extractBearerToken, generateErrorResponse, isBatchUnique } from './utils'; | ||
|
||
const env = loadEnv(); | ||
const LOG_API_DATA_DELAY_MS = 5 * 60 * 1000; |
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.
Yes it looks okay unless we set delaySeconds to more than 5 minutes.
logged with the fields `airnode`, `encodedValue`, `templateId`, and `timestamp`. The `signature` field is intentionally | ||
excluded for security reasons. Options: | ||
logged with the fields `airnode`, `encodedValue`, `templateId`, `timestamp` and `signature`. The logging of this data is | ||
delayed to make sure people with access to the logs won't be able to misuse the beacon data. Options: |
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.
Nit: maybe we can mention how much logging is delayed because it is already hard-coded to 5 minutes.
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.
Sure.
Yeah, but such data is practically unusable so I don't see us doing that. |
Closes #364