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

Wick run Audit / Dry Run and Enforce Functions #353

Closed
fawadasaurus opened this issue Jul 6, 2023 · 1 comment
Closed

Wick run Audit / Dry Run and Enforce Functions #353

fawadasaurus opened this issue Jul 6, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@fawadasaurus
Copy link
Contributor

Is your feature request related to a problem? Please describe.
In lieu #279, we should have a way that we can see what resource will be accessed and which components will access those resources. Additionally a whitelist functionality for resources should be available so components can be restricted to which resources they have access even if they are somehow given access accidentally.

Propose a solution
wick run app.wick --dry-run should load the application but not actually run the application but simply report on the list of all of the resources that are used by the application and which components access them.

wick run app.wick --enforce whitelist.wick should attempt to run the application but compare all of the resources to the resource whitelist and not run the application if it does not meet the requirements of the whitelist.

Example of whitelist.wick:

kind: wick/whitelist@v1
name: allowed_resources
metadata:
  version: 0.1.0
resources:
  - kind: wick/resource/url@v1
    whitelist:
    - value: https://api.google.com/*
       components: *
    - value: https://api.sendgrid.com/post
       components: "sendgrid"
    - value: postgres://mydb.local
       component: "db"
  ...

Describe alternatives you've considered
None

Additional context
None

@fawadasaurus fawadasaurus added enhancement New feature or request triage To be triaged labels Jul 6, 2023
@jsoverson jsoverson removed the triage To be triaged label Jul 14, 2023
@jsoverson
Copy link
Contributor

added via #411

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
None yet
Development

No branches or pull requests

2 participants