Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@huddly/camera-proto
Advanced tools
An npm package describing the protobuf api for huddly network cameras
The .proto format: https://developers.google.com/protocol-buffers/docs/proto3
Style guide: https://developers.google.com/protocol-buffers/docs/style
Guides to use the interface in C++, python etc. is found in the menu to the left in the above links.
Important note about enums:
conan create . -r conan -pr:h x86_64-gcc-10-2 --user huddly -pr:b x86_64-gcc-10-2
Below you can see the different markups that are used to ignore proto code that is specific to huddly. When generating the google proto file, all the code that has been tagged with the markup lines will not be present.
This markup will ignore the whole block that follows after the markup line. It will also ignore any nested blocks within the ignore block.
This markup will ignore the next line that follows after the markup line.
NOTE: There is a bug with ts-protoc-gen
dependency where the generated ts file has the wrong import (imports "grpc" instead of "@grpc/grpc-js"). For now, this issue/file needs to be update manually before publishing the package.
Making a npm release is done manually by one of the developers with publishing access to our huddly organization account on npmjs. The following procedure should be followed when wanting to make a new npm package release:
npm version [patch|minor|major]
to bump it through npmnpm run publish-package
. NOTE Running this command requires you to be logged in to npmjs through your terminal windows with the huddly account.The simplest way to release a nuget package is to use the github actions workflow specified in the next section. If you wish to do it manually, see the
First decide if you wish to create a stable release, or a pre-release.
Go to the actions pane on GitHub -> select the 'Compile and publish' workflow -> 'Run workflow' -> select the appropriate branch
Go to 'Releases' on GitHub -> Draft a new release -> Choose a tag, just create a new tag that follows the convention (vX.Y.Z) -> Check 'Set as the latest release' -> Publish release
Note: To build the C# files you need to have protoc installed. It's possible to do this windows, but the current author have only tested these steps through linux (WSL).
protoc --proto_path=api/ --csharp_out=lib api/huddly.proto
Making a nuget release is done manually by whomever has access to artifactory. The following procedure should be followed:
huddly-nuget
repository. Click on the repository and go to Set me Up
Set me up page
of the nuget repository, enter you password and copy the information for setting up your nuget repository locallynuget sources Add -Name Artifactory -Source https://artifactory.huddly.io/artifactory/api/nuget/nuget -username <USERNAME> -password <PASSWORD/API_KEY>
nuget sources Add -Name ArtifactoryNugetLocal -Source https://artifactory.huddly.io/artifactory/api/nuget/nuget-local -username <USERNAME> -password <PASSWORD/API_KEY>
nuget setapikey <USERNAME>:<PASSWORD/API_KEY> -Source Artifactory
nuget setapikey <USERNAME>:<PASSWORD/API_KEY> -Source ArtifactoryNugetLocal
nuget
repository locally, you can fetch nuget packages from the official nuget registry but also from our own one hosted on artifactory
nuget
is a virtual repositorynuget-local
is a local repository where we host our nuget packagesnuget-remote
is a remote repository in artifactory pointing to official nuget registry (this one we dont have to set up as setting up the virtual one is sufficient)./scripts/bump_version.sh
script to bump the versions for the npm and nuget packages.nuget pack Huddly.CameraProto.nuspec
nuget push <.nupkg file generated by previous command> -Source ArtifactoryNugetLocal
nuget-local
repository on artifactory.NOTE: Affected projects when doing changes to this repository and/or making new releases include:
modes {
mode: "speaker-centric"
}
modes {
mode: "default"
}
FAQs
An npm package describing the protobuf api for huddly network cameras
We found that @huddly/camera-proto demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.