harikrishna-patnala commented on a change in pull request #4774:
URL: https://github.com/apache/cloudstack/pull/4774#discussion_r590200925
##########
File path:
engine/components-api/src/main/java/com/cloud/template/TemplateManager.java
##########
@@ -42,14 +42,16 @@
public interface TemplateManager {
static final String AllowPublicUserTemplatesCK =
"allow.public.user.templates";
static final String TemplatePreloaderPoolSizeCK =
"template.preloader.pool.size";
+ static final String RestrictPublicTemplateAccessToDomainCK =
"restrict.public.template.access.to.domain";
static final ConfigKey<Boolean> AllowPublicUserTemplates = new
ConfigKey<Boolean>("Advanced", Boolean.class, AllowPublicUserTemplatesCK,
"true",
"If false, users will not be able to create public templates.", true,
ConfigKey.Scope.Account);
static final ConfigKey<Integer> TemplatePreloaderPoolSize = new
ConfigKey<Integer>("Advanced", Integer.class, TemplatePreloaderPoolSizeCK, "8",
"Size of the TemplateManager threadpool", false,
ConfigKey.Scope.Global);
-
+ static final ConfigKey<Boolean> RestrictPublicTemplateAccessToDomain = new
ConfigKey<>("Advanced", Boolean.class, RestrictPublicTemplateAccessToDomainCK,
"false",
+ "If true, the public template wouldn't share between domains",
true, ConfigKey.Scope.Global);
Review comment:
Can this configuration parameter defined at Domain level, instead of
Global, which gives flexibility at domain level and check the access of
templates based on the Owner domain configuration parameter value ?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]