
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@cotar/core
Advanced tools
Given a `.tar` with a `.index` using HTTP range requests fetch only the portion of the tar that contains the bytes of the file.
Given a .tar with a .index using HTTP range requests fetch only the portion of the tar that contains the bytes of the file.
For example @cotar/core can fetch a 1KB file from a 100GB tar file with only 1 HTTP range request and only download 1KB. Assuming the tar index is loaded into memory.
To fetch a single tile, the index has to be loaded into memory then the cotar object provides a get(fileName) interface to access any file inside the tar
import { Cotar } from '@cotar/core';
import { SourceUrl } from '@chunkd/source-url';
const source = new SourceUrl('s3://linz-basemaps/topographic.tar.co');
const cotar = Cotar.fromTar(source);
// Fetch a gzipped PBF file from a tar
const bytes = await cotar.get(`tiles/z10/5/5.pbf.gz`);
Indexes can be created using the @cotar/cli package or programmatically using the CotarIndexBuilder
import { CotarIndexBuilder } from '@cotar/builder';
import * as fs from 'fs/promises';
const fd = await fs.open('tarFile.tar', 'r');
const res = await CotarIndexBuilder.create(fd, CotarIndex.Binary);
await fs.write('tarFile.tar.index', res.buffer);
await fd.close();
FAQs
Given a `.tar` with a `.index` using HTTP range requests fetch only the portion of the tar that contains the bytes of the file.
We found that @cotar/core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.