Skip to content

Conversation

@lingbin
Copy link
Contributor

@lingbin lingbin commented Sep 13, 2017

  1. use cluster_id as token;
  2. add dir limit, only files in data dir can be accessed.

1. use cluster_id as token;
2. add dir limit, only files in data dir can be accessed.
CONF_Bool(disable_kudu, "false")

// to forward compatibility, will be removed later
CONF_Bool(disable_deprecated_download, "false");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个配置名字不好,应该直接说明你做的是什么。比如在1年后,download模型可能更新多次了,而这个配置选项看名字都不知道在干嘛了。
另外,安全功能默认应该是开启的

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修改成enable_token_check了


Status DownloadAction::check_path(const std::string& file_path) {
for (auto& allow_path : _allow_paths) {
VLOG_ROW << "allow path: " << allow_path;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this debug log

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

boost::filesystem::path sub(sub_path);
parent = parent.lexically_normal();
sub = sub.lexically_normal();
VLOG_ROW << "parent lexically_normal: " << parent;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove debug log

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

parent = parent.lexically_normal();
sub = sub.lexically_normal();
VLOG_ROW << "parent lexically_normal: " << parent;
VLOG_ROW << "sub lexically_normal: " << sub;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove debug log

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@imay imay merged commit db8c40e into apache:master Sep 13, 2017
stdpain pushed a commit to stdpain/incubator-doris that referenced this pull request Jul 5, 2021
HappenLee added a commit to HappenLee/incubator-doris that referenced this pull request Jul 15, 2021
HappenLee added a commit to HappenLee/incubator-doris that referenced this pull request Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants