Skip to content

Commit 53c9cd6

Browse files
committed
changelog and docs
1 parent a322fec commit 53c9cd6

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ All notable changes to this project will be documented in this file.
66

77
### Changed
88

9-
- Bump okio to 1.17.6 to get rid of CVE-2023-3635 ([#46])
9+
- BREAKING: Only send a subset of the fields sufficient for most use-cases to OPA for performance reasons.
10+
The old behavior of sending all fields can be restored by setting `hadoop.security.authorization.opa.extended-requests` to `true` ([#XX]).
11+
- Bump `okio` to 1.17.6 and to 3.9.1 afterwards to get rid of CVE-2023-3635 ([#46], [#XX]).
1012

1113
[#46]: https://github.com/stackabletech/hdfs-utils/pull/46
1214

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ The Stackable HDFS already takes care of this, you don't need to do anything in
2626

2727
- Set `dfs.namenode.inode.attributes.provider.class` in `hdfs-site.xml` to `tech.stackable.hadoop.StackableAuthorizer`
2828
- Set `hadoop.security.authorization.opa.policy.url` in `core-site.xml` to the HTTP endpoint of your OPA rego rule, e.g. `http://opa.default.svc.cluster.local:8081/v1/data/hdfs/allow`
29+
- The property `hadoop.security.authorization.opa.extended-requests` (defaults to `false`), which controls if all fields should be send to OPA.
30+
Sending all fields degrades the performance, but allows for more advanced authorization.
2931

3032
### API
3133

src/main/java/tech/stackable/hadoop/OpaReducedAllowQuery.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ public OpaReducedAllowQuery(OpaReducedAllowQueryInput input) {
1111
}
1212

1313
/**
14-
* Similar to {@link OpaAllowQuery.OpaAllowQueryInput}, but this class only contains a subset of * fields that
15-
* should be sufficient for most use-cases, but offer a much better performance.
14+
* Similar to {@link OpaAllowQuery.OpaAllowQueryInput}, but this class only contains a subset of
15+
* fields that should be sufficient for most use-cases, but offer a much better performance.
1616
* See <a href="https://github.com/stackabletech/hdfs-utils/issues/48">this issue</a> for details.
1717
*/
1818
public static class OpaReducedAllowQueryInput {

0 commit comments

Comments
 (0)