Hi all,
looking for guidance on two issues we hit with CDF related to timeseries visibility and datamodel queries.
- 403 error leaking timeseries externalIds:
when a user without access requests a timeseries resource, a 403 error is returned as expected, but the error body contains the externalIds of the timeseries. Those externalIds are sensitive and should not be exposed to users who don’t have access.
Is it expected behavior that externalIds are included in 403 error messages? If not, is there a setting / configuration / log-level that controls whether identifiers are returned in errors? Any recommended mitigation or planned fix?
- Datamodel query returns datapoints from unauthorized timeseries
- Setup:
- Created dataset_1 and dataset_2
- Created two timeseries, TS_A in dataset_1 and TS_B in dataset_2
- Attached both TS_A and TS_B to a datamodel
- Granted the user only timeseries:READ scope:dataset_2 (so they should see TS_B only)
- Observed behavior: querying the datamodel returns datapoints for TS_A (dataset_1) and TS_B (dataset_2) even though the user only has dataset_2 timeseries:READ
- Questions:
- Shouldn’t datamodel queries respect dataset scoped timeseries permissions and only surface datapoints from accessible timeseries?
- Any recommended best practices or configuration to enforce dataset scoped enforcement when datamodels reference timeseries across datasets?
Thanks!
Check the
documentation
Ask the
Community
Take a look
at
Academy
Cognite
Status
Page
Contact
Cognite Support