Skip to content

Commit

Permalink
feat(tooling): fix all report links and defers all audit content to t…
Browse files Browse the repository at this point in the history
…he new audit section (#1233)

- fix all report links and defers all audit content to the new audit section
- fix: update reports links UI
  • Loading branch information
hugomrdias authored Oct 21, 2020
1 parent afc848e commit 1b7a161
Show file tree
Hide file tree
Showing 14 changed files with 35 additions and 49 deletions.
2 changes: 1 addition & 1 deletion assets/_icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
stroke: currentColor;
fill: currentColor;
vertical-align: text-bottom;
margin: 2px 2px;
margin: 1px;
}
4 changes: 2 additions & 2 deletions content/algorithms/gossip_sub.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dashboardWeight: 2.0
dashboardState: stable
dashboardTests: 0
dashboardAudit: done
dashboardAuditURL: /#section-appendix.audit_reports.2020-06-03-gossipsub-design-and-implementation
dashboardAuditURL: /#section-appendix.audit_reports.gossipsub
dashboardAuditDate: '2020-06-03'
---

Expand All @@ -15,4 +15,4 @@ Transaction messages and block headers alongside the message references are prop

GossipSub is a gossip-based pubsub protocol that is utilising two types of links to propagate messages: i) _mesh links_ that carry full messages in an _eager-push_ (i.e., proactive send) manner and ii) _gossip-links_ that carry message identifiers only and realise a _lazy-pull_ (i.e., reactive request) propagation model. Mesh links form a global mesh-connected structure, where, once messages are received they are forwarded in full to mesh-connected nodes, realizing an "eager-push" model. Instead, gossip-links are utilized periodically to complement the mesh structure. During gossip propagation, only message headers are sent to a selected group of nodes in order to inform them of messages that they might not have received before. In this case, nodes ask for the full message, hence, realizing a reactive request, or "lazy pull" model.

