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

Kiln validate resource type allow list #501

Merged
merged 8 commits into from
Oct 3, 2024

Conversation

jajita
Copy link
Contributor

@jajita jajita commented Aug 9, 2024

Golden Path requires tile authors to only use artifactory. This new flag allows us to upstream the requirement to Kiln.

This doesn't introduce any breaking changes; new behavior is effectively feature flagged.

Story Id: TPCF-10575

@jajita jajita added tas-slingshots Created by https://github.com/orgs/pivotal-cf/teams/tas-strategic-initiatives-slingshot enhancement ready-for-review labels Aug 9, 2024
@jajita jajita force-pushed the kiln-validate-resource-type-allow-list branch from 1a8d501 to b000bbe Compare October 3, 2024 19:23
@pvaramballypivot
Copy link
Member

I just want to confirm that you need to pass all release source types for kiln to validate the file if you pass the new flag.

../kiln/kiln validate -kf tas/Kilnfile -vr github_access_token=ed -vr artifactory_username=foo -vr artifactory_password=bar --allow-release-source-type=github --allow-release-source-type=[bosh.io](http://bosh.io/) --allow-release-source-type=artifactory

Meaning, if I just pass one of them, lets say github, should it throw an error that artifactory and bosh.io are not allowed? That's what it is doing now.

Please confirm and il merge the PR

@jajita
Copy link
Contributor Author

jajita commented Oct 3, 2024

@pvaramballypivot Yes, that's right. If the flag is passed and the source type is not in the allow list, it should error out.

@pvaramballypivot pvaramballypivot merged commit e589cc1 into main Oct 3, 2024
3 checks passed
@pvaramballypivot pvaramballypivot deleted the kiln-validate-resource-type-allow-list branch October 3, 2024 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ready-for-review tas-slingshots Created by https://github.com/orgs/pivotal-cf/teams/tas-strategic-initiatives-slingshot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants