Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit 326c823

Browse files
authored
Merge pull request #96 from gtrivedi88/HACDOCS-326
Added content on Managing compliance with EC
2 parents 199b461 + 2c8cfcb commit 326c823

File tree

7 files changed

+99
-50
lines changed

7 files changed

+99
-50
lines changed

antora-lunr-ui/css/main.css

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
.toc.sidebar .toc-menu {
2-
padding-left: 100px !important;
3-
width: 600px !important;
4-
}
5-
6-
.doc {
7-
min-width: 900px;
8-
}
9-
101
.toolbar .edit-this-page a {
112
color: white !important;
123
}

antora-lunr-ui/img/logo.png

886 Bytes
Loading

antora-lunr-ui/partials/header-content.hbs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
<header class="header" role="banner">
22
<nav class="navbar">
3-
<div class="navbar-brand">
4-
<a class="navbar-item" href="{{or site.url (or siteRootUrl siteRootPath)}}">{{site.title}}</a>
5-
6-
<button class="navbar-burger" data-target="topbar-nav">
7-
<span></span>
8-
<span></span>
9-
<span></span>
10-
</button>
11-
</div>
3+
<div class="navbar-brand">
4+
<div class="navbar-item">
5+
<button class="navbar-burger" data-target="topbar-nav">
6+
<span></span>
7+
<span></span>
8+
<span></span>
9+
</button>
10+
<img src="{{uiRootPath}}/img/logo.png" class="navbar-logo" alt="App Studio logo">
11+
<a href="{{site.url}}/">{{site.title}}</a>
12+
</div>
13+
</div>
1214
<div id="topbar-nav" class="navbar-menu">
1315
<div class="navbar-end">
1416
<div class="button"><a href="https://redhat-appstudio.github.io/appstudio.docs.ui.io/" target="_blank">Home</a></div>

antora-playbook.yml

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -42,36 +42,9 @@ antora:
4242
- '@antora/collector-extension'
4343
- '@antora/lunr-extension'
4444

45-
asciidoc:
46-
attributes:
45+
urls:
46+
html_extension_style: indexify # For consistency with pages indexed by search engines, see https://docs.antora.org/antora/latest/playbook/urls-html-extension-style/
47+
redirect_facility: static # The least convenient, but only available redirect on our hosting platform, see https://docs.antora.org/antora/latest/playbook/urls-redirect-facility/
48+
latest_prerelease_version_segment: next # Override the version in the navigation https://docs.antora.org/antora/latest/playbook/urls-redirect-facility/
49+
latest_version_segment_strategy: replace # Consequence of static redirect, see https://docs.antora.org/antora/latest/playbook/urls-redirect-facility/
4750

48-
# Standard document attributes to be used in our documentation
49-
icons: font
50-
source-highlighter: highlightjs
51-
url-guide: https://red-hat-stone-soup.pages.redhat.com/stonesoup-documentation/
52-
idseparator: '-'
53-
page-pagination: '-'
54-
55-
# Product content attributes
56-
ProductName: App Studio
57-
ProductShortName: ''
58-
ProductRelease: ''
59-
ProductVersion: ''
60-
ProductPreviousVersion: ''
61-
ProductNextVersion: ''
62-
63-
# Repository URLs
64-
repoURL1: ''
65-
repoURL2: ''
66-
67-
# Name of APIs and their URLs
68-
APIName1: ''
69-
APIName2: ''
70-
71-
# Knowledge base article links
72-
# TBD
73-
74-
# Links to other projects
75-
Placeholder: ''
76-
Placeholder2: ''
77-
Placeholder3: ''

docs/antora.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,41 @@ nav:
1010
- modules/ROOT/nav-glossary.adoc
1111
- modules/ROOT/nav-contribute.adoc
1212
- modules/ROOT/nav-support.adoc
13+
14+
asciidoc:
15+
attributes:
16+
17+
# Standard document attributes to be used in our documentation
18+
icons: font
19+
source-language: asciidoc@
20+
source-highlighter: highlightjs
21+
url-guide: https://red-hat-stone-soup.pages.redhat.com/stonesoup-documentation/
22+
idseparator: '-'
23+
page-pagination: '-'
24+
idprefix: ''
25+
experimental: ""
26+
27+
# Product content attributes
28+
ProductName: App Studio
29+
context: app
30+
ProductShortName: ''
31+
ProductRelease: ''
32+
ProductVersion: ''
33+
ProductPreviousVersion: ''
34+
ProductNextVersion: ''
35+
36+
# Repository URLs
37+
repoURL1: ''
38+
repoURL2: ''
39+
40+
# Name of APIs and their URLs
41+
APIName1: ''
42+
APIName2: ''
43+
44+
# Knowledge base article links
45+
# TBD
46+
47+
# Links to other projects
48+
Placeholder: ''
49+
Placeholder2: ''
50+
Placeholder3: ''

