Skip to content

Commit 7bb5b6b

Browse files
authored
Docs clarification for NOC certs (#587)
Added some clarification notes to docs and CLI commands that NOC Root == RCAC and NOC ICA == ICAC
1 parent 5d4f0fe commit 7bb5b6b

11 files changed

+56
-55
lines changed

docs/transactions.md

+43-42
Original file line numberDiff line numberDiff line change
@@ -1354,16 +1354,16 @@ Should be sent to trusted nodes only.
13541354

13551355
### E2E (NOC)
13561356

1357-
#### ADD_NOC_ROOT
1357+
#### ADD_NOC_ROOT (RCAC)
13581358

13591359
**Status: Implemented**
13601360

1361-
This transaction adds a NOC root certificate owned by the Vendor.
1361+
This transaction adds a NOC root certificate (RCAC) owned by the Vendor.
13621362

13631363
- Who can send
13641364
- Vendor account
13651365
- Parameters:
1366-
- cert: `string` - The NOC Root Certificate, encoded in X.509v3 PEM format. Can be a PEM string or a file path.
1366+
- cert: `string` - The NOC Root Certificate (RCAC), encoded in X.509v3 PEM format. Can be a PEM string or a file path.
13671367
- schemaVersion: `optional(uint16)` - Certificate's schema version to support backward/forward compatability(default 0)
13681368
- In State:
13691369
- `pki/ApprovedCertificates/value/<Subject>/<SubjectKeyID>`
@@ -1373,27 +1373,27 @@ This transaction adds a NOC root certificate owned by the Vendor.
13731373
- CLI Command:
13741374
- `dcld tx pki add-noc-x509-root-cert --certificate=<string-or-path> --from=<account>`
13751375
- Validation:
1376-
- the provided certificate must be a root certificate:
1376+
- the provided certificate must be a root certificate (RCAC):
13771377
- `Issuer` == `Subject`
13781378
- `Authority Key Identifier` == `Subject Key Identifier`
13791379
- no existing certificate with the same `<Certificate's Issuer>:<Certificate's Serial Number>` combination.
13801380
- if certificates with the same `<Certificate's Subject>:<Certificate's Subject Key ID>` combination already exist:
1381-
- the existing certificate must be NOC root certificate
1381+
- the existing certificate must be NOC root certificate (RCAC)
13821382
- the sender's VID must match the `vid` field of the existing certificates.
13831383
- the signature (self-signature) and expiration date must be valid.
13841384

1385-
#### REVOKE_NOC_ROOT
1385+
#### REVOKE_NOC_ROOT (RCAC)
13861386

13871387
**Status: Implemented**
13881388

1389-
This transaction revokes a NOC root certificate owned by the Vendor.
1390-
Revoked NOC root certificates can be re-added using the [ADD_NOC_ROOT](#add_noc_root) transaction.
1389+
This transaction revokes a NOC root certificate (RCAC) owned by the Vendor.
1390+
Revoked NOC root certificates (RCACs) can be re-added using the [ADD_NOC_ROOT](#add_noc_root-(rcac)) transaction.
13911391

13921392
Revocation works as a soft-delete, meaning that the certificates are not entirely removed but moved from the approved list to the revoked list.
13931393
Revoked certificates can be retrieved by using the [GET_REVOKED_CERT](#get_revoked_cert) query.
13941394

13951395
- Who can send: Vendor account
1396-
- Vid field associated with the corresponding NOC root certificate on the ledger must be equal to the Vendor account's VID.
1396+
- Vid field associated with the corresponding NOC root certificate (RCAC) on the ledger must be equal to the Vendor account's VID.
13971397
- Parameters:
13981398
- subject: `string` - base64 encoded subject DER sequence bytes of the certificate.
13991399
- subject_key_id: `string` - certificate's `Subject Key Id` in hex string format, e.g., `5A:88:0E:6C:36:53:D0:7F:B0:89:71:A3:F4:73:79:09:30:E6:2B:DB`.
@@ -1407,19 +1407,19 @@ Revoked certificates can be retrieved by using the [GET_REVOKED_CERT](#get_revok
14071407
- CLI command:
14081408
- `dcld tx pki revoke-noc-x509-root-cert --subject=<base64 string> --subject-key-id=<hex string> --serial-number=<string> --info=<string> --time=<int64> --revoke-child=<bool> --from=<account>`
14091409
- Validation:
1410-
- a NOC Root Certificate with the provided `subject` and `subject_key_id` must exist in the ledger.
1410+
- a NOC Root Certificate (RCAC) with the provided `subject` and `subject_key_id` must exist in the ledger.
14111411

1412-
#### REMOVE_NOC_ROOT
1412+
#### REMOVE_NOC_ROOT (RCAC)
14131413

14141414
**Status: Implemented**
14151415

1416-
This transaction completely removes the given NOC root certificate owned by the Vendor from the ledger.
1417-
Removed NOC root certificates can be re-added using the [ADD_NOC_ROOT](#add_noc_root) transaction.
1416+
This transaction completely removes the given NOC root certificate (RCAC) owned by the Vendor from the ledger.
1417+
Removed NOC root certificates (RCACs) can be re-added using the [ADD_NOC_ROOT](#add_noc_root-(rcac)) transaction.
14181418

14191419
- Who can send: Vendor account
14201420
- Vid field associated with the corresponding NOC certificate on the ledger must be equal to the Vendor account's VID.
14211421
- Validation:
1422-
- a NOC Root Certificate with the provided `subject` and `subject_key_id` must exist in the ledger.
1422+
- a NOC Root Certificate (RCAC) with the provided `subject` and `subject_key_id` must exist in the ledger.
14231423
- Parameters:
14241424
- subject: `string` - base64 encoded subject DER sequence bytes of the certificate.
14251425
- subject_key_id: `string` - certificate's `Subject Key Id` in hex string format, e.g., `5A:88:0E:6C:36:53:D0:7F:B0:89:71:A3:F4:73:79:09:30:E6:2B:DB`.
@@ -1429,11 +1429,11 @@ Removed NOC root certificates can be re-added using the [ADD_NOC_ROOT](#add_noc_
14291429

14301430

14311431

1432-
#### ADD_NOC_ICA
1432+
#### ADD_NOC_ICA (ICAC)
14331433

14341434
**Status: Implemented**
14351435

1436-
This transaction adds a NOC ICA certificate owned by the Vendor signed by a chain of certificates which must be
1436+
This transaction adds a NOC ICA certificate (ICAC) owned by the Vendor signed by a chain of certificates which must be
14371437
already present on the ledger.
14381438

14391439
- Who can send: Vendor account
@@ -1461,12 +1461,12 @@ already present on the ledger.
14611461
- CLI Command:
14621462
- `dcld tx pki add-noc-x509-ica-cert --certificate=<string-or-path> --from=<account>`
14631463

1464-
#### REVOKE_NOC_ICA
1464+
#### REVOKE_NOC_ICA (ICAC)
14651465

14661466
**Status: Implemented**
14671467

1468-
This transaction revokes a NOC ICA certificate owned by the Vendor.
1469-
Revoked NOC ICA certificates can be re-added using the [ADD_NOC_ICA](#add_noc_ica) transaction.
1468+
This transaction revokes a NOC ICA certificate (ICAC) owned by the Vendor.
1469+
Revoked NOC ICA certificates (ICACs) can be re-added using the [ADD_NOC_ICA](#add_noc_ica-(icac)) transaction.
14701470

14711471
Revocation works as a soft-delete, meaning that the certificates are not entirely removed but moved from the approved list to the revoked list.
14721472
Revoked certificates can be retrieved by using the [GET_REVOKED_CERT](#get_revoked_cert) query.
@@ -1487,17 +1487,17 @@ Revoked certificates can be retrieved by using the [GET_REVOKED_CERT](#get_revok
14871487
- CLI command:
14881488
- `dcld tx pki revoke-noc-x509-ica-cert --subject=<base64 string> --subject-key-id=<hex string> --serial-number=<string> --info=<string> --time=<int64> --revoke-child=<bool> --from=<account>`
14891489

1490-
#### REMOVE_NOC_ICA
1490+
#### REMOVE_NOC_ICA (ICAC)
14911491

14921492
**Status: Implemented**
14931493

1494-
This transaction completely removes the given NOC ICA owned by the Vendor from the ledger.
1495-
Removed NOC ICA certificates can be re-added using the [ADD_NOC_ICA](#add_noc_ica) transaction.
1494+
This transaction completely removes the given NOC ICA (ICAC) owned by the Vendor from the ledger.
1495+
Removed NOC ICA certificates (ICACs) can be re-added using the [ADD_NOC_ICA](#add_noc_ica-(icac)) transaction.
14961496

14971497
- Who can send: Vendor account
14981498
- Vid field associated with the corresponding NOC certificate on the ledger must be equal to the Vendor account's VID.
14991499
- Validation:
1500-
- a NOC ICA Certificate with the provided `subject` and `subject_key_id` must exist in the ledger.
1500+
- a NOC ICA Certificate (ICAC) with the provided `subject` and `subject_key_id` must exist in the ledger.
15011501
- Parameters:
15021502
- subject: `string` - base64 encoded subject DER sequence bytes of the certificate.
15031503
- subject_key_id: `string` - certificate's `Subject Key Id` in hex string format, e.g., `5A:88:0E:6C:36:53:D0:7F:B0:89:71:A3:F4:73:79:09:30:E6:2B:DB`.
@@ -1506,14 +1506,14 @@ Removed NOC ICA certificates can be re-added using the [ADD_NOC_ICA](#add_noc_ic
15061506
- `dcld tx pki remove-noc-x509-ica-cert --subject=<base64 string> --subject-key-id=<hex string> --from=<account>`
15071507

15081508

1509-
#### GET_NOC_ROOT_BY_VID
1509+
#### GET_NOC_ROOT_BY_VID (RCACs)
15101510

15111511
**Status: Implemented**
15121512

1513-
Retrieve NOC root certificates associated with a specific VID.
1513+
Retrieve NOC root certificates (RCACs) associated with a specific VID.
15141514

1515-
Revoked NOC root certificates are not returned.
1516-
Use [GET_ALL_REVOKED_NOC_ROOT](#get_revoked_noc_root) to get a list of all revoked NOC root certificates.
1515+
Revoked NOC root certificates (RCACs) are not returned.
1516+
Use [GET_ALL_REVOKED_NOC_ROOT](#get_all_revoked_noc_root-(rcacs)) to get a list of all revoked NOC root certificates (RCACs).
15171517

15181518
- Who can send: Any account
15191519
- Parameters:
@@ -1523,15 +1523,16 @@ Use [GET_ALL_REVOKED_NOC_ROOT](#get_revoked_noc_root) to get a list of all revok
15231523
- REST API:
15241524
- GET `/dcl/pki/noc-root-certificates/{vid}`
15251525

1526-
#### GET_NOC_BY_VID_AND_SKID
1526+
#### GET_NOC_BY_VID_AND_SKID (RCACs/ICACs)
15271527

15281528
**Status: Implemented**
15291529

1530-
Retrieve NOC (Root/ICA) certificates associated with a specific VID and subject key ID.
1530+
Retrieve NOC (Root/ICA) certificates (RCACs/ICACs) associated with a specific VID and subject key ID.
15311531
This request also returns the Trust Quotient (TQ) value of the certificate
15321532

15331533
Revoked NOC certificates are not returned.
1534-
Use [GET_ALL_REVOKED_NOC_ROOT](#get_revoked_noc_root) to get a list of all revoked NOC root certificates.
1534+
Use [GET_ALL_REVOKED_NOC_ROOT](#get_all_revoked_noc_root-(rcacs)) to get a list of all revoked NOC root certificates.
1535+
Use [GET_ALL_REVOKED_CERT](#get_all_revoked_certs) to get a list of all revoked certificates (including ICACs).
15351536

15361537
- Who can send: Any account
15371538
- Parameters:
@@ -1542,11 +1543,11 @@ Use [GET_ALL_REVOKED_NOC_ROOT](#get_revoked_noc_root) to get a list of all revok
15421543
- REST API:
15431544
- GET `/dcl/pki/noc-certificates/{vid}/{subject_key_id}`
15441545

1545-
#### GET_NOC_ICA_BY_VID
1546+
#### GET_NOC_ICA_BY_VID (ICACs)
15461547

15471548
**Status: Implemented**
15481549

1549-
Retrieve NOC ICA certificates associated with a specific VID.
1550+
Retrieve NOC ICA certificates (ICACs) associated with a specific VID.
15501551

15511552
Revoked certificates are not returned.
15521553
Use [GET_ALL_REVOKED_CERT](#get_all_revoked_certs) to get a list of all revoked certificates.
@@ -1559,11 +1560,11 @@ Use [GET_ALL_REVOKED_CERT](#get_all_revoked_certs) to get a list of all revoked
15591560
- REST API:
15601561
- GET `/dcl/pki/noc-ica-certificates/{vid}`
15611562

1562-
#### GET_REVOKED_NOC_ROOT
1563+
#### GET_REVOKED_NOC_ROOT (RCAC)
15631564

15641565
**Status: Implemented**
15651566

1566-
Gets a revoked NOC root certificate by the given subject and subject key ID attributes.
1567+
Gets a revoked NOC root certificate (RCAC) by the given subject and subject key ID attributes.
15671568

15681569
Revocation works as a soft-delete, meaning that the certificates are not entirely removed but moved from the approved list to the revoked list.
15691570

@@ -1575,14 +1576,14 @@ Revocation works as a soft-delete, meaning that the certificates are not entirel
15751576
- REST API:
15761577
- GET `/dcl/pki/revoked-noc-root-certificates/{subject}/{subject_key_id}`
15771578

1578-
#### GET_ALL_NOC_ROOT
1579+
#### GET_ALL_NOC_ROOT (RCACs)
15791580

15801581
**Status: Implemented**
15811582

1582-
Retrieve a list of all of NOC root certificates.
1583+
Retrieve a list of all of NOC root certificates (RCACs).
15831584

1584-
Revoked NOC root certificates are not returned.
1585-
Use [GET_ALL_REVOKED_NOC_ROOT](#get_revoked_noc_root) to get a list of all revoked NOC root certificates.
1585+
Revoked NOC root certificates (RCACs) are not returned.
1586+
Use [GET_ALL_REVOKED_NOC_ROOT](#get_all_revoked_noc_root-(rcacs)) to get a list of all revoked NOC root certificates (RCACs).
15861587

15871588
- Who can send: Any account
15881589
- Parameters:
@@ -1592,11 +1593,11 @@ Use [GET_ALL_REVOKED_NOC_ROOT](#get_revoked_noc_root) to get a list of all revok
15921593
- REST API:
15931594
- GET `/dcl/pki/noc-root-certificates`
15941595

1595-
#### GET_ALL_NOC_ICA
1596+
#### GET_ALL_NOC_ICA (ICACs)
15961597

15971598
**Status: Implemented**
15981599

1599-
Retrieve a list of all of NOC ICA certificates
1600+
Retrieve a list of all of NOC ICA certificates (ICACs).
16001601

16011602
Revoked certificates are not returned.
16021603
Use [GET_ALL_REVOKED_CERT](#get_all_revoked_certs) to get a list of all revoked certificates.
@@ -1609,9 +1610,9 @@ Use [GET_ALL_REVOKED_CERT](#get_all_revoked_certs) to get a list of all revoked
16091610
- REST API:
16101611
- GET `/dcl/pki/noc-ica-certificates`
16111612

1612-
#### GET_ALL_REVOKED_NOC_ROOT
1613+
#### GET_ALL_REVOKED_NOC_ROOT (RCACs)
16131614

1614-
Gets all revoked NOC root certificates.
1615+
Gets all revoked NOC root certificates (RCACs).
16151616

16161617
Revocation works as a soft-delete, meaning that the certificates are not entirely removed but moved from the approved list to the revoked list.
16171618

x/pki/client/cli/query_noc_certificates.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
func CmdListNocIcaCertificates() *cobra.Command {
1616
cmd := &cobra.Command{
1717
Use: "all-noc-x509-ica-certs",
18-
Short: "Gets all NOC ICA certificates",
18+
Short: "Gets all NOC ICA certificates (ICACs)",
1919
RunE: func(cmd *cobra.Command, args []string) error {
2020
clientCtx := client.GetClientContextFromCmd(cmd)
2121

@@ -49,7 +49,7 @@ func CmdShowNocIcaCertificates() *cobra.Command {
4949
var vid int32
5050
cmd := &cobra.Command{
5151
Use: "noc-x509-ica-certs",
52-
Short: "Gets NOC ICA certificates by VID",
52+
Short: "Gets NOC ICA certificates (ICACs) by VID",
5353
Args: cobra.ExactArgs(0),
5454
RunE: func(cmd *cobra.Command, args []string) (err error) {
5555
clientCtx := client.GetClientContextFromCmd(cmd)

x/pki/client/cli/query_noc_certificates_by_vid_skid.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func CmdShowNocCertificatesByVidAndSkid() *cobra.Command {
1717

1818
cmd := &cobra.Command{
1919
Use: "noc-x509-certs",
20-
Short: "Gets NOC certificates by VID and Skid",
20+
Short: "Gets NOC (Root/ICA) certificates (RCAC/ICAC) by VID and Skid",
2121
Args: cobra.ExactArgs(0),
2222
RunE: func(cmd *cobra.Command, args []string) (err error) {
2323
clientCtx := client.GetClientContextFromCmd(cmd)

x/pki/client/cli/query_noc_root_certificates.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
func CmdListNocRootCertificates() *cobra.Command {
1515
cmd := &cobra.Command{
1616
Use: "all-noc-x509-root-certs",
17-
Short: "Gets all NOC root certificates",
17+
Short: "Gets all NOC root certificates (RCACs)",
1818
RunE: func(cmd *cobra.Command, args []string) error {
1919
clientCtx := client.GetClientContextFromCmd(cmd)
2020

@@ -51,7 +51,7 @@ func CmdShowNocRootCertificates() *cobra.Command {
5151

5252
cmd := &cobra.Command{
5353
Use: "noc-x509-root-certs",
54-
Short: "Gets NOC root certificates by VID",
54+
Short: "Gets NOC root certificates (RCACs) by VID",
5555
Args: cobra.ExactArgs(0),
5656
RunE: func(cmd *cobra.Command, args []string) (err error) {
5757
clientCtx := client.GetClientContextFromCmd(cmd)

x/pki/client/cli/query_revoked_noc_root_certificates.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
func CmdListRevokedNocRootCertificates() *cobra.Command {
1616
cmd := &cobra.Command{
1717
Use: "all-revoked-noc-x509-root-certs",
18-
Short: "Gets all revoked noc root certificates",
18+
Short: "Gets all revoked noc root certificates (RCACs)",
1919
RunE: func(cmd *cobra.Command, args []string) error {
2020
clientCtx := client.GetClientContextFromCmd(cmd)
2121

@@ -56,7 +56,7 @@ func CmdShowRevokedNocRootCertificates() *cobra.Command {
5656

5757
cmd := &cobra.Command{
5858
Use: "revoked-noc-x509-root-cert",
59-
Short: "Gets revoked noc root certificates " +
59+
Short: "Gets revoked noc root certificates (RCACs)" +
6060
"by the given combination of subject and subject-key-id",
6161
Args: cobra.ExactArgs(0),
6262
RunE: func(cmd *cobra.Command, args []string) (err error) {

x/pki/client/cli/tx_add_noc_x_509_cert.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func CmdAddNocX509IcaCert() *cobra.Command {
2222
)
2323
cmd := &cobra.Command{
2424
Use: "add-noc-x509-ica-cert",
25-
Short: "Adds NOC non-root certificate",
25+
Short: "Adds NOC non-root certificate (ICAC)",
2626
Args: cobra.ExactArgs(0),
2727
RunE: func(cmd *cobra.Command, args []string) (err error) {
2828
clientCtx, err := client.GetClientTxContext(cmd)

x/pki/client/cli/tx_add_noc_x_509_root_cert.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func CmdAddNocX509RootCert() *cobra.Command {
2121
)
2222
cmd := &cobra.Command{
2323
Use: "add-noc-x509-root-cert",
24-
Short: "Adds NOC root certificate",
24+
Short: "Adds NOC root certificate (RCAC)",
2525
Args: cobra.ExactArgs(0),
2626
RunE: func(cmd *cobra.Command, args []string) (err error) {
2727
clientCtx, err := client.GetClientTxContext(cmd)

x/pki/client/cli/tx_remove_noc_x_509_ica_cert.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var _ = strconv.Itoa(0)
1818
func CmdRemoveNocX509IcaCert() *cobra.Command {
1919
cmd := &cobra.Command{
2020
Use: "remove-noc-x509-ica-cert",
21-
Short: "Removes the given NOC ICA intermediate or leaf certificate.",
21+
Short: "Removes the given NOC ICA intermediate or leaf certificate (ICAC).",
2222
Args: cobra.ExactArgs(0),
2323
RunE: func(cmd *cobra.Command, args []string) (err error) {
2424
clientCtx, err := client.GetClientTxContext(cmd)

x/pki/client/cli/tx_remove_noc_x_509_root_cert.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var _ = strconv.Itoa(0)
1818
func CmdRemoveNocX509RootCert() *cobra.Command {
1919
cmd := &cobra.Command{
2020
Use: "remove-noc-x509-root-cert",
21-
Short: "Removes the given NOC root certificate from the ledger.",
21+
Short: "Removes the given NOC root certificate (RCAC) from the ledger.",
2222
Args: cobra.ExactArgs(0),
2323
RunE: func(cmd *cobra.Command, args []string) (err error) {
2424
clientCtx, err := client.GetClientTxContext(cmd)

x/pki/client/cli/tx_revoke_noc_root_x_509_cert.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var _ = strconv.Itoa(0)
1818
func CmdRevokeNocX509RootCert() *cobra.Command {
1919
cmd := &cobra.Command{
2020
Use: "revoke-noc-x509-root-cert",
21-
Short: "Revokes the given noc root certificate. " +
21+
Short: "Revokes the given noc root certificate (RCAC). " +
2222
"If revoke-child flag is set to true then all the noc certificates in the subtree signed by the revoked " +
2323
"certificate will be revoked as well.",
2424
Args: cobra.ExactArgs(0),

x/pki/client/cli/tx_revoke_noc_x_509_cert.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var _ = strconv.Itoa(0)
1818
func CmdRevokeNocX509IcaCert() *cobra.Command {
1919
cmd := &cobra.Command{
2020
Use: "revoke-noc-x509-ica-cert",
21-
Short: "Revokes the given NOC intermediate or leaf certificate. " +
21+
Short: "Revokes the given NOC intermediate or leaf certificate (ICAC). " +
2222
"If revoke-child flag is set to true then all the certificates in the subtree signed by the revoked " +
2323
"certificate will be revoked as well.",
2424
Args: cobra.ExactArgs(0),

0 commit comments

Comments
 (0)