Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-5918

Adding SSO to application security domain via YamlConfigurationExtension doesn't work.

    XMLWordPrintable

Details

    Description

      I'm getting a write-attribute error (not found) when trying to add single-sign-on to application-security-domain through yaml configuration. Yaml config that I attached is working fine if single-sign-on is already defined in standalone.xml. The extension is trying to do write-attribute on non existent element, I think it should use add instead in this case.

       

      yaml:

      wildfly-configuration:
          subsystem:
              undertow:
                  application-security-domain:
                      other:
                          setting:
                              single-sign-on: 
                                  key-alias: localhost
                                  key-store: applicationKS
                                  credential-reference: 
                                      clear-text: secret 

      console output:

      2022-05-23 20:51:24,325 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("write-attribute") failed - address: ([
          ("subsystem" => "undertow"),
          ("application-security-domain" => "other"),
          ("setting" => "single-sign-on")
      ]) - failure description: "WFLYCTL0216: Management resource '[
          (\"subsystem\" => \"undertow\"),
          (\"application-security-domain\" => \"other\"),
          (\"setting\" => \"single-sign-on\")
      ]' not found" 

      Attachments

        1. sample-yaml.yaml
          0.3 kB
        2. sample-yaml-1.yaml
          0.4 kB
        3. server.log
          2 kB

        Issue Links

          Activity

            People

              ehugonne1@redhat.com Emmanuel Hugonnet
              marcin12332 Marcin Szyńcowicz (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: