Questions tagged [policies]
200 questions
1
vote
1 answer
Azure Policy allowed resource types with a like/match pattern
In the Azure Policy "allowed resource type" you can supply an array of resource types. When I want to allow SQL Elastic pool I need also to include all the subtypes of SQL Elastic pool.
I would like to…

Sven
- 195
- 2
- 11
1
vote
1 answer
Hyperledger fabric's ChannelCreationPolicy
I am struggling so hard to write policy for creating channel (ChannelCreationPolicy) here is my configtx.yaml
---
Organizations:
- &OrdererOrg
Name: OrdererOrg
ID: OrdererMSP
MSPDir: ../crypto-config/ordererOrganizations/orderer-org/msp
-…

O. Shekriladze
- 1,346
- 1
- 19
- 36
1
vote
1 answer
Azure policy deployment using visual studio
I am trying to use in built allowed locations Azure policy.
Below my ARM template definition
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
…

user3638580
- 35
- 5
1
vote
2 answers
Siebel policy executes twice when it should only execute once
My problem is that a policy is running twice, instead of once.
The policy runs when a oportunity field [status] is changed to "close". The policy executes a workflow, but when I change that field, the policy runs twice executing the workflow two…

matias
- 11
- 1
- 3
1
vote
1 answer
AWS Lex: Intent permissions to execute Lambda as dialogCodeHook and fulfillmentActivity hook
I'm building a chatbot using the Node API AWS.LexModelBuildingService, and I want to attach all the new intents to trigger the same lambda function.
In the console I can do it manually, but this doesn't work for the project I'm working on, attaching…

Max Cabrera
- 121
- 1
- 6
1
vote
4 answers
Using Istio to block incoming connections from ANY to a service
Trying to find the best way for blocking any connection from the internet to a k8s service using Istio.
What would be the best choice from Istio's policies?
Mixer - denials or lists
Pilot - route-rules - such as injecting abort fault (400) OR…

Zvika
- 83
- 8
1
vote
1 answer
S3 Access Denied
Since yesterday, I've been getting an Access Denied error when I'm trying to upload a file to one of my S3 buckets.
Javascript code:
var pass = new stream.PassThrough();
var contentType = (input.fileName.endsWith('.html') ? 'text/html' :…

Bjorn121
- 585
- 1
- 4
- 14
1
vote
1 answer
Grant access to only one bucket in S3
I´m trying to write a policy to grant a specific user access to only one bucket
this is what I have so far:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
…

handsome
- 2,335
- 7
- 45
- 73
1
vote
0 answers
Laravel 5.4 Gates and policies : Can policies overwrite Gates?
The UserPolicy seems to overwrite the gates i've made.
Explanation :
in the AuthServiceProvider below, when i comment out the line
User::class => UserPolicy::class
in $protected policies, My Gates works fine.
What could make the gates overwrited ?…

C Taque
- 997
- 2
- 15
- 31
1
vote
0 answers
Laravel 5.3 ACL Using Gate Facad
I am trying to implemnt ACL using Laravel Polices and Gate. Below is my code.
UserPolcy:
class UserPolicy
{
use HandlesAuthorization;
public function isRoleAllowed(User $user, $role)
{
return in_array( $role ,…

Faisal Ahsan
- 928
- 1
- 12
- 22
1
vote
2 answers
Authorization Policies/Gates for Laravel 5.3 web app consuming own API w/ Passport
Using Laravel 5.3 I've set up a web app that consumes its own API. Authentication successfully handled by Passport. Web app uses auth middleware in routes and Model Policies for authorization. API routing uses default 'auth:api' token guard to…

user1954085
- 31
- 4
1
vote
1 answer
Rails 4 - Pundit - policies not working
I'm trying to figure out how to use Pundit in my Rails 4 app.
I have a project model, with a projects controller that has a new action in it:
def new
# a bunch of stuff in the new action that I don't think is very relevant here
end
I then have a…

Mel
- 2,481
- 26
- 113
- 273
1
vote
3 answers
Policies conversion works only with constructor
#include "stdafx.h"
#include
template
class NoCheck;
template
class EnforceNotNull
{
public:
//EnforceNotNull(const NoCheck&){}//<<-----If this is uncommented it works
static void Check(T* p)
{
…

There is nothing we can do
- 23,727
- 30
- 106
- 194
1
vote
1 answer
Sails js policies not working
I have written a basic policies in Sails js.
in app/config/policies.js
module.exports.policies = {
'*': 'sessionAuth'
};
in app/api/policies/sessionAuth.js
module.exports = function(req, res, next) {
console.log('reach');
if…

Pritam Parua
- 672
- 2
- 8
- 27
1
vote
1 answer
Sails.js policies not working when controller in folder
after a bit of time, I found why my policies were not working.
I have the following file tree:
myProject > api > controllers > v1 > UserController
When i was applying my policy to UserController, nothing would change:
UserController: {
'*':…

Julian
- 81
- 4