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

editorial: move provenance and VSA under spec dir #939

Merged
merged 4 commits into from
Aug 14, 2023

Conversation

MarkLodato
Copy link
Member

Redirect /provenance/v1 and /verification_summary/v1 to
/spec/v1.0/provenance and /spec/v1.0/verification_summary, respectively,
and similarly for older versions. (predicateType URIs do NOT change.)

Reasons for this change:

  • Make it obvious to the reader that all three are versioned together
    and that they form one cohesive specification.
  • Make it easier to implement versioning via branches/tags. Previously
    we would have had to have either three separate sets of branches/tags
    or three sets of directories within each branch/tag, and then merge
    files within one directory. Now we can have each version directory
    correspond to a branch/tag, which is simpler to understand and
    maintain.
  • To show the minor version in the URL bar, without affecting the
    major-version-only predicateType.

Related changes:

  • Redirect old URLs to the new location to allow them to continue
    working.
  • Update any existing links that would have been broken by the change,
    namely links to .md files and links using relative paths.
    • Do not update links to redirected URLs, in order to minimize the
      size of this PR. Optionally, a future PR could clean this up.
  • Move images and schema files too, since (a) links have to be updated
    anyway and (b) it aligns with impl: move images to versioned spec directory #936.
  • Fix the version selector to properly handle v0.2, which only exists
    for provenance and verification_summary.
    • Also remove the name "Core specification" from the banner since is
      now the only specification.
  • Add provenance and verification_summary the "onepage" view. This was
    not possible before.

Ideally this would have been broken up into smaller changes, but I could
not figure out a way to do so that would have left the site continuing
to work.

Redirect /provenance/v1 and /verification_summary/v1 to
/spec/v1.0/provenance and /spec/v1.0/verification_summary, respectively,
and similarly for older versions. (`predicateType` URIs do NOT change.)

Reasons for this change:

- Make it obvious to the reader that all three are versioned together
  and that they form one cohesive specification.
- Make it easier to implement versioning via branches/tags. Previously
  we would have had to have either three separate sets of branches/tags
  or three sets of directories within each branch/tag, and then merge
  files within one directory. Now we can have each version directory
  correspond to a branch/tag, which is simpler to understand and
  maintain.
- To show the minor version in the URL bar, without affecting the
  major-version-only `predicateType`.

Related changes:

- Redirect old URLs to the new location to allow them to continue
  working.
- Update any existing links that would have been broken by the change,
  namely links to `.md` files and links using relative paths.
  - Do not update links to redirected URLs, in order to minimize the
    size of this PR. Optionally, a future PR could clean this up.
- Move images and schema files too, since (a) links have to be updated
  anyway and (b) it aligns with slsa-framework#936.
- Fix the version selector to properly handle v0.2, which only exists
  for provenance and verification_summary.
  - Also remove the name "Core specification" from the banner since is
    now the only specification.
- Add provenance and verification_summary the "onepage" view. This was
  not possible before.

Ideally this would have been broken up into smaller changes, but I could
not figure out a way to do so that would have left the site continuing
to work.

Signed-off-by: Mark Lodato <lodato@google.com>
@netlify
Copy link

netlify bot commented Aug 3, 2023

Deploy Preview for slsa ready!

Name Link
🔨 Latest commit 62ba28a
🔍 Latest deploy log https://app.netlify.com/sites/slsa/deploys/64cc0f874823c20008148da4
😎 Deploy Preview https://deploy-preview-939--slsa.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Aug 3, 2023

Deploy Preview for slsa ready!

Name Link
🔨 Latest commit 458c9ce
🔍 Latest deploy log https://app.netlify.com/sites/slsa/deploys/64da653a2a0469000871d735
😎 Deploy Preview https://deploy-preview-939--slsa.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@MarkLodato
Copy link
Member Author

Although this is technically only an "editorial" change, I think it warrants having several reviewers since the URL is quite an important property.

@MarkLodato MarkLodato requested a review from kpk47 August 3, 2023 20:36
Previously the links on the nav bar used the old URLs, e.g.
/provenance/v1, which did not correctly highlight the current page.

Signed-off-by: Mark Lodato <lodato@google.com>
Copy link
Member

@joshuagl joshuagl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. Nice to see fewer directory traversals in our URLs.

@MarkLodato MarkLodato requested a review from lehors August 4, 2023 11:57
Signed-off-by: Mark Lodato <lodato@google.com>
Copy link
Member

@lehors lehors left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment but not a real problem. LGTM.

docs/_posts/2023-04-03-the-breadth-and-depth-of-slsa.md Outdated Show resolved Hide resolved
Signed-off-by: Mark Lodato <lodato@google.com>
@MarkLodato MarkLodato merged commit bab0fad into slsa-framework:main Aug 14, 2023
6 checks passed
@MarkLodato MarkLodato deleted the prov-and-vsa-to-spec branch August 14, 2023 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants