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

fix various bugs related to policy checks #535

Merged
merged 1 commit into from
Jan 22, 2023

Conversation

connorsmith256
Copy link
Contributor

@connorsmith256 connorsmith256 commented Jan 21, 2023

This PR fixes a few bugs that would prevent actors/providers from starting/invocations from being processed. I also refactored start_actor to have significantly less nesting in an attempt to make it easier to read.

I tested these changes by:

  • starting a host
  • starting actors on the host (including multiple counts)
  • starting providers on the host
  • linking actors and providers
  • issuing requests that generate both actor -> provider and provider -> actor invocations

Everything seems to be working now

Signed-off-by: Connor Smith [email protected]

contractId: target["contract_id"],
linkName: target["link_name"],
issuer: target_claims[:iss]
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These were mistakingly removed

@@ -71,7 +72,7 @@ defmodule HostCore.Policy.Manager do
publicKey: host_config.host_key,
issuer: host_config.cluster_key,
latticeId: host_config.lattice_prefix,
labels: host_config.labels,
labels: labels,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

host_config does not contain a :labels key, causing this to silently fail every time the function is called

Copy link
Member

@autodidaddict autodidaddict left a comment

Choose a reason for hiding this comment

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

Thou art a saint

@connorsmith256 connorsmith256 merged commit 01b8682 into wasmCloud:main Jan 22, 2023
@connorsmith256 connorsmith256 deleted the fix/policy-checks branch January 22, 2023 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants