Giter Club home page Giter Club logo

Comments (6)

mshantanu avatar mshantanu commented on July 18, 2024 2

Ah, Thank you very much @divyansh-gupta it worked like a charm.

from aws-privateca-issuer.

divyansh-gupta avatar divyansh-gupta commented on July 18, 2024

Hi, could you please post the relevant portion of the policy you are using for arn:aws:sts::XXXXXXXX:assumed-role/shared-dev-1-cert-manager/1657793931500012209, and the policy or RAM permission attached to your CA?

And what template type are you issuing with? Cross-account supports a limited set of template types. The plugin picks the template type based off the Usage Type you specify. Check this section in our Readme for information: Mapping Cert-Manager Usage Types to AWS PCA Template Arns.

Thank you.

from aws-privateca-issuer.

mshantanu avatar mshantanu commented on July 18, 2024

Hi @divyansh-gupta , the policy looks like this,

{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "awspcaissuer",
"Effect": "Allow",
"Action": [
"acm-pca:IssueCertificate",
"acm-pca:GetCertificate",
"acm-pca:DescribeCertificateAuthority"
],
"Resource": "*"
}
]
}

and RAM permission attached to the CA is the one provided by AWS permission library named AWSRAMDefaultPermissionCertificateAuthority

from aws-privateca-issuer.

divyansh-gupta avatar divyansh-gupta commented on July 18, 2024

Thank you. That RAM policy is:

[
  {
    "Effect": "Allow",
    "Action": [
      "acm-pca:IssueCertificate"
    ],
    "Condition": {
      "StringEquals": {
        "acm-pca:TemplateArn": "arn::acm-pca:::template/EndEntityCertificate/V1"
      }
    }
  },
  {
    "Effect": "Allow",
    "Action": [
      "acm-pca:DescribeCertificateAuthority",
      "acm-pca:GetCertificate",
      "acm-pca:GetCertificateAuthorityCertificate",
      "acm-pca:ListPermissions",
      "acm-pca:ListTags"
    ]
  }
]

Are you issuing a arn::acm-pca:::template/EndEntityCertificate/V1 through the plugin, based off the Mapping Cert-Manager Usage Types to AWS PCA Template Arns section of the README?

from aws-privateca-issuer.

mshantanu avatar mshantanu commented on July 18, 2024

Thanks for your reply @divyansh-gupta . Sorry I didn't get this point. I just installed the cert-manager, then installed this plugin using helm chart and then created the issuer. Do I need to do something else? please suggest.

from aws-privateca-issuer.

divyansh-gupta avatar divyansh-gupta commented on July 18, 2024

Hi @Kumar-shantanu, no problem, happy to help. Each Certificate CRD has an optional usages section, as defined in https://cert-manager.io/docs/usage/certificate/#creating-certificate-resources. The plugin translates those usages to templateArns based off this chart: https://github.com/cert-manager/aws-privateca-issuer#mapping-cert-manager-usage-types-to-aws-pca-template-arns

Your user is authorized to issue an EndEntityCertificate/V1 certificate. The chart shows that you need ClientAuth, ServerAuth usages for that. Here is an example of what you need to add to your Certificate CRD to do that:

usages:
- server auth
- client auth

Let me know if that works out for you.

from aws-privateca-issuer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.