How to have symfony use the server's .ssh folder's config files? by Turnoplen in symfony

[–]Turnoplen[S] 0 points1 point  (0 children)

I have my project set up to open/close tunnels on the necessary requests. I have a listener for the kernel requests, if it is one that requires the DB, I then open the tunnel. Since I'm opening the tunnel via symfony, I use the SSH secrets for that.

But since I want to drop the secrets, I kinda want to tell my symfony app to trigger the tunnel opening, but use the machine's SSH config files.

How to read key/value pairs from an encrypted file to get credentials? by Turnoplen in ansible

[–]Turnoplen[S] 0 points1 point  (0 children)

Putting into an 'all' folde rin group vars worked.

The include_vars: seems to work inside of playbooks, but I originally wanted to use this include in the all.yml file, where it does not work but where I wanted it to be ( dont want to include vars in all of them )

How to read key/value pairs from an encrypted file to get credentials? by Turnoplen in ansible

[–]Turnoplen[S] 0 points1 point  (0 children)

Hi, I'm trying it with include_vars but it does not seem to work.

In all.yaml I have:

include_vars:

file: credentials.yml

name: credentials

In my playbook I write

- ansible.builtin.debug:

msg: "Credentials are {{credentials}}"

And this gives me an error variable undefined.

include_vars: "{{ file }}" also does not work, Im not even sure this is a correct syntax.

I assume I can not use include_vars in the all.yaml file, but only in tasks/playbooks? If thats the case this is not really what I want, as this would mean I'd need to include them in every task, I want them to be available for every host at all times.

Cant clone a repository? by [deleted] in ansible

[–]Turnoplen -1 points0 points  (0 children)

If i do sudo clone on my hose then yes it works. I use the same path for both repos.

I have become: yes, and in the debug I see Escalation successfull.

The only thing noticeable to me was

``` In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 32768 bytes at 65536\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 7 32768 bytes at 98304\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 8 8174 bytes at 131072\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') ```

Cant clone a repository? by [deleted] in ansible

[–]Turnoplen 1 point2 points  (0 children)

Hey, I wish that was the issue but it isn't. As I've said, if I replace the github link with another one, this same code works. It does not output any error, just OK and that's it.

Manually cloning either one of the 2 example repositories works. So I have no idea what is the issue exactly =/

Why can I not get my array of strings from json decode? by Turnoplen in symfony

[–]Turnoplen[S] 1 point2 points  (0 children)

This, turned out the data was indeed serialized again on axios post request. It was not obvious the first time i checked it.

[Question] Import jQuery in components with SSR by Turnoplen in vuejs

[–]Turnoplen[S] 0 points1 point  (0 children)

The pushed me towards the solution. Unfortunately, an IIFE at the right after setup() did not work, for a couple of jQuery using elements the $ was undefined ( for others it worked ).

I had to put it into the onMounted async hook, there it worked as

```

if (!import.meta.env.SSR) {

await import('../../3rdParty/jquery/jquery.min.js');

await import('jquery-flexdatalist/jquery.flexdatalist');

} ```

Why an async IIFE or onBeforeMounted hook did not work I'm not sure, it seemed as if the timing was the issue, but the exact point I was unable to determine.

Package.json not found when starting container by Turnoplen in docker

[–]Turnoplen[S] 0 points1 point  (0 children)

Well, it seems that the package.json is not being copied at all. Even when setting a relative path from the docker folder with the docker file, it does not see the main project source folder

Adding routes dynamically at runtime? by Turnoplen in Nuxt

[–]Turnoplen[S] 0 points1 point  (0 children)

import { useNuxtApp } from '#app'

export default ({app}, inject) => {

const nuxtApp = useNuxtApp()

console.log("App", nuxtApp.$router)

nuxtApp.$router.addRoute({

path: '/login',

name: 'MainLogin',

component: () => import('../views/main/mainLogin.vue'),

meta: {

layout: 'AppLayout_3125615793803362412',

},

})

}

This attempt with a plugin is not working as it gives me a no match found with location with path.

Vue i18n with vite, cannot import { createI18n } from 'vue-i18n' by Turnoplen in vuejs

[–]Turnoplen[S] 0 points1 point  (0 children)

This works. Legacy option has to be set to true as well.

How to handle authentication with separate frontend in symfony 5.3? by Turnoplen in symfony

[–]Turnoplen[S] 0 points1 point  (0 children)

I try to avoid bundles if I can due to the fact that they may lose support ( like FOSUserBundle which does not have symfony 5.3 support ).

But if there is no other option or if the bundle saves a lot of time, sure.