Submissions should remain focused in scope and avoid containing unrelated commits. For pull requests, we employ the following workflow:
- Fork the repository to your own GitHub account
- Create a branch locally with a descriptive name
- Commit changes to the branch
- Write your code according to our development guidelines
- Push changes to your fork
- Clean up your commit history
- Open a PR in our repository and summarize the changes in the description
This project uses the GitHub issue tracker. Please check the existing issues before submitting to avoid duplicates.
To report a security issue, contact security@edgeless.systems.
Your bug report should cover the following points:
- A quick summary and/or background of the issue
- Steps to reproduce (be specific, e.g., provide sample code)
- What you expected would happen
- What actually happens
- Further notes:
- Thoughts on possible causes
- Tested workarounds or fixes
You should discuss larger changes and feature requests with the maintainers. Please open an issue describing your plans.
Adhere to the style and best practices described in Effective Go. Read Common Review Comments for further information.
This projects uses golangci-lint for linting. You can install golangci-lint locally, but there is also a CI action to ensure compliance.
To locally run all configured linters, execute
golangci-lint run ./...It is also recommended to use golangci-lint (and gofumpt as formatter) in your IDE, by adding the recommended VS Code Settings or by configuring it yourself
As this project contains nested Go modules, it is recommended to create a local Go workspace, so your IDE can lint multiple modules at once.
go 1.18
use (
.
./hack
./operators/constellation-node-operator
)You can find an introduction in the Go workspace tutorial.
If you have changed dependencies within a module and have run go mod tidy, you can use go work sync to sync versions of the same dependency of the different modules.
The following can be added to your personal settings.json, but it is recommended to add it to
the <REPOSITORY>/.vscode/settings.json repo, so the settings will only affect this repository.
Additionally, we use the Redhat YAML formatter to have uniform formatting in our .yaml files.
IP addresses:
- ip: numeric IP address
- host: either IP address or hostname
- endpoint: host+port
- key: symmetric key
- pubKey: public key
- privKey: private key