Skip to content

Conversation

greghuels
Copy link
Contributor

@greghuels greghuels commented Mar 5, 2025

Fix for FF-4046

Key validation should always be pointed to https://eppo.coud as there is no fscdn equivalent.

Copy link
Contributor

@sameerank sameerank left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one small suggestion!

import { FlagKey } from './types';

const FIVE_MINUTES_IN_MS = 5 * 3600 * 1000;
const KEY_VALIDATION_URL = 'https://eppo.cloud/api/flag-overrides/v1/validate-key';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FLAG_OVERRIDES_KEY_VALIDATION_URL is still in src/constants.ts and now unused anywhere in the code.

Would suggest either deleting it in src/constants.ts, or replacing it with this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch -- will do!

@greghuels greghuels changed the title fix: key validation should be serverd from https://eppo.cloud fix: server overrides key validation should be serverd from https://eppo.cloud Mar 6, 2025
@greghuels greghuels merged commit e28fa26 into main Mar 6, 2025
8 checks passed
@greghuels greghuels deleted the greg/fix-key-validation branch March 6, 2025 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants