Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Api docs fix #3

Merged
merged 149 commits into from
Jan 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
149 commits
Select commit Hold shift + click to select a range
76e357b
chore: update docusaurus to latest version
nickfrosty Sep 29, 2022
fe5be09
fix: added required fields
nickfrosty Sep 29, 2022
53bf488
fix: custom layout pages
nickfrosty Sep 30, 2022
df910f4
fix: updated doc keywords to array
nickfrosty Sep 30, 2022
78bee14
fix: remobed breadcrumbs for the default
nickfrosty Oct 3, 2022
1556826
feat: added new JSON API example
nickfrosty Oct 3, 2022
c84a780
feat: created api partial pages
nickfrosty Oct 15, 2022
982f8d1
Merge branch 'master' into docs-RPC-api-new-format
nickfrosty Oct 15, 2022
bc10320
fix: updated links
nickfrosty Oct 15, 2022
ff8135b
feat: added api landing page and updates api sidebar
nickfrosty Oct 16, 2022
6d33c92
fix: updated the call to action on the http method page
nickfrosty Oct 16, 2022
bfff753
fix: mobile responsive-ness
nickfrosty Oct 18, 2022
43a7f9a
fix: updated sidebar link
nickfrosty Oct 22, 2022
a30464c
fix: updated internal linking to use new api page
nickfrosty Oct 22, 2022
d45e31c
chore: merge in from master
nickfrosty Oct 22, 2022
5582924
rolls back merkle shreds on testnet (#29340)
behzadnouri Dec 20, 2022
c3ca5b7
remove acctdb.min_num_stores (#29335)
jeffwashington Dec 20, 2022
067facf
Remove println (#29342)
Dec 20, 2022
926debd
exclude Vote transactions from updating min-fee-cache (#29341)
tao-stones Dec 20, 2022
0244b01
Add metrics for min/max priority fee per slot, and counters for fee/n…
tao-stones Dec 21, 2022
4a64f6d
test_utils::create_test_accounts pre-allocates an append vec first (#…
jeffwashington Dec 21, 2022
0f7ef08
introduce ShrinkInProgress (#29329)
jeffwashington Dec 21, 2022
1e0d393
Fix "tranaction" typo in code base (#29347)
Dec 22, 2022
5918d6f
[docs] updating the "writing programs" section (#29197)
nickfrosty Dec 22, 2022
12de763
[docs] Updated transactions overview page (#29345)
nickfrosty Dec 22, 2022
d8da242
docs: transactions fees/confirmation and deploying programs (#28895)
nickfrosty Dec 22, 2022
0a5164d
Remove checks for activated feature check_physical_overlapping (#29355)
alessandrod Dec 22, 2022
bf18613
fix: client-test timeout (#29364)
yihau Dec 22, 2022
edd5f6f
Expand solana-sdk API docs. (#29063)
brson Dec 22, 2022
d331291
Add fee-payer arg to solana feature activate (#29367)
Dec 22, 2022
49f4e2a
replace ./cargo with cargo in sbf/bpf build scripts (#29371)
Dec 22, 2022
0a7d852
Make connection cache to support specified client endpoint (#29240)
lijunwangs Dec 22, 2022
65391a7
chore: bump futures-util from 0.3.24 to 0.3.25 (#29337)
dependabot[bot] Dec 23, 2022
8d11b28
get rid of ./cargo when building downstream projects (#29372)
Dec 23, 2022
968b158
vote: Prevent commission update in the second half of epochs (#29362)
joncinque Dec 23, 2022
0f99f70
ci: trigger downstream pipeline when cargo-[test|build]-[bpf|sbf] is …
yihau Dec 23, 2022
d32c348
ci: trigger stable-sbf pipeline when cargo-[test|build]-[bpf|sbf] is …
yihau Dec 23, 2022
892e23c
Security TXT: Add source_release and source_revision fields (#29392)
kilimnik Dec 23, 2022
81394cf
Fix BigTable upload early return (#29378)
Dec 23, 2022
58d66e1
Minor cleanup on bigtable_upload (#29379)
Dec 23, 2022
1cc8917
Adjust ledger-tool bigtable upload starting-slot default value (#29384)
Dec 23, 2022
5f4752a
feat: Allow for verifying the sigs of partially signed txs in web3.js…
cryptopapi997 Dec 24, 2022
b619b0d
Increase Stalebot's operation consumption limit by another 50%
steveluscher Dec 24, 2022
c0e6065
feat: add getInflationRate RPC call to web3.js (#29377)
TJDawson10 Dec 24, 2022
f05eb4a
Temporary increase the build redundancy threshold (#29412)
dmakarov Dec 24, 2022
33946f5
Add an option to reinstall sbf-tool binaries by cargo-build-sbf (#29410)
dmakarov Dec 24, 2022
b0c8e0f
Enable full output of cargo-build-sbf tests (#29411)
dmakarov Dec 24, 2022
3cfd1b2
test: fix get inflation rate test failed at test:live (#29413)
yihau Dec 24, 2022
3a14e52
Bump sbf-tools to v1.32 (#29325)
dmakarov Dec 24, 2022
d392378
ci: fix web3-commit-lint (#29414)
yihau Dec 24, 2022
2681720
Re-enable cargo-build-sbf tests (#29415)
dmakarov Dec 25, 2022
f2ba16e
Plumb dumps from replay_stage to repair (#29058)
AshwinSekar Dec 25, 2022
456d067
experiments different turbine fanouts for propagating shreds (#29393)
behzadnouri Dec 26, 2022
7429df5
Increase the Stalebot operations limit by another 50%.
steveluscher Dec 27, 2022
ec5e5db
Double the Stalebot operations limit
steveluscher Dec 27, 2022
17b6400
Add more logging and documentation to flaky optimistic confirmation t…
AshwinSekar Dec 27, 2022
5d18a5c
replaced ./cargo with cargo in build docs (#29375)
Dec 27, 2022
d172ab3
expands test coverage for merkle/legacy shreds sigverify (#29424)
behzadnouri Dec 28, 2022
fba4a57
expands test coverage for sign_shreds_gpu (#29429)
behzadnouri Dec 29, 2022
0665569
Crank Stalebot's operations limit up to a level that should handle al…
steveluscher Dec 29, 2022
1de161c
simplifies shreds sigverify (#29436)
behzadnouri Dec 29, 2022
84e0d12
fix typo in rpc client (#29434)
gr8den Dec 29, 2022
9679bc6
chore: typecheck web3.js tests (#29422)
TJDawson10 Dec 29, 2022
db3d926
implements shred::layout::get_merkle_root (#29437)
behzadnouri Dec 29, 2022
40408fc
Update SECURITY.md
t-nelson Dec 29, 2022
a2db104
feat: add commission fields matching RPC spec to web3.js client (#29435)
R-K-H Dec 30, 2022
c2d6c1b
chore: bump @babel/runtime from 7.18.0 to 7.20.7 in /web3.js (#29439)
dependabot[bot] Dec 30, 2022
8e14aee
chore: bump @solana/buffer-layout from 4.0.0 to 4.0.1 in /web3.js (#2…
dependabot[bot] Dec 30, 2022
f553579
chore: bump @babel/plugin-transform-runtime from 7.17.0 to 7.19.6 in …
dependabot[bot] Dec 30, 2022
1d456a8
chore: bump bn.js from 5.2.0 to 5.2.1 in /web3.js (#29443)
dependabot[bot] Dec 30, 2022
50afb80
adds shred::layout::get_signed_data (#29438)
behzadnouri Dec 30, 2022
70c9017
removes merkle root comparison in erasure_mismatch (#29447)
behzadnouri Dec 31, 2022
754ecf4
generalizes the return type of Shred::get_signed_data (#29446)
behzadnouri Dec 31, 2022
6de947a
chore: bump @rollup/plugin-json from 4.1.0 to 6.0.0 in /web3.js (#29452)
dependabot[bot] Jan 2, 2023
3c71e9d
chore: bump @typescript-eslint/parser from 5.40.1 to 5.47.1 in /web3.…
dependabot[bot] Jan 2, 2023
6edbb61
add test_shrink_ancient_overflow (#29363)
jeffwashington Jan 2, 2023
3d72012
cleanup 'shrinking_in_progress' (#29359)
jeffwashington Jan 2, 2023
cf1aa4b
feature: set rent_epoch to Epoch::MAX (#28690)
jeffwashington Jan 2, 2023
67c7e34
test permutations of set_exempt_rent_epoch_max (#29461)
jeffwashington Jan 2, 2023
38d771a
add test and comments (#29459)
jeffwashington Jan 2, 2023
8397f29
simplify get_storages_for_slot (#29463)
jeffwashington Jan 2, 2023
e99afb4
handle ancient overflow case correctly (#29458)
jeffwashington Jan 2, 2023
bf93a1e
migrate tests to not use AccountStorage::get (#29464)
jeffwashington Jan 2, 2023
9615965
decrease frequency of random shrink of ancient append vec (#29462)
jeffwashington Jan 2, 2023
d5fdb7b
remove metric time_hashing_skipped_rewrites_us (#29470)
jeffwashington Jan 2, 2023
e43957d
Fix snapshot download test (#29457)
bw-solana Jan 2, 2023
a319274
test_rent_exempt_temporal_escape works in passes (#29460)
jeffwashington Jan 2, 2023
6294d1e
cleanup in account_storage.rs (#29467)
jeffwashington Jan 2, 2023
5a969ce
Snapshot download test (#29474)
bw-solana Jan 3, 2023
6446672
remove skip rewrite code from collect_rent_from_accounts (#29472)
jeffwashington Jan 3, 2023
4cc1890
skip_rewrites will only be feature driven (#29468)
jeffwashington Jan 3, 2023
e86628a
filter get_snapshot_storages for requested_slots earlier (#29465)
jeffwashington Jan 3, 2023
1fd1e57
add test (#29471)
jeffwashington Jan 3, 2023
660596f
Cli: refactor program code slightly (#29477)
Jan 3, 2023
71ba409
Cli: the authority passed to `solana program write-buffer` must be a …
Jan 3, 2023
3363c08
Move async remove to snapshot_utils.rs (#29406)
xiangzhu70 Jan 3, 2023
89e733c
remove unnecessary type (#29473)
jeffwashington Jan 3, 2023
8c878da
refactor RecycleStores::add_entries (#29475)
jeffwashington Jan 3, 2023
04508cc
add AccountStorage.is_empty (#29478)
jeffwashington Jan 3, 2023
ca91662
add test method get_and_assert_single_storage (#29481)
jeffwashington Jan 3, 2023
10eadb6
add test method assert_no_storages_at_slot() (#29483)
jeffwashington Jan 3, 2023
9d15ead
remove single use AccountStorage.slot_store_count (#29479)
jeffwashington Jan 3, 2023
102dc08
get_snapshot_storages removes call to AccountStorage.get (#29466)
jeffwashington Jan 3, 2023
9ee4555
remove should_retain from mark_dirty_dead_stores (#29358)
jeffwashington Jan 3, 2023
95ecd38
typo (#29485)
HaoranYi Jan 3, 2023
4a8b980
update leger tool help for db verify refcounts (#29486)
HaoranYi Jan 3, 2023
d22c1d1
Add retries for get_latest_blockhash for accounts cluster bench (#29456)
HaoranYi Jan 3, 2023
e532316
dedups gossip addresses, taking the one with highest weight (#29421)
behzadnouri Jan 3, 2023
95d2f00
add AccountStorage.get_slot_storage_entry (#29480)
jeffwashington Jan 3, 2023
0f2bfa2
cleanup get_snapshot_storages (#29488)
jeffwashington Jan 3, 2023
89deecb
add AccountStorage.is_empty_entry for tests (#29489)
jeffwashington Jan 3, 2023
d7bd1bf
bank: Record non-vote transaction count (#29383)
ilya-bobyr Jan 3, 2023
d078c04
chore: add missing members back to workspace.members (#29450)
yihau Jan 4, 2023
9db2565
recovers merkle roots from shreds binary in {verify,sign}_shreds_gpu …
behzadnouri Jan 4, 2023
10135db
should_move_to_ancient_append_vec works with a single storage (#29484)
jeffwashington Jan 4, 2023
f505c2d
Fix typo in blockstore_metrics.rs (#29503)
eltociear Jan 4, 2023
33b5a0d
chore: added algolia keys
nickfrosty Jan 4, 2023
093b1a5
get_storages_for_slot uses get_slot_storage_entry (#29498)
jeffwashington Jan 4, 2023
db6f2d6
fix: update the api pages for rent PRs
nickfrosty Jan 4, 2023
6ae2eb3
Rework method for reporting security problems (#29511)
mvines Jan 4, 2023
023509f
solana-install: check for fixed releases directly (#29365)
2501babe Jan 4, 2023
c479a64
Fix TransactionPrecompileVerification RPC error (#29490)
Jan 4, 2023
98dc3db
make rpc test tolerant of rent_epoch being set to max (#29508)
jeffwashington Jan 4, 2023
aa593a3
logger: Update to env_logger 0.9.3 (#29510)
joncinque Jan 4, 2023
ef72140
remove unnecessary to_vec() (#29516)
jeffwashington Jan 4, 2023
150ac80
filter_storages ignores reclaims (#29512)
jeffwashington Jan 4, 2023
4e636ab
cleanup ancient append vec tests (#29514)
jeffwashington Jan 4, 2023
fc8cd82
migrate tests to get_slot_storage_entry (#29515)
jeffwashington Jan 4, 2023
8323024
require repair request signature, ping/pong for Testnet, Development …
jbiseda Jan 4, 2023
05d5aed
Adds SnapshotError::IoWithSourceAndFile (#29527)
brooksprumo Jan 5, 2023
221f547
remove store_ids from a few shrink data structures (#29360)
jeffwashington Jan 5, 2023
8cdf5cd
get_storage_to_move_to_ancient_append_vec returns a single append vec…
jeffwashington Jan 5, 2023
a140f06
use get_storage_for_slot() in tests (#29517)
jeffwashington Jan 5, 2023
dbac798
process_storage_slot takes a single append vec (#29519)
jeffwashington Jan 5, 2023
1e8a8e0
Stream the executed transaction count in the block notification (#29272)
lijunwangs Jan 5, 2023
5c9beef
fixes errors from clippy::useless_conversion (#29534)
behzadnouri Jan 5, 2023
d611cc2
Fixes format string (#29533)
brooksprumo Jan 5, 2023
d87128e
fixes errors from clippy::needless_borrow (#29535)
behzadnouri Jan 5, 2023
d3f45c6
shrink_slot_forced uses a single append vec (#29521)
jeffwashington Jan 5, 2023
3b7ebfe
migrate tests to use get_storage_for_slot (#29518)
jeffwashington Jan 5, 2023
12da2da
fixes errors from clippy::redundant_clone (#29536)
behzadnouri Jan 5, 2023
0581fc2
Update CI pipeline to only run `checks` step on version bump PRs (#29…
willhickey Jan 5, 2023
b71cb9d
simplifies sigverify copy_return_values (#29495)
behzadnouri Jan 5, 2023
72a7cbd
shrink fns take a single append vec (#29522)
jeffwashington Jan 5, 2023
a6bf68c
Refine appendvec sanitize error message to include path (#29541)
xiangzhu70 Jan 5, 2023
a6b492b
Removed assert on write_version ordering (#29530)
lijunwangs Jan 5, 2023
a0f045d
storage rebuilder regex cleanup (#29408)
xiangzhu70 Jan 6, 2023
0e00c18
Merge branch 'master' into api-docs-fix
nickfrosty Jan 6, 2023
06918f1
conflict fix
nickfrosty Jan 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/manage-stale-issues-and-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
exempt-issue-labels: blocked,do-not-close,feature-gate,security
exempt-pr-labels: blocked,do-not-close,feature-gate,security
# No actual changes get made in debug-only mode, so we can raise the operations ceiling.
operations-per-run: ${{ github.event_name == 'pull_request' && 100 || 67}}
operations-per-run: ${{ github.event_name == 'pull_request' && 1000 || 900}}
stale-issue-label: stale
stale-issue-message: "" # Leave no comment when marking as stale
stale-pr-label: stale
Expand Down
43 changes: 27 additions & 16 deletions Cargo.lock

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

5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ members = [
"entry",
"faucet",
"frozen-abi",
"frozen-abi/macro",
"genesis",
"genesis-utils",
"geyser-plugin-interface",
Expand All @@ -47,6 +48,7 @@ members = [
"perf",
"poh",
"poh-bench",
"program-runtime",
"program-test",
"programs/address-lookup-table",
"programs/address-lookup-table-tests",
Expand Down Expand Up @@ -77,9 +79,12 @@ members = [
"sdk/cargo-test-bpf",
"sdk/cargo-test-sbf",
"sdk/gen-headers",
"sdk/macro",
"sdk/program",
"send-transaction-service",
"stake-accounts",
"storage-bigtable",
"storage-bigtable/build-proto",
"storage-proto",
"streamer",
"sys-tuner",
Expand Down
52 changes: 33 additions & 19 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,47 @@
2. [Incident Response Process](#process)

<a name="reporting"></a>
## Reporting security problems to Solana
## Reporting security problems in the Solana Labs Validator Client

**DO NOT CREATE AN ISSUE** to report a security problem. Instead, please send an
email to security@solana.com and provide your github username so we can add you
to a new draft security advisory for further discussion.
**DO NOT CREATE A GITHUB ISSUE** to report a security problem.

For security reasons, DO NOT include attachments or provide detail sufficient for exploitation regarding the security issue in this email. Instead, wait for the advisory to be created, and **provide any sensitive details in the private GitHub advisory**.
Instead please use this [Report a Vulnerability](https://github.com/solana-labs/solana/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.

DO send the email from an email domain that is less likely to get flagged for spam by gmail.
Expect a response as fast as possible in the advisory, typically within 72 hours.

Expect a response as fast as possible, typically within 72 hours.
--

If you do not receive a response within that time frame, please do followup with the team directly. You can do this through discord (#core-technology) by pinging the admins of the channel and referencing the fact that you submitted a security bounty.
If you do not receive a response in the advisory, send an email to
security@solana.com 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**.

As above, please DO NOT include attachments or provide detail regarding the security issue in this email.
If you do not receive a response from security@solana.com please followup with
the team directly. You can do this in the `#core-technology` channel 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.

<a name="process"></a>
## Incident Response Process

In case an incident is discovered or reported, the following process will be followed to contain, respond and remediate:
In case an incident is discovered or reported, the following process will be
followed to contain, respond and remediate:

### 1. Establish a new draft security advisory
In response to an email to security@solana.com, a member of the solana-labs/admins group will
Create a new draft security advisory for the incident at https://github.com/solana-labs/solana/security/advisories
Add the reporter's github user and the solana-labs/security-incident-response group to the draft security advisory
Create a private fork of the repository (grey button towards the bottom of the page)
Respond to the reporter by email, sharing a link to the draft security advisory.
### 1. Accept the new report
In response a newly reported security problem, a member of the
`solana-labs/admins` group will accept the report to turn it into a draft
advisory. The `solana-labs/security-incident-response` group should be added to
the draft security advisory, and create a private fork of the repository (grey
button towards the bottom of the page) if necessary.

If the advisory is the result of an audit finding, follow the same process as above but add the auditor's github user(s) and begin the title with "[Audit]".

If the report is out of scope, a member of the `solana-labs/admins` group will
comment as such and then close the report.

### 2. Triage
Within the draft security advisory, discuss and determine the severity of the issue. If necessary, members of the solana-labs/security-incident-response group may add other github users to the advisory to assist.
If it is determined that this not a critical network issue then the advisory should be closed and if more follow-up is required a normal Solana public github issue should be created.
Expand Down Expand Up @@ -78,7 +87,10 @@ We currently do not use the Github workflow to publish security advisories. Once

<a name="bounty"></a>
## Security Bug Bounties
We offer bounties for critical security issues. Please see below for more details. Either a demonstration or a valid bug report is all that's necessary to submit a bug bounty. A patch to fix the issue isn't required.
The Solana Foundation offer bounties for critical Solana security issues. Please
see below for more details. Either a demonstration or a valid bug report is all
that's necessary to submit a bug bounty. A patch to fix the issue isn't
required.

#### Loss of Funds:
$2,000,000 USD in locked SOL tokens (locked for 12 months)
Expand All @@ -91,7 +103,7 @@ $1,000,000 USD in locked SOL tokens (locked for 12 months)
* Consensus safety violation
* Tricking a validator to accept an optimistic confirmation or rooted slot without a double vote, etc.

#### Liveness / Loss of Availability:
#### Liveness / Loss of Availability:
$400,000 USD in locked SOL tokens (locked for 12 months)
* Whereby consensus halts and requires human intervention
* Eclipse attacks,
Expand All @@ -101,7 +113,7 @@ $400,000 USD in locked SOL tokens (locked for 12 months)
$100,000 USD in locked SOL tokens (locked for 12 months)
* Remote resource exaustion via Non-RPC protocols

#### Supply Chain Attacks:
#### Supply Chain Attacks:
$100,000 USD in locked SOL tokens (locked for 12 months)
* Non-social attacks against source code change management, automated testing, release build, release publication and release hosting infrastructure of the monorepo.

Expand All @@ -117,6 +129,8 @@ The following components are out of scope for the bounty program
* Bugs in dependencies. Please take them upstream!
* Attacks that require social engineering
* Any undeveloped automated tooling (scanners, etc) results. (OK with developed PoC)
* Any asset whose source code does not exist in this repository (including, but not limited
to, any and all web properties not explicitly listed on this page)

### Eligibility:
* The participant submitting the bug report shall follow the process outlined within this document
Expand Down
3 changes: 1 addition & 2 deletions account-decoder/src/parse_address_lookup_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ mod test {
meta: lookup_table_meta,
addresses: Cow::Owned(addresses),
};
let lookup_table_data =
AddressLookupTable::serialize_for_tests(lookup_table.clone()).unwrap();
let lookup_table_data = AddressLookupTable::serialize_for_tests(lookup_table).unwrap();

let parsing_result = parse_address_lookup_table(&lookup_table_data).unwrap();
if let LookupTableAccountType::LookupTable(ui_lookup_table) = parsing_result {
Expand Down
6 changes: 3 additions & 3 deletions accounts-bench/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ use {
rayon::prelude::*,
solana_measure::measure::Measure,
solana_runtime::{
accounts::{
accounts::Accounts,
accounts_db::{
test_utils::{create_test_accounts, update_accounts_bench},
Accounts,
AccountShrinkThreshold, CalcAccountsHashDataSource,
},
accounts_db::{AccountShrinkThreshold, CalcAccountsHashDataSource},
accounts_index::AccountSecondaryIndexes,
ancestors::Ancestors,
rent_collector::RentCollector,
Expand Down
Loading