Skip to content

Commit 375cdb6

Browse files
authored
[Kernel OSS Readiness] Add community health files and templates (#495)
## Description Prepare the kernel repository for public contributions using the established Databricks OSS JDBC conventions, adapted for Rust and Cargo. This adds contribution and conduct guidance, the DCO text already enforced by CI, a security reporting policy, and focused pull-request and issue templates. The README receives only the agreed minimal updates: it records the author's confirmation that the native Rust API is production-ready while its public API may still make breaking changes, and it states that the custom C ABI remains under development. It identifies Rust ADBC as experimental, unsupported, and unpublished, and links the new community, security, and support channels. The ADBC manifest and packaging docs now make clear that publication requires a separate future decision rather than following automatically from repository visibility. ## Testing - `git diff --check` - Databricks pre-commit, pre-push, and commit-message secret scanning - Verified `adbc/Cargo.toml` retains `publish = false` - Verified the documents contain no JDBC/Java-specific leftovers and reference the kernel's existing build workflow ## Additional notes The security policy follows the existing public `databricks-sql-go` policy. No runtime code or release behavior changes. --------- Signed-off-by: Rahul Singhal <rahul.singhal@databricks.com>
1 parent ff1a915 commit 375cdb6

11 files changed

Lines changed: 301 additions & 7 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name: Bug report
3+
about: Report a problem with Databricks SQL Kernel
4+
title: "[BUG] "
5+
labels: ""
6+
assignees: ""
7+
---
8+
9+
## Description
10+
11+
Describe the problem and its impact.
12+
13+
## Steps to reproduce
14+
15+
Provide a minimal reproduction without credentials, customer data, or other
16+
sensitive information.
17+
18+
## Expected behavior
19+
20+
Describe what you expected to happen.
21+
22+
## Environment
23+
24+
- Kernel version:
25+
- Rust version:
26+
- Operating system and architecture:
27+
- Consuming driver or binding, if applicable:
28+
29+
## Additional context
30+
31+
Include redacted logs or other relevant details. For security vulnerabilities,
32+
follow [SECURITY.md](https://github.com/databricks/databricks-sql-kernel/blob/main/SECURITY.md)
33+
instead of opening a public issue.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Feature request
3+
about: Suggest an improvement to Databricks SQL Kernel
4+
title: "[FEATURE] "
5+
labels: ""
6+
assignees: ""
7+
---
8+
9+
## Problem
10+
11+
Describe the problem or use case.
12+
13+
## Proposed solution
14+
15+
Describe the behavior you would like.
16+
17+
## Alternatives
18+
19+
Describe alternatives or workarounds you have considered.
20+
21+
## Additional context
22+
23+
Add any other relevant details.

‎.github/PULL_REQUEST_TEMPLATE.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## Description
2+
3+
<!-- Describe what changed, why it is needed, and any related issue. -->
4+
5+
## Testing
6+
7+
<!-- Describe the tests and checks run for this change. -->
8+
9+
## Additional notes
10+
11+
<!-- Call out compatibility concerns, limitations, or areas needing focused review. -->

‎CODE_OF_CONDUCT.md‎

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

‎CONTRIBUTING.md‎

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Contributing to Databricks SQL Kernel
2+
3+
We welcome contributions to Databricks SQL Kernel. Use
4+
[GitHub Issues](https://github.com/databricks/databricks-sql-kernel/issues) to
5+
report bugs or discuss features, and
6+
[GitHub Pull Requests](https://github.com/databricks/databricks-sql-kernel/pulls)
7+
to propose changes.
8+
9+
## Communication
10+
11+
Before starting a major feature or a change to user-facing behavior, open an
12+
issue or contact [eng-oss-sql-driver@databricks.com](mailto:eng-oss-sql-driver@databricks.com)
13+
so that maintainers and contributors can align on the design. Small bug fixes
14+
and documentation improvements can be submitted directly as pull requests.
15+
16+
## Contribution workflow
17+
18+
1. Fork and clone the repository.
19+
2. Create a branch for your change.
20+
3. Add tests for behavioral changes.
21+
4. Run the checks described below.
22+
5. Commit with a DCO sign-off: `git commit -s`.
23+
6. Push your branch and open a pull request whose title follows
24+
`type(scope): description` conventional-commit syntax.
25+
26+
Maintainers will review the pull request. Please respond to feedback and keep
27+
the change focused on the issue it addresses.
28+
29+
## Build and test
30+
31+
Install the stable Rust toolchain. The cross-platform minimum checks are:
32+
33+
```bash
34+
cargo fmt --all -- --check
35+
cargo fmt --manifest-path adbc/Cargo.toml -- --check
36+
cargo clippy --all-targets -- -D warnings
37+
cargo clippy --manifest-path adbc/Cargo.toml --all-targets --features ffi -- -D warnings
38+
cargo test
39+
cargo test --manifest-path adbc/Cargo.toml --features ffi
40+
```
41+
42+
On a Unix-like system with `make`, a POSIX shell, and a C compiler available as
43+
`cc`, run `make check` instead. It includes the checks above plus native C ABI
44+
smoke tests that use `LD_LIBRARY_PATH` or `DYLD_LIBRARY_PATH`; this target is not
45+
native-Windows-compatible.
46+
47+
End-to-end tests that require a live Databricks connection are ignored by
48+
default. Do not include credentials, connection strings, customer data, or
49+
unredacted logs in issues or pull requests.
50+
51+
## Developer Certificate of Origin
52+
53+
Contributors must sign off every commit to certify that they have the right to
54+
submit the contribution under this project's license. The complete terms are
55+
in [DCO](DCO).
56+
57+
Configure your real name and email in Git, then sign commits with:
58+
59+
```bash
60+
git commit -s -m "Your commit message"
61+
```

‎DCO‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Developer's Certificate of Origin 1.1
2+
By making a contribution to this project, I certify that:
3+
(a) The contribution was created in whole or in part by me and I
4+
have the right to submit it under the open source license
5+
indicated in the file; or
6+
(b) The contribution is based upon previous work that, to the best
7+
of my knowledge, is covered under an appropriate open source
8+
license and I have the right under that license to submit that
9+
work with modifications, whether created in whole or in part
10+
by me, under the same open source license (unless I am
11+
permitted to submit under a different license), as indicated
12+
in the file; or
13+
(c) The contribution was provided directly to me by some other
14+
person who certified (a), (b) or (c) and I have not modified
15+
it.
16+
(d) I understand and agree that this project and the contribution
17+
are public and that a record of the contribution (including all
18+
personal information I submit with it, including my sign-off) is
19+
maintained indefinitely and may be redistributed consistent with
20+
this project or the open source license(s) involved.

‎README.md‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ not use FFI.
3232

3333
## Status
3434

35-
Early. Expect breaking changes.
35+
The native Rust API is production-ready. Its public APIs continue to evolve, so
36+
expect breaking changes. The custom C ABI remains under development.
37+
38+
The Rust ADBC implementation under [`adbc/`](adbc/) is experimental,
39+
unsupported, and not currently published or distributed.
3640

3741
## Building
3842

@@ -54,6 +58,14 @@ splitting, packaging, and binary-identity guidance.
5458

5559
See [CONNECTION_PARAMETERS.md](CONNECTION_PARAMETERS.md) for every connection, auth, and session parameter the kernel accepts — its meaning, default value, and the config struct it lives on.
5660

61+
## Community and support
62+
63+
See [CONTRIBUTING.md](CONTRIBUTING.md) to propose changes. Participation is
64+
governed by the [Databricks Open Source Code of Conduct](CODE_OF_CONDUCT.md),
65+
and security vulnerabilities should be reported according to
66+
[SECURITY.md](SECURITY.md). For other project questions, contact
67+
[eng-oss-sql-driver@databricks.com](mailto:eng-oss-sql-driver@databricks.com).
68+
5769
## License
5870

5971
Apache 2.0. See [LICENSE](LICENSE) and [NOTICE.txt](NOTICE.txt).

‎SECURITY.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Security Policy
2+
3+
## Reporting a vulnerability
4+
5+
If you discover a security vulnerability in this project, please report it
6+
responsibly. Do not open a public GitHub issue for security vulnerabilities.
7+
8+
Report security issues to [security@databricks.com](mailto:security@databricks.com)
9+
and include a description, reproduction steps, and the potential impact.
10+
11+
## Supported versions
12+
13+
Security fixes are applied to the `main` branch and the latest published
14+
release, if any.

‎adbc/Cargo.toml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ include = [
1818
"/LICENSE",
1919
"/PACKAGING.md",
2020
]
21-
# Remove only after the public kernel crate and release process are available.
21+
# Keep disabled while this implementation is experimental. Publication requires
22+
# a separate product, support, security, and release-readiness decision.
2223
publish = false
2324

2425
[dependencies]

‎adbc/PACKAGING.md‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ Repository CI must validate all of the following before release:
2121
ADBC dependency graph.
2222
5. Platform-specific release jobs validate Linux, macOS, and Windows artifacts.
2323

24-
Publication remains disabled while the repository and kernel crate are not
25-
publicly released. A release must publish `databricks-sql-kernel` first, then
26-
publish `databricks-adbc` with the matching version requirement. Both crates
27-
are built from the same repository source during development; no kernel FFI or
28-
C ABI is involved in that dependency.
24+
Publication remains disabled while the implementation is experimental. Any
25+
future release requires a separate product, support, security, and
26+
release-readiness decision. If publication is approved, release
27+
`databricks-sql-kernel` first, then `databricks-adbc` with the matching version
28+
requirement. Both crates are built from the same repository source during
29+
development; no kernel FFI or C ABI is involved in that dependency.
2930

3031
The declared MSRV is Rust 1.89. Cargo dependencies used by internal CI must
3132
resolve through the Databricks package proxy. Release artifacts must include

0 commit comments

Comments
 (0)