Skip to content

Commit 132096c

Browse files
author
Pratik Lala
committed
Add LICENSE, CODE_OF_CONDUCT, and SECURITY policy files
- LICENSE: Apache License 2.0 (was missing from repo root) - CODE_OF_CONDUCT.md: Contributor Covenant v2.1 - SECURITY.md: private vulnerability reporting via GitHub advisories, supported versions table, and security best practices for consumers Made-with: Cursor
1 parent 11e4ff7 commit 132096c

File tree

3 files changed

+292
-0
lines changed

3 files changed

+292
-0
lines changed

CODE_OF_CONDUCT.md

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
6+
7+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8+
9+
## Our Standards
10+
11+
Examples of behavior that contributes to a positive environment for our community include:
12+
13+
* Demonstrating empathy and kindness toward other people
14+
* Being respectful of differing opinions, viewpoints, and experiences
15+
* Giving and gracefully accepting constructive feedback
16+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17+
* Focusing on what is best not just for us as individuals, but for the overall community
18+
19+
Examples of unacceptable behavior include:
20+
21+
* The use of sexualized language or imagery, and sexual attention or advances of any kind
22+
* Trolling, insulting or derogatory comments, and personal or political attacks
23+
* Public or private harassment
24+
* Publishing others' private information, such as a physical or email address, without their explicit permission
25+
* Other conduct which could reasonably be considered inappropriate in a professional setting
26+
27+
## Enforcement Responsibilities
28+
29+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
32+
33+
## Scope
34+
35+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
36+
37+
## Enforcement
38+
39+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening a [GitHub Issue](https://github.com/intuit/json2jsontransformer/issues) or contacting the maintainers directly via GitHub. All complaints will be reviewed and investigated promptly and fairly.
40+
41+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
42+
43+
## Enforcement Guidelines
44+
45+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
46+
47+
### 1. Correction
48+
49+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
50+
51+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
52+
53+
### 2. Warning
54+
55+
**Community Impact**: A violation through a single incident or series of actions.
56+
57+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
58+
59+
### 3. Temporary Ban
60+
61+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
62+
63+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
64+
65+
### 4. Permanent Ban
66+
67+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
68+
69+
**Consequence**: A permanent ban from any sort of public interaction within the community.
70+
71+
## Attribution
72+
73+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
74+
75+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
76+
77+
[homepage]: https://www.contributor-covenant.org
78+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
79+
[Mozilla CoC]: https://github.com/mozilla/diversity
80+
[FAQ]: https://www.contributor-covenant.org/faq
81+
[translations]: https://www.contributor-covenant.org/translations

LICENSE

Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
Apache License
2+
Version 2.0, January 2004
3+
http://www.apache.org/licenses/
4+
5+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6+
7+
1. Definitions.
8+
9+
"License" shall mean the terms and conditions for use, reproduction,
10+
and distribution as defined by Sections 1 through 9 of this document.
11+
12+
"Licensor" shall mean the copyright owner or entity authorized by
13+
the copyright owner that is granting the License.
14+
15+
"Legal Entity" shall mean the union of the acting entity and all
16+
other entities that control, are controlled by, or are under common
17+
control with that entity. For the purposes of this definition,
18+
"control" means (i) the power, direct or indirect, to cause the
19+
direction or management of such entity, whether by contract or
20+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
21+
outstanding shares, or (iii) beneficial ownership of such entity.
22+
23+
"You" (or "Your") shall mean an individual or Legal Entity
24+
exercising permissions granted by this License.
25+
26+
"Source" form shall mean the preferred form for making modifications,
27+
including but not limited to software source code, documentation
28+
source, and configuration files.
29+
30+
"Object" form shall mean any form resulting from mechanical
31+
transformation or translation of a Source form, including but
32+
not limited to compiled object code, generated documentation,
33+
and conversions to other media types.
34+
35+
"Work" shall mean the work of authorship made available under
36+
the License, as indicated by a copyright notice that is included in
37+
or attached to the work (an example is provided in the Appendix below).
38+
39+
"Derivative Works" shall mean any work, whether in Source or Object
40+
form, that is based on (or derived from) the Work and for which the
41+
editorial revisions, annotations, elaborations, or other modifications
42+
represent, as a whole, an original work of authorship. For the purposes
43+
of this License, Derivative Works shall not include works that remain
44+
separable from, or merely link (or bind by name) to the interfaces of,
45+
the Work and Derivative Works thereof.
46+
47+
"Contribution" shall mean, as submitted to the Licensor for inclusion
48+
in the Work by the copyright owner or by an individual or Legal Entity
49+
authorized to submit on behalf of the copyright owner. For the purposes
50+
of this definition, "submitted" means any form of electronic, verbal,
51+
or written communication sent to the Licensor or its representatives,
52+
including but not limited to communication on electronic mailing lists,
53+
source code control systems, and issue tracking systems that are managed
54+
by, or on behalf of, the Licensor for the purpose of discussing and
55+
improving the Work, but excluding communication that is conspicuously
56+
marked or designated in writing by the copyright owner as "Not a
57+
Contribution."
58+
59+
"Contributor" shall mean Licensor and any Legal Entity on behalf of
60+
whom a Contribution has been received by the Licensor and incorporated
61+
within the Work.
62+
63+
2. Grant of Copyright License. Subject to the terms and conditions of
64+
this License, each Contributor hereby grants to You a perpetual,
65+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
66+
copyright license to reproduce, prepare Derivative Works of,
67+
publicly display, publicly perform, sublicense, and distribute the
68+
Work and such Derivative Works in Source or Object form.
69+
70+
3. Grant of Patent License. Subject to the terms and conditions of
71+
this License, each Contributor hereby grants to You a perpetual,
72+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
73+
(except as stated in this section) patent license to make, have made,
74+
use, offer to sell, sell, import, and otherwise transfer the Work,
75+
where such license applies only to those patent claims licensable
76+
by such Contributor that are necessarily infringed by their
77+
Contribution(s) alone or by the combined work (in which such
78+
Contribution(s) was submitted). If You institute patent litigation
79+
against any entity (including a cross-claim or counterclaim in a
80+
lawsuit) alleging that the Work or any Contribution embodied within
81+
the Work constitutes direct or contributory patent infringement,
82+
then any patent licenses granted to You under this License for that
83+
Work shall terminate as of the date such litigation is filed.
84+
85+
4. Redistribution. You may reproduce and distribute copies of the
86+
Work or Derivative Works thereof in any medium, with or without
87+
modifications, and in Source or Object form, provided that You
88+
meet the following conditions:
89+
90+
(a) You must give any other recipients of the Work or Derivative
91+
Works a copy of this License; and
92+
93+
(b) You must cause any modified files to carry prominent notices
94+
stating that You changed the files; and
95+
96+
(c) You must retain, in the Source form of any Derivative Works
97+
that You distribute, all copyright, patent, trademark, and
98+
attribution notices from the Source form of the Work,
99+
excluding those notices that do not pertain to any part of
100+
the Derivative Works; and
101+
102+
(d) If the Work includes a "NOTICE" text file as part of its
103+
distribution, You must include a readable copy of the
104+
attribution notices contained within such NOTICE file, in
105+
at least one of the following places: within a NOTICE text
106+
file distributed as part of the Derivative Works; within
107+
the Source form or documentation, if provided along with the
108+
Derivative Works; or, within a display generated by the
109+
Derivative Works, if and wherever such third-party notices
110+
normally appear. The contents of the NOTICE file are for
111+
informational purposes only and do not modify the License.
112+
You may add Your own attribution notices within Derivative
113+
Works that You distribute, alongside or in addition to the
114+
NOTICE text from the Work, provided that such additional
115+
attribution notices cannot be construed as modifying the
116+
License.
117+
118+
You may add Your own license statement for Your modifications and
119+
may provide additional grant of rights to use, copy, modify, merge,
120+
publish, distribute, sublicense, and/or sell copies of the
121+
Contribution, either on its own or as part of the Work, provided
122+
that Your use of the Work complies with the terms of this License.
123+
124+
5. Submission of Contributions. Unless You explicitly state otherwise,
125+
any Contribution intentionally submitted for inclusion in the Work
126+
by You to the Licensor shall be under the terms and conditions of
127+
this License, without any additional terms or conditions.
128+
Notwithstanding the above, nothing herein shall supersede or modify
129+
the terms of any separate license agreement you may have executed
130+
with Licensor regarding such Contributions.
131+
132+
6. Trademarks. This License does not grant permission to use the trade
133+
names, trademarks, service marks, or product names of the Licensor,
134+
except as required for reasonable and customary use in describing the
135+
origin of the Work and reproducing the content of the NOTICE file.
136+
137+
7. Disclaimer of Warranty. Unless required by applicable law or
138+
agreed to in writing, Licensor provides the Work (and each
139+
Contributor provides its Contributions) on an "AS IS" BASIS,
140+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
141+
implied, including, without limitation, any conditions of TITLE,
142+
MERCHANTIBILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely
143+
responsible for determining the appropriateness of using or
144+
redistributing the Work and assume any risks associated with Your
145+
exercise of permissions under this License.
146+
147+
8. Limitation of Liability. In no event and under no legal theory,
148+
whether in tort (including negligence), contract, or otherwise,
149+
unless required by applicable law (such as deliberate and grossly
150+
negligent acts) or agreed to in writing, shall any Contributor be
151+
liable to You for damages, including any direct, indirect, special,
152+
incidental, or exemplary damages of any character arising as a
153+
result of this License or out of the use or inability to use the
154+
Work (including but not limited to damages for loss of goodwill,
155+
work stoppage, computer failure or malfunction, or all other
156+
commercial damages or losses), even if such Contributor has been
157+
advised of the possibility of such damages.
158+
159+
9. Accepting Warranty or Additional Liability. While redistributing
160+
the Work or Derivative Works thereof, You may choose to offer,
161+
and charge a fee for, acceptance of support, warranty, indemnity,
162+
or other liability obligations and/or rights consistent with this
163+
License. However, in accepting such obligations, You may offer only
164+
conditions consistent with this License.
165+
166+
END OF TERMS AND CONDITIONS
167+
168+
Copyright 2024 Intuit Inc.
169+
170+
Licensed under the Apache License, Version 2.0 (the "License");
171+
you may not use this file except in compliance with the License.
172+
You may obtain a copy of the License at
173+
174+
http://www.apache.org/licenses/LICENSE-2.0
175+
176+
Unless required by applicable law or agreed to in writing, software
177+
distributed under the License is distributed on an "AS IS" BASIS,
178+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
179+
See the License for the specific language governing permissions and
180+
limitations under the License.

SECURITY.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Security Policy
2+
3+
## Reporting a Vulnerability
4+
5+
If you discover a security vulnerability in json2jsontransformer, please report it responsibly.
6+
7+
**Do not open a public GitHub issue for security vulnerabilities.**
8+
9+
Instead, please use [GitHub's private vulnerability reporting](https://github.com/intuit/json2jsontransformer/security/advisories/new) and include:
10+
11+
- A description of the vulnerability
12+
- Steps to reproduce the issue
13+
- Any relevant logs or configuration snippets
14+
- Your assessment of the severity
15+
16+
We will acknowledge receipt within 48 hours and aim to provide a fix or mitigation plan within 7 days.
17+
18+
## Supported Versions
19+
20+
| Version | Supported |
21+
|---------|-----------|
22+
| 1.x | Yes |
23+
24+
## Security Best Practices
25+
26+
When using json2jsontransformer in your projects:
27+
28+
1. **Keep the dependency updated** — check [Maven Central](https://central.sonatype.com/artifact/com.intuit.json2jsontransformer/json2jsontransformer) regularly for new releases that include dependency updates.
29+
2. **Review config files** — transformation config JSON files are loaded from the classpath; ensure they do not contain sensitive path patterns or credentials.
30+
3. **Validate input JSON** — the library does not sanitize input; validate and sanitize JSON payloads before passing them to `JsonTransformer.transformJson()`.
31+
4. **Custom transformers** — transformation classes are loaded by fully-qualified class name via reflection; only reference trusted classes in `transformation_class` config fields.

0 commit comments

Comments
 (0)