Merge branch 'master' of github.com:jailmanager/wiki
This commit is contained in:
commit
fb5a09a47c
71
content/CODE_OF_CONDUCT.md
Normal file
71
content/CODE_OF_CONDUCT.md
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
# Code of Conduct
|
||||||
|
|
||||||
|
## Our Pledge
|
||||||
|
|
||||||
|
In the interest of fostering an open and welcoming environment, we as
|
||||||
|
contributors and maintainers pledge to making participation in our project and
|
||||||
|
our community a harassment-free experience for everyone, regardless of age, body
|
||||||
|
size, disability, ethnicity, sex characteristics, gender, level of experience,
|
||||||
|
education, socio-economic status, nationality, personal appearance, race,
|
||||||
|
religion, or sexual identity and orientation.
|
||||||
|
|
||||||
|
## Our Standards
|
||||||
|
|
||||||
|
Examples of behavior that contributes to creating a positive environment
|
||||||
|
include:
|
||||||
|
|
||||||
|
* Being respectful of differing viewpoints and experiences
|
||||||
|
* Gracefully accepting constructive criticism
|
||||||
|
* Focusing on what is best for the community
|
||||||
|
|
||||||
|
Examples of unacceptable behavior by participants include:
|
||||||
|
|
||||||
|
* The use of sexual imagery and unwelcome sexual advances
|
||||||
|
* Trolling, insulting/derogatory comments, and personal or political attacks
|
||||||
|
* Public or private harassment
|
||||||
|
* Publishing others' private information, such as a physical or electronic
|
||||||
|
address, without explicit permission
|
||||||
|
|
||||||
|
## Our Responsibilities
|
||||||
|
|
||||||
|
Project maintainers are responsible for clarifying the standards of acceptable
|
||||||
|
behavior and are expected to take appropriate and fair corrective action in
|
||||||
|
response to any instances of unacceptable behavior.
|
||||||
|
|
||||||
|
Project maintainers 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, or to ban temporarily or
|
||||||
|
permanently any contributor for other behaviors that they deem inappropriate,
|
||||||
|
threatening, offensive, or harmful.
|
||||||
|
|
||||||
|
## Scope
|
||||||
|
|
||||||
|
This Code of Conduct applies both within project spaces and in public spaces
|
||||||
|
when an individual is representing the project or its community. Examples of
|
||||||
|
representing a project or community include using an official project e-mail
|
||||||
|
address, posting via an official social media account, or acting as an appointed
|
||||||
|
representative at an online or offline event. Representation of a project may be
|
||||||
|
further defined and clarified by project maintainers.
|
||||||
|
|
||||||
|
## Enforcement
|
||||||
|
|
||||||
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||||
|
reported by contacting the project team at jailman@schouten-lebbing.nl. All
|
||||||
|
complaints will be reviewed and investigated and will result in a response that
|
||||||
|
is deemed necessary and appropriate to the circumstances. The project team is
|
||||||
|
obligated to maintain confidentiality with regard to the reporter of an incident.
|
||||||
|
Further details of specific enforcement policies may be posted separately.
|
||||||
|
|
||||||
|
Project maintainers who do not follow or enforce the Code of Conduct in good
|
||||||
|
faith may face temporary or permanent repercussions as determined by other
|
||||||
|
members of the project's leadership.
|
||||||
|
|
||||||
|
## Attribution
|
||||||
|
|
||||||
|
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
||||||
|
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
||||||
|
|
||||||
|
[homepage]: https://www.contributor-covenant.org
|
||||||
|
|
||||||
|
For answers to common questions about this code of conduct, see
|
||||||
|
https://www.contributor-covenant.org/faq
|
105
content/CONTRIBUTING.md
Normal file
105
content/CONTRIBUTING.md
Normal file
@ -0,0 +1,105 @@
|
|||||||
|
# Contribution and Review Guidelines
|
||||||
|
|
||||||
|
This project welcomes any and all input, but we need to have a few quality guidelines. These guidelines will be examplained here, in this document.
|
||||||
|
|
||||||
|
### GIT Guidelines
|
||||||
|
***
|
||||||
|
#### New to GIT
|
||||||
|
|
||||||
|
If you have never used git before, you can look up our general reference on our wiki.
|
||||||
|
|
||||||
|
#### Git and You
|
||||||
|
|
||||||
|
GIT is a fantastic system, but while using it we have a few guidelines to keep it fantastic for everyone.
|
||||||
|
|
||||||
|
* Submit complete PR's.
|
||||||
|
* Add [DNM] if you do not want your PR merged yet.
|
||||||
|
* Always try and fill in the whole form, even for small PR's.
|
||||||
|
* Don't close when a reviewer requests changes (just push the changes or ask for help).
|
||||||
|
* Explain what you did in your PR.
|
||||||
|
* Be thorough.
|
||||||
|
* If you can add screenshots to clarify.
|
||||||
|
* Always try to add "Fixes #000" (where 000 is the Issue your PR fixes)
|
||||||
|
* found something you want to fix yourself? Please do make an issue too.
|
||||||
|
|
||||||
|
### Structure Guidelines
|
||||||
|
***
|
||||||
|
#### Naming scheme
|
||||||
|
|
||||||
|
File and folder names are important and making mistakes in them may give conflicts an/or annoyance in the future. Remember, your garbage needs to be cleaned by someone sometime in the future! For that reason, we have a few guidelines in regards to naming files and folder.
|
||||||
|
|
||||||
|
* Always start files and folders WITHOUT a Capital.
|
||||||
|
|
||||||
|
#### Inclusion of files and folders
|
||||||
|
|
||||||
|
Although GIT is quite friendly in what it accepts in terms of files and folder changes in a commit, a reviewer's or bugfixer's time is not unlimited. For that reason, we have a few specific guidelines in regards to the inclusion of files and folders in your PR.
|
||||||
|
|
||||||
|
* Only include files you actually changed.
|
||||||
|
* Try not to include multiple changes in one PR
|
||||||
|
* Want to change the formatting of multiple files too? Make a separate PR.
|
||||||
|
|
||||||
|
*Always include the following files when creating a new jail*
|
||||||
|
|
||||||
|
- install.sh
|
||||||
|
- update.sh
|
||||||
|
- readme.md
|
||||||
|
- config.yml
|
||||||
|
|
||||||
|
|
||||||
|
### Code Guidelines
|
||||||
|
***
|
||||||
|
#### Your code, your style, my review
|
||||||
|
|
||||||
|
Here at jailman, we value people having their own style. But your code needs to be reviewable and editable by others too. For that reason, we have a few basic coding guidelines
|
||||||
|
|
||||||
|
* **Always** explain regex in a comment within your code.
|
||||||
|
* Write simple code and don't try to impress.
|
||||||
|
* We will run (Basic) automated reformating of code once in a while.
|
||||||
|
* Document your changes in your code and if need be, on the wiki.
|
||||||
|
* All PR's should be able to pass our automated shellcheck.
|
||||||
|
* It's okey to add shellcheck ignores, but only AFTER you checked the warning!
|
||||||
|
|
||||||
|
#### jail requirements
|
||||||
|
|
||||||
|
- Jails should always save user-specific data in a persistant location. Which is the location specified in the config.yml file under "config:", which is automatically mounted to every jail under /config. There should be no user specific data in the jail itself
|
||||||
|
- Jails should not require the user to edit any config file themselves. All config changes should be automated
|
||||||
|
- Jails should not use default passwords, the user should always be forced(!) to put credentials in config.yml manually
|
||||||
|
|
||||||
|
#### Variable style
|
||||||
|
|
||||||
|
Here at JailMan we use a consistant style for variables. We also automated the process of loading the variables from the config file into your plugin, therefore you need to list all variables and required variables into the config.yml file in your plugin folder.
|
||||||
|
|
||||||
|
The following variables do not need to be included in your plugin config.yml, because they are always loaded:
|
||||||
|
|
||||||
|
ip4_addr
|
||||||
|
host_name
|
||||||
|
gateway
|
||||||
|
|
||||||
|
The style requirements for your plugin variables are as follows:
|
||||||
|
Simple variables: clear names, no references to other jails. (ex. `admin_token` )
|
||||||
|
Referencing another jail: prefix `link_` suffix a clear description of the jail you are linking. Preferably a plugin name. (ex. `link_mariadb` )
|
||||||
|
For referencing settings for specific applications or other plugins: prefix: `$pluginname_` or `$application_` where $plugin and $application are the names of the plugin/application the value is used for. (ex. `mariadb_database`)
|
||||||
|
|
||||||
|
|
||||||
|
### Review Guidelines
|
||||||
|
***
|
||||||
|
Even us review gods need some guidelines once in a while.
|
||||||
|
|
||||||
|
* Let people learn from their mistakes
|
||||||
|
* Review instead of merging without comments
|
||||||
|
* Abide by these guidelines in your review
|
||||||
|
* Tests exist for a reason. Don't merge with test-failures
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Todo vs Feature vs bug:
|
||||||
|
***
|
||||||
|
Please take note of the difference between a TODO and Feature
|
||||||
|
|
||||||
|
* Bug: An unexpected behavior of the script or a crash. Including, but not limited to, errors and warnings.
|
||||||
|
* Todo: When you come across something that needs tweaking/adding during development, is not an unexpected behavior
|
||||||
|
* Feature: When you, out of personal preference, want something added or changed.
|
||||||
|
|
||||||
|
### That's it!
|
||||||
|
***
|
||||||
|
Someone will come along and review the changes. If everything looks good then they will merge it with the main repo. If you need any help don't be afraid to ask in the discord channel: [https://discord.gg/tFcTpBp](https://discord.gg/tFcTpBp)
|
18
content/SECURITY.md
Normal file
18
content/SECURITY.md
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# Security Policy
|
||||||
|
|
||||||
|
## Supported Versions
|
||||||
|
|
||||||
|
| Version | TrueNAS version | Supported with updates |
|
||||||
|
| ------- | ------- |------------------ |
|
||||||
|
| 1.3.0 | 12.0 | NOT RELEASED YET |
|
||||||
|
| 1.2.x | 11.3U2-3 | :white_check_mark: |
|
||||||
|
| 1.1.x | 11.3U1-2 | :x: |
|
||||||
|
| 1.0.x | 11.3U1 | :x: |
|
||||||
|
|
||||||
|
## Reporting a Vulnerability
|
||||||
|
|
||||||
|
If you find any security issue, please email the project maintainer.
|
||||||
|
|
||||||
|
Currently the Project Maintainer is:
|
||||||
|
[Ornias1993](https://github.com/Ornias1993)
|
||||||
|
|
0
content/SUPPORT.md
Normal file
0
content/SUPPORT.md
Normal file
Loading…
Reference in New Issue
Block a user