GossipSub includes a number of security extensions and mitigation strategies that make the protocol robust against attacks. Please refer to the [protocol's specification](https://github.com/libp2p/specs/blob/master/pubsub/gossipsub/gossipsub-v1.1.md) for details on GossipSub's design, implementation and parameter settings, or to the [technical report](https://arxiv.org/abs/2007.02754) for the design rationale and a more detailed evaluation of the protocol.
GossipSub includes a number of security extensions and mitigation strategies that make the protocol robust against attacks. Please refer to the [protocol's specification](https://github.com/libp2p/specs/blob/master/pubsub/gossipsub/gossipsub-v1.1.md) for details on GossipSub's design, implementation and parameter settings, or to the [technical report](https://arxiv.org/abs/2007.02754) for the design rationale and a more detailed evaluation of the protocol.
4 changes: 0 additions & 4 deletions content/implementations/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,4 @@ Filecoin is targeting [multiple implementations](https://filecoin.io/blog/announ
- [Fuhon](https://github.com/filecoin-project/cpp-filecoin): the C++-based implementation, supported by [Soramitsu](https://soramitsu.co.jp),
- [Venus](https://github.com/filecoin-project/go-filecoin): a second Go-based implementation of Filecoin, previously called `go-filecoin`, which is maintained by the [IPFS-Force Community](https://github.com/ipfs-force-community).


{{<dashboard-impl>}}



6 changes: 3 additions & 3 deletions content/implementations/forest.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
title: Forest
title: Forest
weight: 3
dashboardWeight: 1
dashboardState: reliable
dashboardAudit: n/a
implRepos:
- { lang: rust, repo: https://github.com/ChainSafe/forest }
- { lang: rust, repo: https://github.com/ChainSafe/forest }
---

# Forest
Expand All @@ -14,4 +14,4 @@ Forest is an implementation of Filecoin written in Rust. The implementation will

You can find the Forest codebase [here](https://github.com/ChainSafe/forest) and the documentation site [here](https://chainsafe.github.io/forest/).

The Forest implementation of Filecoin is supported by [ChainSafe](https://chainsafe.io/).
The Forest implementation of Filecoin is supported by [ChainSafe](https://chainsafe.io/).
4 changes: 2 additions & 2 deletions content/implementations/fuhon.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ weight: 4
dashboardWeight: 1
dashboardState: reliable
dashboardAudit: n/a
implRepos:
implRepos:
- { lang: c++, repo: https://github.com/filecoin-project/cpp-filecoin }
---

Expand All @@ -14,4 +14,4 @@ Fuhon is the C++ implementation of Filecoin. The implementation uses Rust librar

You can find the Fuhon codebase [here](https://github.com/filecoin-project/cpp-filecoin).

The Fuhon implementation of Filecoin is supported by [Soramitsu](https://soramitsu.co.jp/).
The Fuhon implementation of Filecoin is supported by [Soramitsu](https://soramitsu.co.jp/).
21 changes: 6 additions & 15 deletions content/implementations/lotus.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,23 @@ weight: 1
dashboardWeight: 1
dashboardState: reliable
dashboardAudit: n/a
implRepos:
implRepos:
- repo: https://github.com/filecoin-project/lotus
lang: go
auditState: done
audits:
- auditDate: '2020-10-20'
auditURL: '/#section-appendix.audit_reports.2020-10-20-lotus-mainnet-ready-security-audit'
auditURL: /#section-appendix.audit_reports.lotus
- repo: https://github.com/filecoin-project/go-fil-markets
lang: go
auditState: done
audits:
- auditDate: '2020-10-20'
auditURL: '/#section-appendix.audit_reports.2020-10-20-lotus-mainnet-ready-security-audit'
auditURL: /#section-appendix.audit_reports.lotus
- repo: https://github.com/filecoin-project/specs-actors
lang: go
auditState: done
audits:
- auditDate: '2020-10-19'
auditURL: '/#section-appendix.audit_reports.2020-10-19-actors-audit'
auditURL: /#section-appendix.audit_reports.actors
- repo: https://github.com/filecoin-project/rust-fil-proofs
lang: rust
auditState: done
audits:
- auditDate: '2020-07-28'
auditURL: /#section-appendix.audit_reports.2020-07-28-filecoin-proving-subsystem
- auditDate: '2020-07-28'
auditURL: /#section-appendix.audit_reports.2020-07-28-zk-snark-proofs
auditURL: /#section-appendix.audit_reports.proofs
---

# Lotus
Expand All @@ -40,6 +30,7 @@ Lotus is an implementation of the Filecoin Distributed Storage Network. Lotus is
You can run the Lotus software client to join the Filecoin Testnet. Lotus can run on MacOS and Linux. Windows is not supported yet.

The two main components of Lotus are:

1. **The Lotus Node** can sync the blockchain, validating all blocks, transfers, and deals along the way. It can also facilitate the creation of new storage deals. Running this type of node is ideal for users that do not wish to contribute storage to the network, produce new blocks and extend the blockchain.
2. **The Lotus Storage Miner** can register as a miner in the network, register storage, accept deals and store data. The Lotus Storage Miner can produce blocks, extend the blockchain and receive rewards for new blocks added to the network.

Expand Down
2 changes: 1 addition & 1 deletion content/implementations/venus.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ weight: 2
dashboardWeight: 1
dashboardState: reliable
dashboardAudit: n/a
implRepos:
implRepos:
- { lang: go, repo: https://github.com/filecoin-project/venus }
---

Expand Down
2 changes: 1 addition & 1 deletion content/libraries/drand/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dashboardWeight: 2
dashboardState: stable
dashboardTests: 0
dashboardAudit: done
dashboardAuditURL: /#section-appendix.audit_reports.2020-08-09-drand
dashboardAuditURL: /#section-appendix.audit_reports.drand
dashboardAuditDate: '2020-08-09'
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ weight: 1
dashboardWeight: 2
dashboardState: reliable
dashboardAudit: done
dashboardAuditURL: /#section-appendix.audit_reports.specs-actors
dashboardAuditURL: /#section-appendix.audit_reports.actors
dashboardAuditDate: '2020-10-19'
dashboardTests: 0
math-mode: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ weight: 5
dashboardWeight: 2
dashboardState: wip
dashboardAudit: done
dashboardAuditURL: /#section-appendix.audit_reports.specs-actors
dashboardAuditURL: /#section-appendix.audit_reports.actors
dashboardAuditDate: '2020-10-19'
dashboardTests: 0
---
Expand Down
2 changes: 1 addition & 1 deletion content/systems/filecoin_token/multisig.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ bookCollapseSection: true
dashboardWeight: 1
dashboardState: reliable
dashboardAudit: done
dashboardAuditURL: /#section-appendix.audit_reports.specs-actors
dashboardAuditURL: /#section-appendix.audit_reports.actors
dashboardAuditDate: '2020-10-19'
dashboardTests: 0
---
Expand Down
2 changes: 1 addition & 1 deletion content/systems/filecoin_vm/sysactors/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ bookCollapseSection: true
dashboardWeight: 2
dashboardState: reliable
dashboardAudit: done
dashboardAuditURL: /#section-appendix.audit_reports.specs-actors
dashboardAuditURL: /#section-appendix.audit_reports.actors
dashboardAuditDate: '2020-10-19'
dashboardTests: 0
---
Expand Down
25 changes: 11 additions & 14 deletions layouts/shortcodes/dashboard-impl.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,25 +49,22 @@
<td class="text-black bg-{{ $repoItem.auditState | default "missing" }}">
{{ if eq $repoItem.auditState "wip" }}
WIP
{{ else if and (eq $repoItem.auditState "done") (isset $repoItem "audits") }}
{{ else }}
{{ humanize $repoItem.auditState | default "Missing" }}
{{ end }}
{{ if isset $repoItem "audits" }}
{{ range $auditIndex, $audit := $repoItem.audits }}
{{ if hasPrefix $audit.auditURL "http" }}
<a href="{{ $audit.auditURL }}" title="Read the audit report - {{ $audit.auditDate }}" target="_blank" rel="noopener noreferrer" class="text-black">
[{{ add $auditIndex 1 }}<svg class="icon">
{{ else if isset $repoItem "auditURL" }}
{{ if hasPrefix $repoItem.auditURL "http" }}
<a href="{{ $repoItem.auditURL }}" title="Read the audit reports" target="_blank" rel="noopener noreferrer">
Reports<svg class="icon">
<use xlink:href="/symbol-defs.svg#icon-external-link"></use>
</svg>]
</svg>
</a>
{{ else }}
<a href="{{ $audit.auditURL }}" title="Read the audit report - {{ $audit.auditDate }}" class="text-black">
[{{ add $auditIndex 1 }}]
<a href="{{ $repoItem.auditURL }}" title="Read the audit reports">
<svg class="icon">
<use xlink:href="/symbol-defs.svg#icon-shield"></use>
</svg>Reports
</a>
{{ end }}

{{ end }}
{{ else }}
{{ humanize $repoItem.auditState | default "Missing" }}
{{ end }}
</td>
</tr>
Expand Down
6 changes: 4 additions & 2 deletions layouts/shortcodes/dashboard-spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,13 @@
{{ template "humanizeState" .dashboardAudit }}
{{- else -}}
{{- if hasPrefix .dashboardAuditURL "http" -}}
<a href="{{ .dashboardAuditURL }}" title="Read the audit report" target="_blank" rel="noopener noreferrer" class="text-black">{{.dashboardAuditDate}}<svg class="icon">
<a href="{{ .dashboardAuditURL }}" title="Read the audit report" target="_blank" rel="noopener noreferrer">{{.dashboardAuditDate}}<svg class="icon">
<use xlink:href="/symbol-defs.svg#icon-external-link"></use>
</svg></a>
{{- else -}}
<a href="{{ .dashboardAuditURL }}" title="Read the audit report" class="text-black">{{.dashboardAuditDate}}</a>
<a href="{{ .dashboardAuditURL }}" title="Read the audit reports"><svg class="icon">
<use xlink:href="/symbol-defs.svg#icon-shield"></use>
</svg>Reports</a>
{{- end -}}
{{- end -}}
</td>
Expand Down

0 comments on commit 1b7a161

Please sign in to comment.