{"id":21101235,"url":"https://github.com/create1st/logback-masked-fields","last_synced_at":"2026-04-22T08:31:54.718Z","repository":{"id":38217411,"uuid":"361015643","full_name":"create1st/logback-masked-fields","owner":"create1st","description":"Logback layout to obscure confidential or secure information","archived":false,"fork":false,"pushed_at":"2023-01-17T20:02:23.000Z","size":32,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-01T01:45:08.590Z","etag":null,"topics":["logback","logging"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/create1st.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-23T22:05:02.000Z","updated_at":"2021-04-30T14:01:09.000Z","dependencies_parsed_at":"2023-02-10T11:45:55.196Z","dependency_job_id":null,"html_url":"https://github.com/create1st/logback-masked-fields","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/create1st/logback-masked-fields","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/create1st%2Flogback-masked-fields","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/create1st%2Flogback-masked-fields/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/create1st%2Flogback-masked-fields/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/create1st%2Flogback-masked-fields/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/create1st","download_url":"https://codeload.github.com/create1st/logback-masked-fields/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/create1st%2Flogback-masked-fields/sbom","scorecard":{"id":308040,"data":{"date":"2025-08-11","repo":{"name":"github.com/create1st/logback-masked-fields","commit":"816b55686a96358903295d5f95a67d2b5fffe802"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/8 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T22:34:49.805Z","repository_id":38217411,"created_at":"2025-08-17T22:34:49.806Z","updated_at":"2025-08-17T22:34:49.806Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32127862,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T07:37:52.372Z","status":"ssl_error","status_checked_at":"2026-04-22T07:37:51.635Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["logback","logging"],"created_at":"2024-11-19T23:43:34.860Z","updated_at":"2026-04-22T08:31:54.703Z","avatar_url":"https://github.com/create1st.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e    \n \u003cimg src=\"https://img.shields.io/github/license/create1st/logback-masked-fields.svg\" align=\"left\" /\u003e\n \u003cimg src=\"https://img.shields.io/badge/Logback-green.svg\" align=\"left\" /\u003e\n \u003cimg src=\"https://img.shields.io/badge/PRs-welcome-green.svg\" align=\"left\" /\u003e\n\u003c/div\u003e\n\n# logback-masked-fields\nLogback layout to obscure confidential or secure information\n\nMaven\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.craftandtechnology\u003c/groupId\u003e\n  \u003cartifactId\u003elogback-masked-fields\u003c/artifactId\u003e\n  \u003cversion\u003e1.3.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nGradle\n```kotlin\nimplementation(\"com.craftandtechnology:logback-masked-fields:1.3.0\")\n```\n\nEach class containing confidential information should have a dedicated formatter defined and this formatter shall be part of the Logback configuration\n\nSample argument formatter\n```java\npublic class UserDataFormatter implements ArgumentFormatter {\n    private final PatternArgumentFormatter patternArgumentFormatter = new PatternArgumentFormatter(CONFIDENTIAL_DATA_REGEX);\n\n    @Override\n    public Class\u003c?\u003e getSupportedClass() {\n        return UserData.class;\n    }\n\n    @Override\n    public Object formatArgument(Object argument) {\n        return patternArgumentFormatter.formatArgument(argument);\n    }\n}\n```\n\nSample Logback configuration\n\n```xml\n\u003cconfiguration\u003e\n    \u003cappender name=\"STDOUT\" class=\"ch.qos.logback.core.ConsoleAppender\"\u003e\n        \u003clayout class=\"com.craftandtechnology.logging.MaskingPatternLayout\"\u003e\n            \u003cpattern\u003e%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n\u003c/pattern\u003e\n            \u003cargumentFormatter\u003ecom.craftandtechnology.logging.ConfidentialDataFormatter\u003c/argumentFormatter\u003e\n            \u003cargumentFormatter\u003ecom.craftandtechnology.logging.UserDataFormatter\u003c/argumentFormatter\u003e\n        \u003c/layout\u003e\n    \u003c/appender\u003e\n\n    \u003croot level=\"info\"\u003e\n        \u003cappender-ref ref=\"STDOUT\" /\u003e\n    \u003c/root\u003e\n\u003c/configuration\u003e\n```\n\n```Java\npublic class MaskingPatternLayoutDemoTest {\n    private final static Logger logger = LoggerFactory.getLogger(MaskingPatternLayoutDemoTest.class);\n\n    @Test\n    void simpleTestOutput() {\n        logger.info(\"Test : {}\", userData());\n    }\n}\n```\n\n```log\n11:31:25.878 [Test worker] INFO  c.c.MaskingPatternLayoutDemoTest - Test : UserData(confidentialData=ConfidentialData(clientId=*****, clientName=*****), nonConfidentialData=NonConfidentalData(transactionId=someTransactionId, amount=10, transactionDate=2021-04-24))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreate1st%2Flogback-masked-fields","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcreate1st%2Flogback-masked-fields","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreate1st%2Flogback-masked-fields/lists"}