-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add missing files * Add logging to heartbeat checks * Document how to pass arguments to pytest * Mention Acoustic stage pod * Standard README * Mention access request in email channel
- Loading branch information
Showing
9 changed files
with
100 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Community Participation Guidelines | ||
|
||
This repository is governed by Mozilla's code of conduct and etiquette guidelines. | ||
For more details, please read the | ||
[Mozilla Community Participation Guidelines](https://www.mozilla.org/about/governance/policies/participation/). | ||
|
||
## How to Report | ||
For more information on how to report violations of the Community Participation Guidelines, please read our '[How to Report](https://www.mozilla.org/about/governance/policies/participation/reporting/)' page. | ||
|
||
<!-- | ||
## Project Specific Etiquette | ||
In some cases, there will be additional project etiquette i.e.: (https://bugzilla.mozilla.org/page.cgi?id=etiquette.html). | ||
Please update for your project. | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
First off, thanks for taking the time to contribute! ❤️ | ||
|
||
All types of contributions are encouraged and valued. | ||
|
||
Before doing so, here are a few guidelines: | ||
|
||
* You agree to license your contributions under the project [license](LICENSE). | ||
* Use pull-requests early so it's open for discussion, even if your | ||
contribution isn't ready yet. | ||
* All pull requests should include tests, as they help us avoid regressions in | ||
our code. | ||
* A pull-request adding functionality should also update the documentation | ||
accordingly. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,23 @@ | ||
# ConTact Management System (CTMS) | ||
|
||
While the app is running, interactive API documentation can found at the following relative paths: /docs, /redoc. | ||
|
||
OpenApiSpec(OAS) formatted in JSON can be found at the following path: /openapi.json | ||
|
||
--- | ||
|
||
[View All Docs](docs/README.md) | ||
|
||
--- | ||
|
||
## Prerequisites | ||
|
||
Please read the [Developer Setup documentation](docs/developer_setup.md) before developing \ | ||
for this project to ensure correct environment setup. | ||
|
||
--- | ||
## Project Structure | ||
|
||
The project is structured with the following in mind: | ||
|
||
- [bin/*](bin/) | ||
- Some scripts that have proven useful within the CTMS ecosystem | ||
- [docs/*](docs/) | ||
- Documentation to guide others around the project interactions | ||
- [ctms/*](ctms/) | ||
- Application logic lives within this directory | ||
- [bin/*](ctms/bin/) | ||
- Scripts intended for background machinery | ||
- [schemas/*](ctms/schemas/) | ||
- Pydantic Models for Data Modeling and Contract Validation | ||
- [migrations/*](migrations/) | ||
- Alembic migrations that act as a changelog or version control system for implementing DB changes in an ordered fashion | ||
- [tests/unit/*](test/unit/) | ||
- Test suite using pytest | ||
|
||
--- | ||
## Important Files | ||
|
||
Below are some files that are worth making note of: | ||
- [MAKEFILE](Makefile) | ||
- Enabling commands such as: make {build | lint | setup | start | test | shell | db-only} | ||
- [ctms/app.py](ctms/app.py) | ||
- FastAPI handling of HTTP Requests and routing to services | ||
- [ctms/bin/acoustic_sync.py](ctms/bin/acoustic_sync.py) | ||
- Background job for synchronizing pending records to Acoustic | ||
- [ctms/config.py](ctms/config.py) | ||
- Environment variables are initialized here | ||
- [ctms/models.py](ctms/models.py) | ||
- SQLAlchemy models for ORM tool | ||
 | ||
|
||
*CTMS* is an internal service at Mozilla in charge of managing marketing contacts. | ||
It consists of a REST API and a background synchronization process. | ||
|
||
## Usage | ||
|
||
Run the app with `make start`. Check [developer docs](docs/developer_setup.md) for setup. | ||
|
||
While the app is running, interactive API documentation is available at: | ||
|
||
- http://localhost:8000/docs | ||
- http://localhost:8000/redoc | ||
|
||
OpenApiSpec(OAS) formatted in JSON can be found at the following path: `/openapi.json`. | ||
|
||
## [Documentation](docs/README.md) | ||
|
||
## License | ||
|
||
*CTMS* is licensed under the MPLv2. See the `LICENSE` file for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Security Policy | ||
|
||
Mozilla has a [well-defined process for handling security vulnerabilities](https://www.mozilla.org/en-US/about/governance/policies/security-group/bugs/) based around responsible disclosure. | ||
|
||
## Supported Versions | ||
|
||
| Version | Supported | | ||
| ------- | ------------------ | | ||
| v2.x.x | :white_check_mark: | | ||
| < v2.0 | :x: | | ||
|
||
## Reporting a Vulnerability | ||
|
||
If you believe you have found a security vulnerability, you should visit the [Mozilla bug bounty program](https://www.mozilla.org/en-US/security/bug-bounty/) for information on how to submit them. | ||
|
||
[This Bugzilla template](https://bugzilla.mozilla.org/enter_bug.cgi?assigned_to=nobody%40mozilla.org&bug_ignored=0&bug_severity=--&bug_status=NEW&bug_type=defect&cf_fx_iteration=---&cf_fx_points=---&component=SRE&contenttypemethod=list&contenttypeselection=text%2Fplain&defined_groups=1&filed_via=standard_form&flag_type-4=X&flag_type-607=X&flag_type-674=X&flag_type-800=X&flag_type-803=X&flag_type-936=X&form_name=enter_bug&groups=releng-security&groups=mozilla-employee-confidential&groups=partner-confidential&maketemplate=Remember%20values%20as%20bookmarkable%20template&op_sys=Unspecified&priority=--&product=Infrastructure%20%26%20Operations&rep_platform=Unspecified&target_milestone=---&version=unspecified) will help you report a security vulnerability directly to our SRE team. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters