Questions tagged [policy]

Best practice and style are at the core of every program; there is always a better way to do something. Policy helps programmers determine how something should be written.

Policy is a more or less ambiguous way of describing the best way to do something in programming. This can often be described as "best practice" when writing a program. This can pertain to the way a method returns a value, the way inheritance is structured, and the way to exit a loop, among other things, and it can vary from language to language.

You can learn more about policy and programming paradigm here.

1065 questions
10
votes
1 answer

Why Doesn't My AWS S3 Bucket Policy Override My IAM Policy?

I have a user in my IAM account called "testuser" who has administrator privileges, like so: { "Statement": [ { "Effect": "Allow", "Action": "*", "Resource": "*" } ] } And then I have a policy on my S3 bucket that…
Dasmowenator
  • 4,229
  • 4
  • 28
  • 42
9
votes
3 answers

Policy rewrite-uri To Append Context Variable in Azure APIM

What is the approach to a simple append to the url of a context variable such as context.Variables["accountKey"] during a policy rewrite? The end result should be /accounts/232. I have success earlier in setting it set-variable (0.003 ms) { …
ΩmegaMan
  • 22,885
  • 8
  • 76
  • 94
9
votes
2 answers

Questions about the new Google policy (security metadata)

I have read the post titled 'Improving app security and performance on Google Play for years to come'. In that article, I would like to ask about below the sentence. "Additionally, in early 2018, Play will start adding a small amount of security…
9
votes
2 answers

How to create AWS IAM role attaching managed policy only using Boto3

I am trying to use Boto3 to create a new instance role that will attach a managed policy only. I have the following: Policy Name: my_instance_policy Policy ARN: arn:aws:iam::123456789012:policy/my_test_policy I want to create the role called…
Rafiq
  • 820
  • 1
  • 11
  • 19
9
votes
5 answers

Where to place java applet policy file?

I am working on an artificial intelligence project which is a logic game and aims two user connecting to the server on the network who acts as an Admin and then start to play one by one. In order to create connections, i have a server code which is…
makdere
  • 113
  • 1
  • 1
  • 5
9
votes
1 answer

How to clear browser's cache from server side?

I have to create a web application that deals with user's sensitive information. I need to immediately clear the browser's cache after user logs out since cached data would be vulnerable. Client's browser should be enforced to clear the Cache from…
Dunith Dhanushka
  • 3,483
  • 5
  • 24
  • 28
9
votes
1 answer

Mixing policy-based design with CRTP in C++

I'm attempting to write a policy-based host class (i.e., a class that inherits from its template class), with a twist, where the policy class is also templated by the host class, so that it can access its types. One example where this might be…
Eitan
  • 862
  • 6
  • 17
9
votes
3 answers

Three ways to print in Python -- when to use each?

According to Tim Peters, "There should be one-- and preferably only one --obvious way to do it." In Python, there appears to be three ways to print information: print('Hello World', end='') sys.stdout.write('Hello World') os.write(1, b'Hello…
Noctis Skytower
  • 19,237
  • 15
  • 73
  • 103
9
votes
1 answer

DBus SystemBus policies

I wrote a program that runs as session service through dbus. I wanted to make it run as system service (creating a dbus.SystemBus bus name) if executed by root (uid 0). I am trying to run for dbus.SystemBus what I currently run for dbus.SessionBus…
user1476859
  • 91
  • 1
  • 1
  • 2
9
votes
2 answers

AWS IAM user policy to restrict access to specific SQS queue

I'm trying to setup a user policy for a AWS IAM user to access a specific AWS SQS queue. When I try with below policy, I get the error AccessDenied. { "Statement": [ { "Action": ["sqs:*"], "Effect": "Allow", "Resource":…
infrared
  • 3,170
  • 2
  • 21
  • 36
8
votes
1 answer

How to sign code in the cloud after the new 2017 rules?

It has come to my attention that code signing certificates are from now on required to be paired with physical tokens. The Minimum Requirements specify that CAs shall ensure stronger protection for private keys. As such, all Code Signing…
Sander
  • 23,719
  • 3
  • 49
  • 83
8
votes
3 answers

privacy policy Permission (S) :

please help me and solve my problem in my google developer account. Your app has an APK with version code 508008 that requests the following permission(s): …
ADIL TEL
  • 91
  • 1
  • 1
  • 2
8
votes
2 answers

Internal error in Changeset Comments Policy after updating VS2015 to Update 1

Everything was fine about an hour ago, when i tried to checkin something, the policy friendly reminded me to "provide a comment for the check-in". Then I installed VS2015 Update 1, like some of my colleagues did, and after that, i receive the…
Andreas
  • 478
  • 6
  • 15
8
votes
5 answers

How to get Hudson CI to execute a Powershell script?

I'm using Hudson version 1.324 for CI and have a couple of issues: Environment: Windows Server 2008 Powershell v1.0 Hudson 1.324 running as a service Hudson Powershell Plugin installed Psake (aka. "Powershell Make/Rake" available from Github)…
user178557
  • 81
  • 1
  • 2
8
votes
1 answer

Reflection Security

How to enforce reflection security by not allow the Method, Field, Constructor object to call setAccessible(true) ? SecurityPolicy File or something else? Normally for stand-alone Java applications there is no SecurityManager registered. I using…
nicholas
  • 2,180
  • 10
  • 53
  • 88
1 2
3
70 71