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

Create SECURITY.md #250

Closed
wants to merge 174 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
174 commits
Select commit Hold shift + click to select a range
c7632fe
Importing c3.11 snapshot
eperott Aug 30, 2018
2f34b0c
Merge branch 'release/c3.0'
eperott Aug 31, 2018
16a5cfd
Merge branch 'release/c3.0'
eperott Aug 31, 2018
1f3ba3b
Merge branch 'release/c3.0'
eperott Aug 31, 2018
cd791d4
Merge branch 'release/c3.0'
eperott Sep 2, 2018
d453a24
Merge branch 'release/c3.0'
eperott Sep 5, 2018
9e9e7c2
[maven-release-plugin] prepare release ecaudit_c3.11-0.21.0
eperott Sep 5, 2018
fab9732
[maven-release-plugin] prepare for next development iteration
eperott Sep 5, 2018
0d0b9a4
Merge branch 'release/c3.0'
eperott Sep 6, 2018
455c4a2
Merge branch 'release/c3.0'
eperott Sep 6, 2018
a140d39
Point Maven Central link to ecaudit_c3.11
eperott Sep 6, 2018
f4fa0eb
Merge branch 'release/c3.0'
eperott Sep 8, 2018
0ad7eb4
Update references to master and 3.11
eperott Sep 11, 2018
0861e98
Merge branch 'release/c3.0'
eperott Sep 11, 2018
1d16a91
Merge branch 'release/c3.0'
eperott Sep 11, 2018
6d7c599
Point performance chart links to Ericsson repo
eperott Sep 11, 2018
6a5c759
Merge branch 'release/c3.0'
eperott Sep 11, 2018
5d03d6e
Merge branch 'release/c3.0'
eperott Sep 13, 2018
2dda88f
Merge branch 'release/c3.0'
eperott Sep 19, 2018
b691c8e
Merge branch 'release/c3.0'
eperott Sep 26, 2018
c97d9d7
Merge branch 'release/c3.0'
eperott Sep 27, 2018
4acd25e
Merge branch 'release/c3.0'
eperott Sep 27, 2018
d0dc506
Bump Cassandra version to 3.11.3
eperott Sep 27, 2018
b541cfc
Bump Cassandra version to 3.11.3
eperott Sep 27, 2018
6d90731
Merge branch 'release/c3.0'
eperott Sep 27, 2018
70152c3
[maven-release-plugin] prepare release ecaudit_c3.11-0.22.0
hme2018 Sep 27, 2018
25b80c3
[maven-release-plugin] prepare for next development iteration
hme2018 Sep 27, 2018
76353e5
Merge branch 'release/c3.0'
eperott Sep 28, 2018
3fcbc3a
Merge branch 'release/c3.0'
eperott Sep 29, 2018
324ade8
Merge branch 'release/c3.0'
eperott Sep 30, 2018
2bc3875
Merge branch 'release/c3.0'
eperott Oct 1, 2018
e55b1c9
Merge branch 'release/c3.0'
eperott Oct 2, 2018
71700fa
Merge branch 'release/c3.0'
eperott Oct 24, 2018
9af9b15
Merge branch 'release/c3.0'
eperott Oct 24, 2018
9f0a251
Merge branch 'release/c3.0'
eperott Oct 24, 2018
c762d24
Remove unused mockito stub
eperott Oct 24, 2018
7d1cce4
Remove unused mockito stub
eperott Oct 24, 2018
e9ac4a2
[maven-release-plugin] prepare release ecaudit_c3.11-1.0.0
eperott Oct 24, 2018
a31d9b3
[maven-release-plugin] prepare for next development iteration
eperott Oct 24, 2018
01a7256
Merge branch 'release/c3.0'
eperott Oct 24, 2018
07c4638
Merge branch 'release/c3.0'
eperott Nov 2, 2018
c2f0c6e
Merge branch 'release/c3.0'
eperott Nov 6, 2018
91978e8
Merge branch 'release/c3.0'
eperott Nov 11, 2018
857d54e
Merge branch 'release/c3.0'
eperott Nov 11, 2018
f4010a2
Merge branch 'release/c3.0'
eperott Nov 29, 2018
07cb0f7
[maven-release-plugin] prepare release ecaudit_c3.11-2.0.0
eperott Nov 30, 2018
1daaed3
[maven-release-plugin] prepare for next development iteration
eperott Nov 30, 2018
98e8526
Ignore failing tests
eperott Dec 2, 2018
6f51904
Merge branch 'release/c3.0'
eperott Dec 2, 2018
6fd91e7
Merge branch 'release/c3.0'
eperott Dec 4, 2018
5c93355
Merge branch 'release/c3.0'
eperott Dec 11, 2018
15c5068
Merge branch 'release/c3.0'
eperott Dec 12, 2018
64f5dea
Merge branch 'release/c3.0'
eperott Dec 12, 2018
a27fcbf
Merge branch 'release/c3.0'
eperott Jan 31, 2019
6c346e3
Merge branch 'release/c3.0'
etedpet Feb 1, 2019
1fdeccd
Merge branch 'release/c3.0'
etedpet Feb 12, 2019
b85bf4e
Merge branch 'release/c3.0'
eperott Feb 19, 2019
3e8f21b
Merge branch 'release/c3.0'
eperott Feb 22, 2019
3eab904
Merge branch 'release/c3.0'
eperott Feb 22, 2019
4a1e5f3
Merge branch 'release/c3.0'
eperott Feb 23, 2019
9383fdd
Bump to Cassandra 3.11.4
eperott Feb 23, 2019
a24dd26
Merge branch 'release/c3.0'
eperott Mar 1, 2019
20ae4a3
Merge branch 'release/c3.0'
eperott Mar 1, 2019
300cd9c
Merge branch 'release/c3.0'
eperott Mar 11, 2019
ef63e96
Fix 3.11 test class setup
eperott Mar 11, 2019
9651165
Merge branch 'release/c3.0'
eperott Apr 15, 2019
6bab6f8
Merge branch 'release/c3.0'
eperott Apr 15, 2019
44c96b7
Merge branch 'release/c3.0'
eperott Apr 23, 2019
b3d77a1
Merge branch 'release/c3.0'
eperott Apr 23, 2019
8873397
Merge branch 'release/c3.0'
eperott Apr 30, 2019
844ed8a
Merge branch 'release/c3.0'
eperott Apr 30, 2019
65a5bf7
Merge branch 'release/c3.0'
eperott Apr 30, 2019
b618723
Merge branch 'release/c3.0'
eperott May 6, 2019
cfc3ba0
Merge branch 'release/c3.0'
eperott May 15, 2019
36c7952
Fix post logging IT flavor
eperott May 15, 2019
632e895
Merge branch 'release/c3.0'
eperott May 15, 2019
3f3c29f
Updating cassandra.yaml for post log IT
eperott May 15, 2019
488605c
Merge branch 'release/c3.0'
eperott May 23, 2019
73fec16
Merge branch 'release/c3.0'
eperott Jun 8, 2019
fdc2e67
Merge branch 'release/c3.0'
eperott Jun 16, 2019
fd96769
Merge branch 'release/c3.0'
eperott Jun 16, 2019
8e2156a
C* 4.0 ccm and performance scripts
eperott Jun 16, 2019
642b330
Merge branch 'release/c3.0'
eperott Jun 18, 2019
0281594
Always mock authorizer and authenticator in client mode tests
eperott Jun 18, 2019
dc153dc
Merge branch 'release/c3.0'
etedpet Jul 2, 2019
0738084
Merge branch 'release/c3.0'
eperott Aug 1, 2019
f757477
Merge branch 'release/c3.0'
eperott Aug 1, 2019
fce60a6
[maven-release-plugin] prepare release ecaudit_c3.11-2.1.0
eperott Aug 1, 2019
a69891a
[maven-release-plugin] prepare for next development iteration
eperott Aug 1, 2019
6f3b8a0
Merge branch 'release/c3.0'
eperott Aug 1, 2019
9577b03
Merge branch 'release/c3.0'
etedpet Aug 30, 2019
0eafeac
Merge branch 'release/c3.0'
etedpet Sep 3, 2019
ad54988
Merge branch 'release/c3.0'
etedpet Sep 6, 2019
b56e2c3
[maven-release-plugin] prepare release ecaudit_c3.11-2.2.2
etedpet Sep 9, 2019
b02aba8
[maven-release-plugin] prepare for next development iteration
etedpet Sep 9, 2019
4d2e394
Merge branch 'release/c3.0'
etedpet Oct 4, 2019
a85b45e
Merge branch 'release/c3.0'
etedpet Oct 15, 2019
90438bb
Merge branch 'release/c3.0'
eperott Oct 30, 2019
5d9e3be
Merge branch 'release/c3.0'
eperott Nov 24, 2019
0b02918
Merge branch 'release/c3.0'
etedpet Feb 24, 2020
4201f62
Restore compatibility with 3.11.2
eperott Feb 26, 2020
920d4ba
Merge branch 'release/c3.0'
eperott Feb 28, 2020
4edd510
Merge branch 'release/c3.0'
eperott Feb 28, 2020
6dbe4f4
[maven-release-plugin] prepare release ecaudit_c3.11-2.3.0
eperott Mar 4, 2020
1df359e
[maven-release-plugin] prepare for next development iteration
eperott Mar 4, 2020
0986ed5
Merge branch 'release/c3.0'
etedpet Mar 5, 2020
a9fbf0f
Merge branch 'release/c3.0'
eperott Mar 5, 2020
aadc2c0
Merge branch 'release/c3.0'
etedpet Mar 11, 2020
c3efe66
[maven-release-plugin] prepare release ecaudit_c3.11-2.4.0
etedpet Mar 11, 2020
b382f9e
[maven-release-plugin] prepare for next development iteration
etedpet Mar 11, 2020
e2504e0
Merge branch 'release/c3.0'
eperott Mar 17, 2020
817096c
Merge branch 'release/c3.0'
eperott Mar 18, 2020
e5cdb11
Update performance tests for 3.11 flavor
eperott Mar 19, 2020
b8ea414
Merge branch 'release/c3.0'
Mar 19, 2020
efb872f
Merge branch 'release/c3.0'
eperott Mar 23, 2020
14ee46e
[maven-release-plugin] prepare release ecaudit_c3.11-2.5.0
eperott Mar 23, 2020
f845dd5
[maven-release-plugin] prepare for next development iteration
eperott Mar 23, 2020
9b79838
Merge branch 'release/c3.0'
eperott Apr 2, 2020
23bd15f
Merge branch 'release/c3.0'
eperott Apr 3, 2020
a810278
Merge branch 'release/c3.0'
emolsson Apr 8, 2020
eb389f4
[maven-release-plugin] prepare release ecaudit_c3.11-2.6.0
eperott Apr 9, 2020
89d3608
[maven-release-plugin] prepare for next development iteration
eperott Apr 9, 2020
bdde090
Bump Cassandra to version 3.11.8
eperott Sep 17, 2020
407e771
Merge branch 'release/c3.0'
eperott Sep 17, 2020
8ae13b9
Merge branch 'release/c3.0'
eperott Jan 24, 2021
7b11ec9
Merge branch 'release/c3.0'
eperott Jan 24, 2021
7808a60
Merge branch 'release/c3.0'
eperott Apr 8, 2021
2aae8ae
Update compatibility matrix
eperott Apr 8, 2021
466c0e8
Merge branch 'release/c3.0'
eperott Apr 8, 2021
4c88ba0
[maven-release-plugin] prepare release ecaudit_c3.11-2.7.0
eperott Apr 8, 2021
febb1e2
[maven-release-plugin] prepare for next development iteration
eperott Apr 8, 2021
e4c994f
Merge branch 'release/c3.0'
emolsson May 20, 2021
ecf691f
Extend grant based audit to system tables (#176)
emolsson May 31, 2021
4165ad1
Merge branch 'release/c3.0'
eperott May 31, 2021
3454a91
Merge branch 'release/c3.0'
eperott Jun 1, 2021
55b1dae
[maven-release-plugin] prepare release ecaudit_c3.11-2.7.1
eperott Jun 1, 2021
e4fb975
[maven-release-plugin] prepare for next development iteration
eperott Jun 1, 2021
1ca6687
Merge branch 'release/c3.0'
eperott Aug 17, 2021
5f5826e
Bump Cassandra to version 3.11.11
eperott Jan 22, 2022
27645fc
Merge branch 'release/c3.0'
eperott Jan 22, 2022
d20019c
Merge branch 'release/c3.0'
eperott Jan 22, 2022
00531ad
[maven-release-plugin] prepare release ecaudit_c3.11-2.8.0
eperott Jan 22, 2022
238e61a
[maven-release-plugin] prepare for next development iteration
eperott Jan 22, 2022
fd99b2a
Merge branch 'release/c3.0' into release/c3.11
eperott Jan 22, 2022
175c97b
Updated links for 3.11 specific pages
eperott Jan 22, 2022
6f2c785
Fix code coverage badge
eperott Jan 22, 2022
f9b254a
Merge branch 'release/c3.0' into release/c3.11
eperott Feb 27, 2022
21104f9
[maven-release-plugin] prepare release ecaudit_c3.11-2.9.0
eperott Mar 6, 2022
35a6aa3
[maven-release-plugin] prepare for next development iteration
eperott Mar 6, 2022
7174636
Fix prepare statement logging when there are no values
emolsson Mar 18, 2022
4eab5d4
Re-prepare cached statements that are loaded during startup
emolsson Mar 18, 2022
c45c715
[maven-release-plugin] prepare release ecaudit_c3.11-2.9.1
eperott Mar 20, 2022
b1cd3fb
[maven-release-plugin] prepare for next development iteration
eperott Mar 20, 2022
c0b9320
Merge branch 'release/c3.0' into release/c3.11
tommystendahl Nov 18, 2022
d2c0b04
Merge branch 'release/c3.0' into release/c3.11
tommystendahl Nov 23, 2022
cfe5246
Merge branch 'release/c3.0' into release/c3.11
tommystendahl Nov 23, 2022
2fc27f8
[maven-release-plugin] prepare release ecaudit_c3.11-2.10.0
tommystendahl Nov 23, 2022
7b35056
[maven-release-plugin] prepare for next development iteration
tommystendahl Nov 23, 2022
f840406
Add support for escaping characters in slf4j (#208)
masokol Dec 22, 2022
7d0b88a
Merge branch 'release/c3.0' into release/c3.11
tommystendahl Jan 24, 2023
f9547ee
[maven-release-plugin] prepare release ecaudit_c3.11-2.11.0
jwaeab Feb 6, 2023
07e3a17
[maven-release-plugin] prepare for next development iteration
jwaeab Feb 6, 2023
d0be356
Merge branch 'release/c3.0' into release/c3.11
tommystendahl Apr 12, 2023
c0c4c3b
Merge branch 'release/c3.0' into release/c3.11
tommystendahl May 16, 2023
5b43bc7
Merge branch 'release/c3.0' into release/c3.11
tommystendahl Sep 28, 2023
b50d649
Merge branch 'release/c3.0' into release/c3.11
tommystendahl Oct 3, 2023
df8ecfa
Merge branch 'release/c3.0' into release/c3.11
tommystendahl Oct 5, 2023
cad0437
Merge branch 'release/c3.0' into release/c3.11
tommystendahl Oct 6, 2023
ad1de53
Merge branch 'release/c3.0' into release/c3.11
tommystendahl Oct 11, 2023
a9c46c6
Add auditing for prepare statements (#238)
paulchandler Oct 25, 2023
57a3431
Align versions across the flavours (#243)
tommystendahl Oct 31, 2023
e94d334
Merge branch 'release/c3.0' into release/c3.11
tommystendahl Nov 1, 2023
e6ed598
Create SECURITY.md
RhoderickGalero Nov 10, 2023
9326b66
Update SECURITY.md
RhoderickGalero Nov 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ target/
.idea
*.iml
dependency-reduced-pom.xml
.idea/

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# Changes

## Version 3.1.0 (unreleased)

* Add Audit Prepare statements - #226

## Version 3.0.0 (only flavor ecaudit_c4.1)

## Version 2.11.0

* Use SnakeYaml's SafeConstructor to avoid CVE-2022-1471
* Support escaping characters in log messages - #207

## Version 2.10.0
* Build with Cassandra 4.0.7 (only flavor ecaudit_c4.0)
Expand Down
3 changes: 0 additions & 3 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ Copyright 2018-22 Telefonaktiebolaget LM Ericsson

This product includes software developed at Ericsson (http://www.ericsson.com/).

This software contains code derived form Apache Cassandra (http://cassandra.apache.org/)
Licensed under the Apache License 2.0.

This product also includes the following software:

Chronicle-Queue (https://github.com/OpenHFT/Chronicle-Queue)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ecAudit

[![tests](https://github.com/Ericsson/ecaudit/actions/workflows/test.yml/badge.svg?branch=release/c3.0)](https://github.com/Ericsson/ecaudit/actions/workflows/test.yml?query=branch%3Arelease/c3.0)
[![coverage](https://codecov.io/gh/ericsson/ecaudit/branch/release/c3.0/graph/badge.svg)](https://codecov.io/gh/ericsson/ecaudit/branch/release/c3.0)
[![tests](https://github.com/Ericsson/ecaudit/actions/workflows/test.yml/badge.svg?branch=release/c3.11)](https://github.com/Ericsson/ecaudit/actions/workflows/test.yml?query=branch%3Arelease/c3.11)
[![coverage](https://codecov.io/gh/Ericsson/ecaudit/branch/release/c3.11/graph/badge.svg?token=f42z31Yqr3)](https://codecov.io/gh/Ericsson/ecaudit/branch/release%2Fc3.11)

With ecAudit you get auditing and query logger functionality for Apache Cassandra 3.0 and 3.11.

Expand Down
14 changes: 14 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Security Policy

## Supported Versions

Only the latest release version of ecaudit is supported by security updates.

| Version | Supported |
| --------------- | -------------------- |
| Latest release | :white_check_mark: |
| early release | :x: |

## Reporting a Vulnerability

If you find a vulnerability in ecaudit, please report it as a security vulnerability on GitHub https://github.com/Ericsson/ecaudit/security/advisories/new
60 changes: 60 additions & 0 deletions bin/configure_ccm_40audit_chronicle.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#!/bin/bash
#
# Copyright 2019 Telefonaktiebolaget LM Ericsson
#
# 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.
#

shopt -s extglob

SCRIPT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
CCM_CONFIG=${CCM_CONFIG_DIR:=~/.ccm}

if [ ! -f ${CCM_CONFIG}/CURRENT ]; then
echo "Unable to find an active ccm cluster"
exit 2
fi

CCM_CLUSTER_NAME=`cat ${CCM_CONFIG}/CURRENT`
echo "Enabling 4.0 Audit with Chronicle backend into ${CCM_CLUSTER_NAME}"

CLUSTER_PATH=${CCM_CONFIG}/${CCM_CLUSTER_NAME}

update_cache_times() {
sed -i "s/^$1_validity_in_ms:.*/$1_validity_in_ms: 10000/" $2
sed -i "/^$1_update_interval_in_ms/d" $2
sed -i "/^$1_validity_in_ms:.*/a\
$1_update_interval_in_ms: 2000" $2
}

enable_audit() {
mkdir -p $2
sed -i '/^audit_logging_options/,/^[a-z]/{/^ /d}' $1
sed -i '/^audit_logging_options/a\ enabled: true' $1
sed -i '/^audit_logging_options/a\ logger: BinAuditLogger' $1
sed -i "/^audit_logging_options/a\ audit_logs_dir: $2" $1
sed -i '/^audit_logging_options/a\ roll_cycle: MINUTELY' $1
sed -i '/^audit_logging_options/a\ block: false' $1
sed -i '/^audit_logging_options/a\ max_log_size: 1073741824 # 1GB' $1
}

for NODE_PATH in ${CLUSTER_PATH}/node*;
do
sed -i 's/^authenticator:.*/authenticator: PasswordAuthenticator/' ${NODE_PATH}/conf/cassandra.yaml
sed -i 's/^authorizer:.*/authorizer: CassandraAuthorizer/' ${NODE_PATH}/conf/cassandra.yaml
sed -i 's/^role_manager:.*/role_manager: CassandraRoleManager/' ${NODE_PATH}/conf/cassandra.yaml
update_cache_times roles ${NODE_PATH}/conf/cassandra.yaml
update_cache_times permissions ${NODE_PATH}/conf/cassandra.yaml
update_cache_times credentials ${NODE_PATH}/conf/cassandra.yaml
enable_audit ${NODE_PATH}/conf/cassandra.yaml ${NODE_PATH}/logs/audit
done
2 changes: 1 addition & 1 deletion bin/configure_ccm_cassandra_auth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ do
sed -i 's/^role_manager:.*/role_manager: CassandraRoleManager/' ${NODE_PATH}/conf/cassandra.yaml
update_cache_times roles ${NODE_PATH}/conf/cassandra.yaml
update_cache_times permissions ${NODE_PATH}/conf/cassandra.yaml
#update_cache_times credentials ${NODE_PATH}/conf/cassandra.yaml
update_cache_times credentials ${NODE_PATH}/conf/cassandra.yaml
done
85 changes: 85 additions & 0 deletions bin/run_ccm_40_performance_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
#!/bin/bash
#
# Copyright 2019 Telefonaktiebolaget LM Ericsson
#
# 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.
#

shopt -s extglob

SCRIPT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"

if [[ $# -ne 1 ]]; then
echo "Missing argument - specify path to cassandra 4.0 source dir"
echo " hint: ant realclean jar"
exit 2
fi

CASSANDRA_SOURCE=$1

which ccm > /dev/null
if [[ $? -ne 0 ]]; then
echo "ccm must be installed"
exit 3
fi

ccm status | grep -qs UP
if [[ $? -eq 0 ]]; then
echo "ccm cluster already running"
exit 3
fi

ccm create -n 1 --install-dir=${CASSANDRA_SOURCE} 40audit
if [[ $? -ne 0 ]]; then
echo "Failed to create ccm cluster '40audit'"
exit 3
fi

echo "Generating performance report into 40audit-performance.html"

ccm start
sleep 30
${CASSANDRA_SOURCE}/tools/bin/cassandra-stress write n=3000000 -node 127.0.0.1 -port jmx=7100 -mode native cql3 user=cassandra password=cassandra -rate threads=10 -graph file=40audit-performance.html title=40Audit-Performance revision=vanilla
ccm clear
sleep 5

${SCRIPT_PATH}/configure_ccm_cassandra_auth.sh
ccm start
sleep 30
${CASSANDRA_SOURCE}/tools/bin/cassandra-stress write n=3000000 -node 127.0.0.1 -port jmx=7100 -mode native cql3 user=cassandra password=cassandra -rate threads=10 -graph file=40audit-performance.html title=40Audit-Performance revision=authentication-authorization
ccm clear
sleep 5

${SCRIPT_PATH}/configure_ccm_40audit_chronicle.sh
ccm start
sleep 30
ccm node1 nodetool "enableauditlog --excluded-users cassandra"
${CASSANDRA_SOURCE}/tools/bin/cassandra-stress write n=3000000 -node 127.0.0.1 -port jmx=7100 -mode native cql3 user=cassandra password=cassandra -rate threads=10 -graph file=40audit-performance.html title=40Audit-Performance revision=authentication-authorization-audit-whitelist
ccm clear
sleep 5

${SCRIPT_PATH}/configure_ccm_40audit_chronicle.sh
ccm start
sleep 30
ccm node1 nodetool "enableauditlog --included-users cassandra"
${CASSANDRA_SOURCE}/tools/bin/cassandra-stress write n=3000000 -node 127.0.0.1 -port jmx=7100 -mode native cql3 user=cassandra password=cassandra -rate threads=10 -graph file=40audit-performance.html title=40Audit-Performance revision=authentication-authorization-audit-chronicle
ccm clear
sleep 5

#${SCRIPT_PATH}/configure_ccm_audit_slf4j.sh
#ccm start
#sleep 30
#ccm node1 cqlsh -u cassandra -p cassandra -x "ALTER ROLE cassandra WITH OPTIONS = { 'REVOKE AUDIT WHITELIST FOR ALL': 'data' };"
#${CASSANDRA_SOURCE}/tools/bin/cassandra-stress write n=3000000 -node 127.0.0.1 -port jmx=7100 -mode native cql3 user=cassandra password=cassandra -rate threads=10 -graph file=40audit-performance.html title=40Audit-Performance revision=authentication-authorization-audit-slf4j
#ccm clear
#sleep 5
2 changes: 1 addition & 1 deletion bin/run_ccm_performance_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ tune_cassandra() {
echo "JVM_EXTRA_OPTS=\"\$JVM_EXTRA_OPTS -Xms16G -Xmx16G -Xmn4G"\" >> ${CLUSTER_PATH}/cassandra.in.sh
#echo "JVM_EXTRA_OPTS=\"\$JVM_EXTRA_OPTS -XX:+UnlockDiagnosticVMOptions -XX:ParGCCardsPerStrideChunk=4096"\" >> ${CLUSTER_PATH}/cassandra.in.sh
echo "disk_access_mode: mmap_index_only" >> ${CLUSTER_PATH}/node1/conf/cassandra.yaml
sed -i 's/^memtable_allocation_type.*/memtable_allocation_type: heap_buffers/' ${CLUSTER_PATH}/node1/conf/cassandra.yaml
sed -i 's/^memtable_allocation_type.*/memtable_allocation_type: offheap_objects/' ${CLUSTER_PATH}/node1/conf/cassandra.yaml
sed -i 's/^-XX:SurvivorRatio=.*/-XX:SurvivorRatio=2/' ${CLUSTER_PATH}/node1/conf/cassandra.yaml
}

Expand Down
6 changes: 3 additions & 3 deletions common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.ericsson.bss.cassandra.ecaudit</groupId>
<artifactId>parent_c3.0</artifactId>
<version>2.12.0-SNAPSHOT</version>
<artifactId>parent_c3.11</artifactId>
<version>3.1.0-SNAPSHOT</version>
</parent>
<artifactId>common_c3.0</artifactId>
<artifactId>common_c3.11</artifactId>
<packaging>jar</packaging>

<name>Ericsson Cassandra Audit - Common</name>
Expand Down
5 changes: 5 additions & 0 deletions conf/audit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,8 @@ whitelist_cache_update_interval_in_ms: 20000
# Maximum number of entries in the whitelist cache
# Default to 10 x the value of roles_cache_max_entries (specified in cassandra.yaml)
whitelist_cache_max_entries: 10000

# Whether to suppress the auditing of prepare statements
# Default is to suppress the audit statements this is to match the previous versions which do not audit prepare statements

suppress_prepare_statements: true
4 changes: 2 additions & 2 deletions doc/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ This may add as much as 20% overhead.

This cassandra-stress chart illustrates typical performance impact of ecAudit:

* [Throughput](https://rawgit.com/Ericsson/ecaudit/release/c3.0/doc/ecaudit-performance.html)
* [Latency](https://rawgit.com/Ericsson/ecaudit/release/c3.0/doc/ecaudit-performance.html?metric=mean)
* [Throughput](https://rawgit.com/Ericsson/ecaudit/master/doc/ecaudit-performance.html)
* [Latency](https://rawgit.com/Ericsson/ecaudit/master/doc/ecaudit-performance.html?metric=mean)

Refer to the guides of Logback settings, authentication caches and whitelist settings to get best possible performance.

Expand Down
2 changes: 1 addition & 1 deletion doc/ecaudit-performance.html

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion doc/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ Visit the [sertup guide](setup.md) for a detailed list of options.
## Deploy Plug-In Jar File

Place the ecAudit jar file in your ```$CASSANDRA_HOME/lib/``` directory.
Get the official releases from [Maven Central](https://search.maven.org/search?q=g:%22com.ericsson.bss.cassandra.ecaudit%22%20AND%20a:%22ecaudit_c3.0%22).
Get the official releases from [Maven Central](https://search.maven.org/search?q=g:%22com.ericsson.bss.cassandra.ecaudit%22%20AND%20a:%22ecaudit_c3.11%22).


## Enable Plug-In

Expand Down
11 changes: 6 additions & 5 deletions doc/slf4j_logger.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ In the following sections you'll find examples on how to configure the SLF4J log

To configure a custom log message format the following parameters can be configured in the ```audit.yaml``` file:

| Parameter | Description | Default |
| ----------- | ----------------------------------------------------------------- | --------------- |
| log_format | Parameterized log message formatting string, see examples below | the "legacy" format, see [README](../README.md) |
| time_format | time formatter pattern, see examples below or [DateTimeFormatter](https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html#patterns) | number of millis since EPOCH |
| time_zone | the time zone id, see examples below or [ZoneId](https://docs.oracle.com/javase/8/docs/api/java/time/ZoneId.html#of-java.lang.String-) | system default |
| Parameter | Description | Default |
|-------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------|
| log_format | Parameterized log message formatting string, see examples below | the "legacy" format, see [README](../README.md) |
| time_format | time formatter pattern, see examples below or [DateTimeFormatter](https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html#patterns) | number of millis since EPOCH |
| time_zone | the time zone id, see examples below or [ZoneId](https://docs.oracle.com/javase/8/docs/api/java/time/ZoneId.html#of-java.lang.String-) | system default |
| escape_characters | A comma separated list containing characters that should be escaped (using \\). The characters will be escaped in USER, SUBJECT, OPERATION and OPERATION_NAKED fields. | No escaping |

It is possible to configure a parameterized log message by providing a formatting string.
The following fields are available:
Expand Down
6 changes: 3 additions & 3 deletions ecaudit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.ericsson.bss.cassandra.ecaudit</groupId>
<artifactId>parent_c3.0</artifactId>
<version>2.12.0-SNAPSHOT</version>
<artifactId>parent_c3.11</artifactId>
<version>3.1.0-SNAPSHOT</version>
</parent>
<artifactId>ecaudit_c3.0</artifactId>
<artifactId>ecaudit_c3.11</artifactId>
<packaging>jar</packaging>

<name>Ericsson Cassandra Audit - Plug-in</name>
Expand Down
Loading
Loading