Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ingore security check api #1784

Merged
merged 2 commits into from
Mar 21, 2022
Merged

feat: add ingore security check api #1784

merged 2 commits into from
Mar 21, 2022

Conversation

zyxxoo
Copy link
Contributor

@zyxxoo zyxxoo commented Mar 17, 2022

No description provided.

@github-actions
Copy link

github-actions bot commented Mar 17, 2022

CLA Assistant Lite bot Good! All Contributors have signed the CLA.

@codecov
Copy link

codecov bot commented Mar 17, 2022

Codecov Report

Merging #1784 (610d83a) into master (58b3ebe) will increase coverage by 3.96%.
The diff coverage is 22.22%.

@@             Coverage Diff              @@
##             master    #1784      +/-   ##
============================================
+ Coverage     66.86%   70.83%   +3.96%     
- Complexity      970      976       +6     
============================================
  Files           443      446       +3     
  Lines         37749    37809      +60     
  Branches       5384     5393       +9     
============================================
+ Hits          25241    26782    +1541     
+ Misses         9784     8299    -1485     
- Partials       2724     2728       +4     
Impacted Files Coverage Δ
.../baidu/hugegraph/security/HugeSecurityManager.java 78.74% <22.22%> (-1.76%) ⬇️
...n/java/com/baidu/hugegraph/version/ApiVersion.java 75.00% <0.00%> (ø)
...ugegraph/api/traversers/ResourceAllocationAPI.java 90.90% <0.00%> (ø)
.../baidu/hugegraph/api/traversers/AdamicAdarAPI.java 91.66% <0.00%> (ø)
...graph/traversal/algorithm/PredictionTraverser.java 86.66% <0.00%> (ø)
...m/baidu/hugegraph/backend/tx/GraphTransaction.java 80.16% <0.00%> (+0.10%) ⬆️
...du/hugegraph/backend/tx/GraphIndexTransaction.java 83.72% <0.00%> (+0.21%) ⬆️
...du/hugegraph/traversal/optimize/TraversalUtil.java 62.60% <0.00%> (+0.21%) ⬆️
.../baidu/hugegraph/backend/query/ConditionQuery.java 85.14% <0.00%> (+0.24%) ⬆️
...du/hugegraph/schema/builder/IndexLabelBuilder.java 88.69% <0.00%> (+0.28%) ⬆️
... and 113 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 58b3ebe...610d83a. Read the comment docs.

public static void addIgnoreCheck(String clazz) {
if (callFromGremlin()) {
throw newSecurityException(
"Not allowed to add ignore check via Gremlin");
Copy link
Contributor

Choose a reason for hiding this comment

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

add ignore-checked class

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this method be called when inited best, if add ignore-checked, maybe it is called on other time;

@zyxxoo
Copy link
Contributor Author

zyxxoo commented Mar 21, 2022

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Mar 21, 2022
@zhoney zhoney merged commit 91f1cec into master Mar 21, 2022
@zhoney zhoney deleted the tikv_security branch March 21, 2022 06:33
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.

3 participants