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

feat(template): enable remote file templating #680

Merged
merged 14 commits into from
Sep 27, 2024

Conversation

brandtkeller
Copy link
Member

Description

The purpose behind this change is to experiment with some workflows we could adopt for use with centralized oscal templates.

Use the network package for fetching files (local or remote)

Add helpers for uuid and timestamp in the go templating funcmap.

Testing

I created this templates repository to house a templated-remote component-definition containing our baseline controls. This is a prototype repo - we can move the future artifacts somewhere permanent in the future.

Copy the lula-config.yaml locally and execute:

./bin/lula tools template -f https://raw.githubusercontent.com/brandtkeller/templates/refs/heads/main/component.yaml

Related Issue

No related issue currently

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Other (security config, docs update, etc)

Checklist before merging

@brandtkeller brandtkeller added the enhancement New feature or request label Sep 24, 2024
@brandtkeller brandtkeller self-assigned this Sep 24, 2024
@brandtkeller brandtkeller changed the title Remote template proto helpers feat(template): enable remote file templating Sep 25, 2024
@brandtkeller brandtkeller marked this pull request as ready for review September 25, 2024 22:58
@brandtkeller brandtkeller requested a review from a team as a code owner September 25, 2024 22:58
@brandtkeller brandtkeller merged commit f16bcf6 into main Sep 27, 2024
5 checks passed
@brandtkeller brandtkeller deleted the remote_template_proto_helpers branch September 27, 2024 16:04
This was referenced Sep 27, 2024
This was referenced Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants