Skip to content

v0.2.8

Latest
Compare
Choose a tag to compare
@niravparikh05 niravparikh05 released this 14 Jun 10:29
· 10 commits to main since this release
a080792

What's Changed

  • chore(deps): Bump docker/build-push-action from 5.1.0 to 5.3.0 by @dependabot in #306
  • chore(deps): Bump docker/login-action from 3.0.0 to 3.1.0 by @dependabot in #305
  • chore(deps): Bump aquasecurity/trivy-action from 0.17.0 to 0.18.0 by @dependabot in #302
  • chore(deps): Bump sigstore/cosign-installer from 3.4.0 to 3.5.0 by @dependabot in #312
  • chore(deps): Bump aquasecurity/trivy-action from 0.18.0 to 0.19.0 by @dependabot in #309
  • CI: added golangci-lint to the go.yml workflow by @jaydee029 in #311
  • linting(fixes): unused func/var/methods removed by @jaydee029 in #315
  • chore: add community meeting ics file by @akshay196 in #322
  • fix: unable to create/update project when roles specified by @akshay196 in #314
  • chore(deps): Bump docker/login-action from 3.1.0 to 3.2.0 by @dependabot in #325
  • Update README.md by @t-cool in #324
  • adding permissions for cli.config.read and code fix for non admin use… by @niravparikh05 in #313
  • chore(deps): Bump golangci/golangci-lint-action from 4 to 6 by @dependabot in #319
  • chore(deps): Bump aquasecurity/trivy-action from 0.19.0 to 0.21.0 by @dependabot in #323
  • chore(deps): Bump github.com/jackc/pgx/v4 from 4.13.0 to 4.18.2 by @dependabot in #326
  • chore(deps): Bump aquasecurity/trivy-action from 0.21.0 to 0.22.0 by @dependabot in #328

Migrations

Prior to v0.2.8 non-admin users will not have necessary permissions to download cli config, apply below migrations if you are upgrading Paralus

-- insert records into authsrv_resourcepermission
INSERT INTO authsrv_resourcepermission (name, scope, base_url, description, created_at, modified_at, trash, resource_urls, resource_action_urls) VALUES ('cli.config.read', 'PROJECT', '/auth/v3', 'Download cli configuration', current_timestamp, current_timestamp, false, '[{"url": "/cli/config", "methods": ["GET"]}]', 'null');

-- insert records into authsrv_resourcerolepermission
WITH resourcerole AS ( SELECT id as rrid FROM authsrv_resourcerole WHERE name IN ('PROJECT_ADMIN', 'PROJECT_READ_ONLY', 'CLUSTER_ADMIN', 'NAMESPACE_ADMIN', 'NAMESPACE_READ_ONLY') ), resourcepermission AS ( SELECT id as rpid FROM authsrv_resourcepermission WHERE name = 'cli.config.read' ) INSERT INTO authsrv_resourcerolepermission (name, description, created_at, modified_at, trash, resource_permission_id, resource_role_id) SELECT 'cli.config.read', 'Download cli configuration', current_timestamp, current_timestamp, false, resourcepermission.rpid, resourcerole.rrid FROM resourcerole, resourcepermission;

-- insert into casbin_rule
WITH resourcerole AS ( SELECT name FROM authsrv_resourcerole WHERE name IN ('PROJECT_ADMIN', 'PROJECT_READ_ONLY', 'CLUSTER_ADMIN', 'NAMESPACE_ADMIN', 'NAMESPACE_READ_ONLY') ) INSERT INTO casbin_rule (ptype, v0, v1, v2) SELECT 'g', '/auth/v3/cli/config', resourcerole.name, 'GET' FROM resourcerole;

New Contributors

Full Changelog: v0.2.7...v0.2.8