docs/modules/ROOT/nav-how-to-guides.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
** xref:how-to-guides/proc_managed_services_onboarding.adoc[CLI: Managed services team onboarding]
1111
** xref:how-to-guides/delete_application.adoc[CLI: Deleting an application].
1212
** xref:how-to-guides/delete_application.adoc[Web UI: Deleting an application].
13+
** xref:how-to-guides/proc_managing-compliance-with-the-enterprise-contract.adoc[Web UI: Managing compliance with the Enterprise Contract]
1314
1415
////
1516
Commenting these out per HACDOCS-425 and -414
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
:_content-type: PROCEDURE
2+
3+
[id="managing-compliance-with-the-enterprise-contract_{context}"]
4+
= Managing compliance with the Enterprise Contract
5+
6+
The Enterprise Contract (EC) is an artifact verifier and customizable policy checker. You can use Enterprise Contract to keep your software supply chain secure and ensure conatiner images comply with your organization's policies. It does this by verifying the security and provenance of builds created through {ProductName}.
7+
8+
{ProductName}'s build process uses the Tekton Chains to generate a signed in-toto attestation of the build pipeline. The Enterprise Contract then uses this attestation to verify the build's integrity and compliance with a set of policies. These policies include best practices and any organization-specific requirements.
9+
10+
.Prerequisites
11+
12+
* You have created an application.
13+
* You have an upgraded build pipeline.
14+
15+
.Procedure
16+
17+
. Open an existing application and go to the *Integration tests* tab.
18+
. Select *Add integration test*.
19+
. In the *Integration test name* field, enter a name of your choosing.
20+
. In the *Image bundle* field, enter *quay.io/redhat-appstudio-tekton-catalog/pipeline-enterprise-contract:devel.*
21+
. In the *Pipeline to run* field, enter *enterprise-contract*.
22+
. Optional: If passing the this test is optional, and you do not want to prevent the application from being deployed or released, then select *Mark as optional for release*.
23+
. Select *Add Integration test*.
24+
. Trigger a new build by commiting a change in the GitHub repository of the application you are working with.
25+
26+
27+
.Verification
28+
29+
. On your application, go to the *Activity > Pipeline* runs tab.
30+
31+
. Select a pipeline run with *Type* as *Test*, and review the status of your test pipeline.
32+
33+
. You can also review pipeline run details, logs, task runs, and security details by selecting a pipeline run with *Type* as *Test*.
34+
35+
[role="_additional-resources"]
36+
.Additional resources
37+
* To generate a signed link:https://in-toto.io/in-toto/[in-toto] attestation of the build pipeline, go to link:https://tekton.dev/docs/chains/[Tekton Chains].
38+
* For information on the source code for the Tekton pipelines defined in the bundle, see the link:https://github.com/redhat-appstudio/build-definitions/blob/main/pipelines/enterprise-contract.yaml[build-definitions] and
39+
link:https://github.com/enterprise-contract/ec-cli/blob/main/tasks/verify-enterprise-contract/0.1/verify-enterprise-contract.yaml[ec-cli] repositories.
40+
* To use a specific version of the pipeline bundle instead of the devel tag, you can select one of the link:https://quay.io/repository/redhat-appstudio-tekton-catalog/pipeline-enterprise-contract?tab=tags[pinned tags].
41+
* For information on components in Enterprise Contract, see the link:https://enterprisecontract.dev/docs/ec/main/index.html#_components[Components].
42+
* For information on the Enterprise Contract policies designed for {ProductName}, see the link:https://enterprisecontract.dev/docs/ec-policies/index.html[Enterprise Contract Policies].
43+
44+

0 commit comments

Comments
 (0)