Skip to content

[Platform gateway builder] Set temp directory permission to 755 #2478

Description

@Krishanx92

Please select the area the issue is related to

Area/Gateway (Routing, API deployment in gateway etc.)

Please select the aspect the issue is related to

Aspect/Configuration (Config files, settings, env vars, defaults)

Suggested Improvement

Description
In this case it is a gitlab build runner instance. the ap CLI is configured using one OS user, User A, but the build process is using another user, User B. the temp directory structure which is getting generated inside the .wso2ap/.tmp directory, which is inside the User A's home, is restricted to the User B because when we are generating the folders we set the permission level to 700. Because of this, the build process failed saying a 'permission denied' during the file creation inside the directory.

Solution is using 755 permission while creating the folders inside the builder container.

Steps to Reproduce
Configure a builder instance using docker image and start the build process inside the docker container (Docker in Docker). Build will fail

Related Issues

No response

Metadata

Metadata

Assignees

Labels

Area/GatewayAny issues related to API deployment in gateway, routing etc.Aspect/ConfigurationConfig files, settings, env vars, defaultsType/Improvement

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions