Skip to content

Conversation

@StefaniaChierici
Copy link
Contributor

@StefaniaChierici StefaniaChierici commented Mar 11, 2019

https://improbableio.atlassian.net/browse/WF-261

I'll update the documentation referring to this example accordingly after this is approved.

@StefaniaChierici StefaniaChierici requested review from a team and lx223 March 11, 2019 14:14
Copy link

@achannn achannn left a comment

Choose a reason for hiding this comment

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

Just 1 comment

}
};

var permMetrics = new Permission
Copy link

Choose a reason for hiding this comment

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

srv actually refers to Service, not Metrics

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this name is because of the docs explanation for this perm being needed to access service metrics: https://docs.improbable.io/reference/13.6/shared/operate/service-accounts#path

I'm still unclear tbh why we would need it in order to start a deployment, I'm waiting on compute to confirm this is the actual intended flow and not a bug on their side!

Copy link
Contributor

Choose a reason for hiding this comment

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

BundlesRead = MustRegisterPerm0(
		"no permission to fetch fabric bundles",
		"Allows retrieval of fabric bundles from the Bundle service",
		Read, PartService, "bundles",

You need an account with permission to access the Fabric Bundle service in order to launch a deployment so this sounds intentional

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah ok thanks! any opinion/objections to rename the variable to permServices then?

Copy link

@achannn achannn Mar 11, 2019

Choose a reason for hiding this comment

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

srv/bundles is needed to start a deployment because it needs the perm in order to download bundles from the bundle service. However, since it's srv/*, it actually gives you perms to do a bunch of other stuff as well (such as access metrics, and logs) which aren't used when starting a deployment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is the accompanying documentation

Now that you have seen both verbs and paths, you can construct a permission. For example, you might want to use the deployment service to manage to the deployments for your game in the project called my_project. In this case, you need read and write access to the path with parts prj, and my_project. Using the Platform SDK, this is represented as:

I'm gonna test if srv/bundles is enough to run each DeploymentService command (unless you already know? Is there a place to check that? )

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Or are you happy for me to merge with srv/*?

Copy link

Choose a reason for hiding this comment

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

I'm happy with srv/*

@StefaniaChierici StefaniaChierici merged commit 9e2aa0d into master Mar 13, 2019
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.

4 participants