Skip to content

Kody is live

Watch the launch video — what Kody is, and why it exists.

← Public packages

@kentcdodds/onepassword

Resolve 1Password Connect item fields for secret-aware fetch with website host allowlisting.

connect/index.ts

22 lines · 875 B · TypeScript
/**
 * Default callable for `kody:@kentcdodds/onepassword/connect`.
 *
 * Describe the Connect-on-Fly sub-exports (source, deployment-guide, deploy-fly).
 */
export default async function describe() {
	return {
		packageId: 'onepassword',
		exports: ['source', 'deployment-guide', 'deploy-fly'],
		runtime: 'fly-multi-container-official-images',
		defaultAppName: 'kody-onepassword-connect',
		defaultUrl: 'https://kody-onepassword-connect.fly.dev',
		images: ['1password/connect-api:latest', '1password/connect-sync:latest'],
		kodySecrets: [
			'flyApiToken',
			'ONEPASSWORD_CONNECT_OP_SESSION',
			'ONEPASSWORD_CONNECT_TOKEN',
		],
		requiredFlyHosts: ['api.machines.dev', 'api.fly.io'],
		note: 'Use ./source for files, ./deploy-fly for Machines API deploy, ./deployment-guide for steps. OP_SESSION comes from ONEPASSWORD_CONNECT_OP_SESSION (Base64 credentials).',
	}
}