Skip to content

Commit

Permalink
CB-5758 limit FF drivers files access
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-skoblikov committed Nov 12, 2024
1 parent 87b9557 commit 21e54a7
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/org.jkiss.utils/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Bundle-Release-Date: 20240205
Bundle-RequiredExecutionEnvironment: JavaSE-17
Require-Bundle: com.google.gson
Export-Package: org.jkiss.api,
org.jkiss.api.verification,
org.jkiss.code,
org.jkiss.utils,
org.jkiss.utils.csv,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* Object with contextual information
*/
public interface ObjectWithContextParameters {
String CONTEXT_PARAMETER_DRIVER_VERIFIER = "dbeaver.driver.verifier";

@NotNull

Check warning on line 30 in modules/org.jkiss.utils/src/org/jkiss/api/ObjectWithContextParameters.java

View workflow job for this annotation

GitHub Actions / Check / Lint

[checkstyle] reported by reviewdog 🐶 Missing a Javadoc comment. Raw Output: /github/workspace/./modules/org.jkiss.utils/src/org/jkiss/api/ObjectWithContextParameters.java:30:5: warning: Missing a Javadoc comment. (com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocMethodCheck)
Map<String, Object> getObjectContextParameters();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2024 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jkiss.api.verification;

import org.jkiss.code.NotNull;

import java.nio.file.Path;

public interface DriverAccessVerifier {

Check warning on line 23 in modules/org.jkiss.utils/src/org/jkiss/api/verification/DriverAccessVerifier.java

View workflow job for this annotation

GitHub Actions / Check / Lint

[checkstyle] reported by reviewdog 🐶 Missing a Javadoc comment. Raw Output: /github/workspace/./modules/org.jkiss.utils/src/org/jkiss/api/verification/DriverAccessVerifier.java:23:1: warning: Missing a Javadoc comment. (com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocTypeCheck)
/**

Check warning on line 24 in modules/org.jkiss.utils/src/org/jkiss/api/verification/DriverAccessVerifier.java

View workflow job for this annotation

GitHub Actions / Check / Lint

[checkstyle] reported by reviewdog 🐶 Summary javadoc is missing. Raw Output: /github/workspace/./modules/org.jkiss.utils/src/org/jkiss/api/verification/DriverAccessVerifier.java:24:0: warning: Summary javadoc is missing. (com.puppycrawl.tools.checkstyle.checks.javadoc.SummaryJavadocCheck)
* @param path - the path the driver is trying to access
* @return true if access is allowed
*/
boolean isPathReadAllowed(@NotNull Path path);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2024 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jkiss.api.verification;

public interface VerifiableDriver {

Check warning on line 19 in modules/org.jkiss.utils/src/org/jkiss/api/verification/VerifiableDriver.java

View workflow job for this annotation

GitHub Actions / Check / Lint

[checkstyle] reported by reviewdog 🐶 Missing a Javadoc comment. Raw Output: /github/workspace/./modules/org.jkiss.utils/src/org/jkiss/api/verification/VerifiableDriver.java:19:1: warning: Missing a Javadoc comment. (com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocTypeCheck)
}

0 comments on commit 21e54a7

Please sign in to comment.