Skip to content

Can't edit template files on v2.14.0 #14197

@ricalexm

Description

@ricalexm

Hello!

I just updated to the latest version, and it appears that I can no longer edit any template files. When I try, the system displays a 404 page and on the logs an unauthorised message appears.

I have tried with a user who has template and workspace admin and also the owner account.

Steps to reproduce:

  1. Create template
  2. Edit files on template

Errors:
2024-08-07 09:37:52.993 [warn] coderd: requester is not authorized to access the object internal_error= request_id=0942ad16-abad-43e5-9322-ee5800d8cce0 roles="[template-admin member organization-member:db55e2dd-3434-48bc-a25b-9f7b141f56cd]" actor_id=23a6d8a5-df39-4487-9ba9-a5f94efe898d actor_name={"FriendlyName":"ricardo","ID":"23a6d8a5-df39-4487-9ba9-a5f94efe898d","Roles":[{"name":"template-admin","display_name":"Template Admin","site":[{"negate":false,"resource_type":"file","action":"create"},{"negate":false,"resource_type":"file","action":"read"},{"negate":false,"resource_type":"group","action":"read"},{"negate":false,"resource_type":"organization","action":"read"},{"negate":false,"resource_type":"organization_member","action":"read"},{"negate":false,"resource_type":"provisioner_daemon","action":"create"},{"negate":false,"resource_type":"provisioner_daemon","action":"delete"},{"negate":false,"resource_type":"provisioner_daemon","action":"update"},{"negate":false,"resource_type":"provisioner_daemon","action":"read"},{"negate":false,"resource_type":"template","action":"delete"},{"negate":false,"resource_type":"template","action":"view_insights"},{"negate":false,"resource_type":"template","action":"update"},{"negate":false,"resource_type":"template","action":"read"},{"negate":false,"resource_type":"template","action":"create"},{"negate":false,"resource_type":"user","action":"read"},{"negate":false,"resource_type":"workspace","action":"read"}],"org":{},"user":[]},{"name":"member","display_name":"Member","site":[{"negate":false,"resource_type":"assign_role","action":"read"},{"negate":false,"resource_type":"oauth2_app","action":"read"},{"negate":false,"resource_type":"provisioner_daemon","action":"read"},{"negate":false,"resource_type":"workspace_proxy","action":"read"}],"org":{},"user":[{"negate":false,"resource_type":"api_key","action":""},{"negate":false,"resource_type":"assign_org_role","action":""},{"negate":false,"resource_type":"assign_role","action":""},{"negate":false,"resource_type":"audit_log","action":""},{"negate":false,"resource_type":"debug_info","action":""},{"negate":false,"resource_type":"deployment_config","action":""},{"negate":false,"resource_type":"deployment_stats","action":""},{"negate":false,"resource_type":"file","action":""},{"negate":false,"resource_type":"group","action":""},{"negate":false,"resource_type":"license","action":""},{"negate":false,"resource_type":"oauth2_app","action":""},{"negate":false,"resource_type":"oauth2_app_code_token","action":""},{"negate":false,"resource_type":"oauth2_app_secret","action":""},{"negate":false,"resource_type":"organization","action":""},{"negate":false,"resource_type":"provisioner_daemon","action":""},{"negate":false,"resource_type":"provisioner_keys","action":""},{"negate":false,"resource_type":"replicas","action":""},{"negate":false,"resource_type":"system","action":""},{"negate":false,"resource_type":"tailnet_coordinator","action":""},{"negate":false,"resource_type":"template","action":""},{"negate":false,"resource_type":"workspace","action":""},{"negate":false,"resource_type":"workspace_proxy","action":""},{"negate":false,"resource_type":"provisioner_daemon","action":"read"},{"negate":false,"resource_type":"provisioner_daemon","action":"create"},{"negate":false,"resource_type":"provisioner_daemon","action":"read"},{"negate":false,"resource_type":"provisioner_daemon","action":"update"},{"negate":false,"resource_type":"user","action":"read"},{"negate":false,"resource_type":"user","action":"read_personal"},{"negate":false,"resource_type":"user","action":"update_personal"},{"negate":false,"resource_type":"workspace_dormant","action":"read"},{"negate":false,"resource_type":"workspace_dormant","action":"delete"},{"negate":false,"resource_type":"workspace_dormant","action":"create"},{"negate":false,"resource_type":"workspace_dormant","action":"update"},{"negate":false,"resource_type":"workspace_dormant","action":"stop"}]},{"name":"organization-member:db55e2dd-3434-48bc-a25b-9f7b141f56cd","display_name":"","site":[],"org":{"db55e2dd-3434-48bc-a25b-9f7b141f56cd":[{"negate":false,"resource_type":"organization","action":"read"},{"negate":false,"resource_type":"assign_org_role","action":"read"}]},"user":[{"negate":false,"resource_type":"organization_member","action":"read"}]}],"Groups":null,"Scope":"all"} scope=all route=/api/v2/deployment/stats action=read object={"id":"","owner":"","org_owner":"","any_org":false,"type":"deployment_stats","acl_user_list":null,"acl_group_list":null}

Metadata

Metadata

Assignees

Labels

regressionSomething that used to work but no longer workss1Bugs that break core workflows. Only humans may set this.siteArea: frontend dashboard

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy