-
Notifications
You must be signed in to change notification settings - Fork 292
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
Add support for user tracking in spring security #7633
Conversation
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 49 metrics, 14 unstable metrics. Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.40.0-SNAPSHOT~f063945952, baseline=1.40.0-SNAPSHOT~8ee4a5d6dd
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.075 s) : 0, 1075218
Total [baseline] (10.437 s) : 0, 10437038
Agent [candidate] (1.066 s) : 0, 1066129
Total [candidate] (10.373 s) : 0, 10373191
section appsec
Agent [baseline] (1.202 s) : 0, 1202462
Total [baseline] (10.684 s) : 0, 10683634
Agent [candidate] (1.207 s) : 0, 1207078
Total [candidate] (10.665 s) : 0, 10665426
section iast
Agent [baseline] (1.209 s) : 0, 1208978
Total [baseline] (10.873 s) : 0, 10873397
Agent [candidate] (1.204 s) : 0, 1203703
Total [candidate] (10.835 s) : 0, 10834778
section profiling
Agent [baseline] (1.273 s) : 0, 1272699
Total [baseline] (10.611 s) : 0, 10610583
Agent [candidate] (1.28 s) : 0, 1280105
Total [candidate] (10.595 s) : 0, 10595073
gantt
title petclinic - break down per module: candidate=1.40.0-SNAPSHOT~f063945952, baseline=1.40.0-SNAPSHOT~8ee4a5d6dd
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (685.966 ms) : 0, 685966
BytebuddyAgent [candidate] (680.11 ms) : 0, 680110
GlobalTracer [baseline] (312.583 ms) : 0, 312583
GlobalTracer [candidate] (309.992 ms) : 0, 309992
AppSec [baseline] (54.46 ms) : 0, 54460
AppSec [candidate] (53.944 ms) : 0, 53944
Remote Config [baseline] (675.637 µs) : 0, 676
Remote Config [candidate] (663.983 µs) : 0, 664
Telemetry [baseline] (7.754 ms) : 0, 7754
Telemetry [candidate] (7.686 ms) : 0, 7686
section appsec
BytebuddyAgent [baseline] (702.692 ms) : 0, 702692
BytebuddyAgent [candidate] (705.591 ms) : 0, 705591
GlobalTracer [baseline] (303.65 ms) : 0, 303650
GlobalTracer [candidate] (304.886 ms) : 0, 304886
AppSec [baseline] (163.637 ms) : 0, 163637
AppSec [candidate] (163.364 ms) : 0, 163364
Remote Config [baseline] (655.634 µs) : 0, 656
Remote Config [candidate] (643.85 µs) : 0, 644
Telemetry [baseline] (7.838 ms) : 0, 7838
Telemetry [candidate] (8.524 ms) : 0, 8524
IAST [baseline] (20.602 ms) : 0, 20602
IAST [candidate] (20.579 ms) : 0, 20579
section iast
BytebuddyAgent [baseline] (804.044 ms) : 0, 804044
BytebuddyAgent [candidate] (801.08 ms) : 0, 801080
GlobalTracer [baseline] (303.859 ms) : 0, 303859
GlobalTracer [candidate] (301.894 ms) : 0, 301894
AppSec [baseline] (54.818 ms) : 0, 54818
AppSec [candidate] (55.432 ms) : 0, 55432
Remote Config [baseline] (597.589 µs) : 0, 598
Remote Config [candidate] (605.206 µs) : 0, 605
Telemetry [baseline] (7.104 ms) : 0, 7104
Telemetry [candidate] (7.048 ms) : 0, 7048
IAST [baseline] (24.704 ms) : 0, 24704
IAST [candidate] (23.754 ms) : 0, 23754
section profiling
ProfilingAgent [baseline] (96.882 ms) : 0, 96882
ProfilingAgent [candidate] (97.945 ms) : 0, 97945
BytebuddyAgent [baseline] (678.712 ms) : 0, 678712
BytebuddyAgent [candidate] (681.506 ms) : 0, 681506
GlobalTracer [baseline] (395.24 ms) : 0, 395240
GlobalTracer [candidate] (398.21 ms) : 0, 398210
AppSec [baseline] (54.687 ms) : 0, 54687
AppSec [candidate] (55.002 ms) : 0, 55002
Remote Config [baseline] (652.824 µs) : 0, 653
Remote Config [candidate] (681.978 µs) : 0, 682
Telemetry [baseline] (7.503 ms) : 0, 7503
Telemetry [candidate] (7.617 ms) : 0, 7617
Profiling [baseline] (96.906 ms) : 0, 96906
Profiling [candidate] (97.969 ms) : 0, 97969
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.40.0-SNAPSHOT~f063945952, baseline=1.40.0-SNAPSHOT~8ee4a5d6dd
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.07 s) : 0, 1069933
Total [baseline] (8.604 s) : 0, 8604413
Agent [candidate] (1.072 s) : 0, 1071716
Total [candidate] (8.566 s) : 0, 8565885
section iast
Agent [baseline] (1.191 s) : 0, 1190564
Total [baseline] (8.999 s) : 0, 8998800
Agent [candidate] (1.2 s) : 0, 1200154
Total [candidate] (9.058 s) : 0, 9058391
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.202 s) : 0, 1202188
Total [baseline] (9.01 s) : 0, 9009600
Agent [candidate] (1.196 s) : 0, 1196267
Total [candidate] (9.041 s) : 0, 9041017
section iast_TELEMETRY_OFF
Agent [baseline] (1.192 s) : 0, 1191669
Total [baseline] (9.08 s) : 0, 9080006
Agent [candidate] (1.192 s) : 0, 1192079
Total [candidate] (9.022 s) : 0, 9022251
gantt
title insecure-bank - break down per module: candidate=1.40.0-SNAPSHOT~f063945952, baseline=1.40.0-SNAPSHOT~8ee4a5d6dd
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (682.462 ms) : 0, 682462
BytebuddyAgent [candidate] (683.668 ms) : 0, 683668
GlobalTracer [baseline] (311.231 ms) : 0, 311231
GlobalTracer [candidate] (311.653 ms) : 0, 311653
AppSec [baseline] (54.163 ms) : 0, 54163
AppSec [candidate] (54.211 ms) : 0, 54211
Remote Config [baseline] (677.328 µs) : 0, 677
Remote Config [candidate] (663.522 µs) : 0, 664
Telemetry [baseline] (7.663 ms) : 0, 7663
Telemetry [candidate] (7.742 ms) : 0, 7742
section iast
BytebuddyAgent [baseline] (792.432 ms) : 0, 792432
BytebuddyAgent [candidate] (799.66 ms) : 0, 799660
GlobalTracer [baseline] (298.542 ms) : 0, 298542
GlobalTracer [candidate] (300.656 ms) : 0, 300656
AppSec [baseline] (55.532 ms) : 0, 55532
AppSec [candidate] (55.872 ms) : 0, 55872
IAST [baseline] (22.663 ms) : 0, 22663
IAST [candidate] (22.332 ms) : 0, 22332
Remote Config [baseline] (623.01 µs) : 0, 623
Remote Config [candidate] (623.722 µs) : 0, 624
Telemetry [baseline] (6.999 ms) : 0, 6999
Telemetry [candidate] (7.108 ms) : 0, 7108
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (799.908 ms) : 0, 799908
BytebuddyAgent [candidate] (793.194 ms) : 0, 793194
GlobalTracer [baseline] (301.08 ms) : 0, 301080
GlobalTracer [candidate] (301.67 ms) : 0, 301670
AppSec [baseline] (51.582 ms) : 0, 51582
AppSec [candidate] (53.237 ms) : 0, 53237
IAST [baseline] (27.212 ms) : 0, 27212
IAST [candidate] (26.565 ms) : 0, 26565
Remote Config [baseline] (619.825 µs) : 0, 620
Remote Config [candidate] (632.859 µs) : 0, 633
Telemetry [baseline] (7.886 ms) : 0, 7886
Telemetry [candidate] (7.151 ms) : 0, 7151
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (791.07 ms) : 0, 791070
BytebuddyAgent [candidate] (791.566 ms) : 0, 791566
GlobalTracer [baseline] (300.906 ms) : 0, 300906
GlobalTracer [candidate] (300.615 ms) : 0, 300615
AppSec [baseline] (53.779 ms) : 0, 53779
AppSec [candidate] (56.976 ms) : 0, 56976
IAST [baseline] (24.441 ms) : 0, 24441
IAST [candidate] (21.581 ms) : 0, 21581
Remote Config [baseline] (630.987 µs) : 0, 631
Remote Config [candidate] (610.884 µs) : 0, 611
Telemetry [baseline] (7.015 ms) : 0, 7015
Telemetry [candidate] (6.887 ms) : 0, 6887
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 10 metrics, 18 unstable metrics. Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.40.0-SNAPSHOT~f063945952, baseline=1.40.0-SNAPSHOT~8ee4a5d6dd
dateFormat X
axisFormat %s
section baseline
no_agent (1.349 ms) : 1329, 1369
. : milestone, 1349,
appsec (1.705 ms) : 1680, 1730
. : milestone, 1705,
appsec_no_iast (1.717 ms) : 1693, 1741
. : milestone, 1717,
iast (1.488 ms) : 1466, 1510
. : milestone, 1488,
profiling (1.511 ms) : 1487, 1535
. : milestone, 1511,
tracing (1.46 ms) : 1436, 1485
. : milestone, 1460,
section candidate
no_agent (1.342 ms) : 1323, 1361
. : milestone, 1342,
appsec (1.718 ms) : 1694, 1742
. : milestone, 1718,
appsec_no_iast (1.723 ms) : 1700, 1746
. : milestone, 1723,
iast (1.49 ms) : 1469, 1512
. : milestone, 1490,
profiling (1.503 ms) : 1477, 1529
. : milestone, 1503,
tracing (1.457 ms) : 1434, 1481
. : milestone, 1457,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.40.0-SNAPSHOT~f063945952, baseline=1.40.0-SNAPSHOT~8ee4a5d6dd
dateFormat X
axisFormat %s
section baseline
no_agent (376.772 µs) : 357, 397
. : milestone, 377,
iast (476.856 µs) : 456, 498
. : milestone, 477,
iast_FULL (546.246 µs) : 525, 567
. : milestone, 546,
iast_GLOBAL (502.751 µs) : 481, 524
. : milestone, 503,
iast_HARDCODED_SECRET_DISABLED (482.002 µs) : 461, 503
. : milestone, 482,
iast_INACTIVE (443.785 µs) : 423, 464
. : milestone, 444,
iast_TELEMETRY_OFF (473.894 µs) : 452, 496
. : milestone, 474,
tracing (441.141 µs) : 421, 462
. : milestone, 441,
section candidate
no_agent (370.259 µs) : 350, 390
. : milestone, 370,
iast (478.96 µs) : 457, 501
. : milestone, 479,
iast_FULL (547.94 µs) : 527, 569
. : milestone, 548,
iast_GLOBAL (503.598 µs) : 482, 525
. : milestone, 504,
iast_HARDCODED_SECRET_DISABLED (483.988 µs) : 463, 505
. : milestone, 484,
iast_INACTIVE (445.768 µs) : 425, 467
. : milestone, 446,
iast_TELEMETRY_OFF (472.883 µs) : 450, 496
. : milestone, 473,
tracing (442.413 µs) : 422, 463
. : milestone, 442,
DacapoParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 11 metrics, 1 unstable metrics. Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.40.0-SNAPSHOT~f063945952, baseline=1.40.0-SNAPSHOT~8ee4a5d6dd
dateFormat X
axisFormat %s
section baseline
no_agent (1.473 ms) : 1462, 1485
. : milestone, 1473,
appsec (2.332 ms) : 2291, 2373
. : milestone, 2332,
iast (2.071 ms) : 2020, 2121
. : milestone, 2071,
iast_GLOBAL (2.112 ms) : 2061, 2163
. : milestone, 2112,
profiling (1.934 ms) : 1893, 1975
. : milestone, 1934,
tracing (1.908 ms) : 1869, 1946
. : milestone, 1908,
section candidate
no_agent (1.462 ms) : 1451, 1474
. : milestone, 1462,
appsec (2.33 ms) : 2289, 2371
. : milestone, 2330,
iast (2.066 ms) : 2015, 2117
. : milestone, 2066,
iast_GLOBAL (2.119 ms) : 2067, 2170
. : milestone, 2119,
profiling (2.431 ms) : 2242, 2620
. : milestone, 2431,
tracing (1.904 ms) : 1865, 1942
. : milestone, 1904,
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.40.0-SNAPSHOT~f063945952, baseline=1.40.0-SNAPSHOT~8ee4a5d6dd
dateFormat X
axisFormat %s
section baseline
no_agent (15.308 s) : 15308000, 15308000
. : milestone, 15308000,
appsec (15.485 s) : 15485000, 15485000
. : milestone, 15485000,
iast (18.863 s) : 18863000, 18863000
. : milestone, 18863000,
iast_GLOBAL (18.147 s) : 18147000, 18147000
. : milestone, 18147000,
profiling (15.31 s) : 15310000, 15310000
. : milestone, 15310000,
tracing (15.13 s) : 15130000, 15130000
. : milestone, 15130000,
section candidate
no_agent (15.127 s) : 15127000, 15127000
. : milestone, 15127000,
appsec (15.385 s) : 15385000, 15385000
. : milestone, 15385000,
iast (18.763 s) : 18763000, 18763000
. : milestone, 18763000,
iast_GLOBAL (17.884 s) : 17884000, 17884000
. : milestone, 17884000,
profiling (15.13 s) : 15130000, 15130000
. : milestone, 15130000,
tracing (15.165 s) : 15165000, 15165000
. : milestone, 15165000,
|
ae12453
to
89c4527
Compare
d3344e8
to
23466e6
Compare
d05d199
to
301a996
Compare
c834000
to
fff9d35
Compare
301a996
to
97a3ab9
Compare
97a3ab9
to
10291fb
Compare
@Bean | ||
UserDetailsManager userDetailsService() { | ||
return new JdbcUserDetailsManager(dataSource) | ||
return new InMemoryUserDetailsManager() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvement! 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM on a cursory read for IDM
0ecd8e1
to
f063945
Compare
f063945
to
a7cf8c6
Compare
What Does This Do
Enables automatic user tracking on spring security 5 and 6. It also separates the tests for spring-security 5 and 6 so
latestDepTest
tasks can be added to validate newer versions of the framework.Motivation
With the introduction of automated user login and signup events, and the different features to ensure customers are well in control of the information sent to Datadog, the next natural step is to extend this functionality to not only track login and signup events, but also track authenticated users in general.
Additional Notes
Contributor Checklist
type:
and (comp:
orinst:
) labels in addition to any usefull labelsclose
,fix
or any linking keywords when referencing an issue.Use
solves
instead, and assign the PR milestone to the issueJira ticket: APPSEC-54936