Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Security Policy

## Reporting security problems

**DO NOT CREATE A GITHUB ISSUE** to report a security problem.

Instead please use this [Report a Vulnerability](https://github.com/solana-program/record/security/advisories/new) link.
Provide a helpful title and detailed description of the problem.

If you haven't done so already, please **enable two-factor auth** in your GitHub account.

Expect a response as fast as possible in the advisory, typically within 72 hours.

--

If you do not receive a response in the advisory, send an email to
<security@anza.xyz> with the full URL of the advisory you have created. DO NOT
include attachments or provide detail sufficient for exploitation regarding the
security issue in this email. **Only provide such details in the advisory**.

If you do not receive a response from <security@anza.xyz> please followup with
the team directly. You can do this in one of the `#Dev Tooling` channels of the
[Solana Tech discord server](https://solana.com/discord), by pinging the admins
in the channel and referencing the fact that you submitted a security problem.
1 change: 1 addition & 0 deletions program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ solana-program-error = "2.2.1"
solana-program-pack = "2.2.1"
solana-pubkey = { version = "2.2.1", features = ["bytemuck"] }
solana-rent = "2.2.1"
solana-security-txt = "1.1.1"
thiserror = "2.0.12"

[dev-dependencies]
Expand Down
13 changes: 13 additions & 0 deletions program/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use {
solana_account_info::AccountInfo, solana_program_error::ProgramResult, solana_pubkey::Pubkey,
solana_security_txt::security_txt,
};

solana_program_entrypoint::entrypoint!(process_instruction);
Expand All @@ -14,3 +15,15 @@ fn process_instruction(
) -> ProgramResult {
crate::processor::process_instruction(program_id, accounts, instruction_data)
}

security_txt! {
// Required fields
name: "SPL Record",
project_url: "https://solana-program.com/record",
contacts: "link:https://github.com/solana-program/record/security/advisories/new,mailto:security@anza.xyz,discord:https://solana.com/discord",
policy: "https://github.com/solana-program/record/blob/master/SECURITY.md",

// Optional Fields
preferred_languages: "en",
source_code: "https://github.com/solana-program/record/tree/master/program"
}