Skip to content

Commit 98771ba

Browse files
authored
feat(RED-DA): enable access banner by default (#5830)
* feat(RED-DA): enable access banner by default * chore: add banner options to checkstyle suppressions * chore: add suppressions.xml to copyright-check exceptions
1 parent dc23d9b commit 98771ba

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/copyright-config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ template_xml: |2
3030
ignore:
3131
- target-platform/
3232
- kura/test/org.eclipse.kura.core.configuration.test/src/test/resources/
33+
- suppressions.xml

kura/org.eclipse.kura.core.identity/src/main/java/org/eclipse/kura/core/identity/LoginBannerServiceOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525

2626
@AttributeDefinition(name = "Pre Login Banner Enabled", //
2727
description = "If enabled, a customizable banner will be shown before user login.")
28-
public boolean pre_login_banner_enabled() default false;
28+
public boolean pre_login_banner_enabled() default true;
2929

3030
@AttributeDefinition(name = "Pre Login Banner Content", //
3131
description = "The message to be shown in the pre login banner, if the feature is enabled.|TextArea")
32-
public String pre_login_banner_content() default "Sample Banner Content";
32+
public String pre_login_banner_content() default "WARNING: This is a secure system. The details of this login attempt have been recorded for future inspection by the system administrator. Log out now if you are not authorized to use this device.";
3333

3434
@AttributeDefinition(name = "Post Login Banner Enabled", //
3535
description = "If enabled, a customizable banner will be shown after successful user login.")

suppressions.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<suppress checks=".*" files=".*generated-sources[\\/]"/>
77
<suppress checks="FileLength" files="NetworkConfiguration.java"/>
88
<suppress checks="InterfaceIsType" files="FirewallConfigurationServiceIPv6.java"/>
9+
<suppress checks="LineLength" files="LoginBannerServiceOptions.java"/>
910

1011
<!-- suppress checks on autogenerated dbus interfacing sources -->
1112
<suppress checks="." files="kura[\\/]org.eclipse.kura.nm[\\/]src[\\/]main[\\/]java[\\/]org[\\/]freedesktop[\\/]"/>

0 commit comments

Comments
 (0)