Repository navigation
Tags: permitio/permit-cli
Tags
PER-16377: retire the eu region in the CLI (#149) * PER-16377: retire the eu region in the CLI Permit's EU region was torn down on 2026-09-28; every EU host is gone. Drop eu as a selectable region and remove its URL mappings. A saved or passed eu (PERMIT_REGION, the keychain value, or --region eu) now fails with a clear error before any request, instead of falling back to US and sending the old EU credentials there. US URLs are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * PER-16377: save the us region on every successful login A user with eu saved in the keychain who ran `permit login` without --region got a successful login, but the keychain kept eu, so the next command failed again with the retired-region error. Login now saves us after the token on every successful login, which replaces the stale value. A keychain failure while saving it is shown as a login error instead of an unhandled rejection. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * PER-16377: test the PERMIT_REGION=eu startup rejection Cover the cli.tsx fail-fast path: with PERMIT_REGION=eu the CLI prints the retirement message and exits 1 before any command runs. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Zeev Manilovich <zeevmanilovich@gmail.com>
Add createColumnResources option to Trino configuration and update re… …lated components (#139) * Add createColumnResources option to Trino configuration and update related components - Introduced `createColumnResources` boolean option in Trino options, defaulting to false. - Updated `mapTrinoSchemaToPermitResources` to conditionally create column resources based on the new option. - Modified `TrinoComponent` to pass `createColumnResources` prop. - Enhanced `PDPRunComponent` to accept a `tag` prop for specifying the PDP image tag. - Adjusted Docker command in `PDPRunComponent` to use the provided tag. - Updated Trino resource naming for better clarity in the mapping function. - Reduced healthcheck interval in Docker Compose for faster feedback during tests. * Fix lint * Refactor Trino resource mapping tests for improved clarity and consistency - Updated resource keys in tests to use underscores instead of hyphens for consistency. - Enhanced test assertions to include resource type prefixes (e.g., 'Catalog:', 'Schema:', 'Table:') for better readability. - Added `createColumnResources` option in the `mapTrinoSchemaToPermitResources` function call to align with recent changes. * Fix lint
PreviousNext