Comments (3)
@dgillman Thanks for reporting The CLI has a --role-name
argument that allows the user to specify their own role. There's also an --aws-role-policy
argument. Do these not address this situation?
from newrelic-lambda-cli.
@kolanos, thank you for the response. These options do not address the situation.
I cannot claim deep knowledge how the various roles and policies created by newrelic-lambda
are used. But I have validated my concerns by exercising both options.
--role-name
supplies a role to the stack created by ./newrelic_lambda_cli/templates/import-template.yaml. It is the role assumed by a "log ingestion" lambda. This is tangential to my issue/concern.
--aws-role-policy
supplies a policy to the stack created by ./newrelic_lambda_cli/templates/nr-lambda-integration-role.yaml. That policy is attached to a role created for overall NewRelic integration. This is the policy I wish to control. I am forced to do so by security bureaucracy.
--aws-role-policy
offers two options:
-
I can omit it, and a universal read policy is granted to NewRelic integration (presumably processes within the NewRelic account which poll for data from my client's account). A universal read permission is not permitted under a "least privileges" security model and will be flatly rejected by my clients' Information Security department. It is a non-starter. I will be creating my own policy.
-
I can supply an
--aws-role-policy
. In this case the argument I supply will be used as a name for a policy which thenewrelic-lambda
CLI creates. But because of the implementation, I will not be able to maintain or manage that policy using CloudFormation. Under the hoodnewrelic-lambda
creates a CloudFormation stack. That stack will own the policy. CloudFormation will not allow me to create my own stack to manage the policy.
So, my proposal is that newrelic-lambda
do less. Or at least I am proposing users have the option to choose to let it do less. I want a way to submit the name of a policy which I control instead of having it created for me. Though this level of automation is thoughtful, the drawback of not being able to use CloudFormation to manage the role is a problem.
from newrelic-lambda-cli.
@@dgillman We've released an update that includes this feature. Would be interested in your feedback.
from newrelic-lambda-cli.
Related Issues (20)
- ValueError: set_wakeup_fd only works in main thread HOT 3
- Specifying AWS lambda layer arn with --layer-arn flag in newrelic-lambda layers install command does not work
- Specifying AWS lambda layer arn with --layer-arn flag in newrelic-lambda layers install command does not work HOT 4
- there is no way to specify NewRelicLicenseKeySecret policy name
- external_id parser logic wrong HOT 2
- account = account = gql.link_account(role_arn, input.linked_account_name)??
- --integration-arn doesn't work if the role is on different path
- Unsupported runtime error when multiple layers are available HOT 2
- Documentation On Secrets Manager Permissions HOT 1
- Lambda Layer Distributed Tracing HOT 1
- New Relic log ingestion function Timeout set via environment variable
- Add support for Python 3.10 HOT 1
- TypeError: emojize() got an unexpected keyword argument 'use_aliases' HOT 1
- KeyError: 'Runtime' HOT 1
- Runtime go1.x support HOT 4
- Error: Invalid value for New Relic Account ID HOT 7
- 403 Forbidden error in the CloudWatch logs HOT 3
- Layer causes api gateway to return 502 response HOT 1
- `newrelic-lambda layers install` fails with an unexpected error HOT 2
- Document `enable-license-key-secret` option for the integrations update and install commands
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from newrelic-lambda-cli.